Go to the documentation of this file.
20 #ifndef NET_GNRC_SIXLOWPAN_FRAG_FB_H
21 #define NET_GNRC_SIXLOWPAN_FRAG_FB_H
36 #define GNRC_SIXLOWPAN_FRAG_FB_SND_MSG (0x0225)
47 #ifdef MODULE_GNRC_SIXLOWPAN_FRAG_HINT
90 #if defined(TEST_SUITES) && !defined(DOXYGEN)
int16_t kernel_pid_t
Unique process identifier.
int msg_send_to_self(msg_t *m)
Send a message to the current thread.
kernel_pid_t gnrc_sixlowpan_get_pid(void)
Returns the PID of the 6Lo thread.
static bool gnrc_sixlowpan_frag_fb_send(gnrc_sixlowpan_frag_fb_t *fbuf)
Sends a message to pass a further fragment down the network stack.
uint16_t tag
Tag used for the fragment.
Messaging API for inter process communication.
Scheduler API definition.
void * ptr
Pointer content field.
int msg_try_send(msg_t *m, kernel_pid_t target_pid)
Send a message (non-blocking).
uint16_t gnrc_sixlowpan_frag_fb_next_tag(void)
Generate a new datagram tag for sending.
union msg_t::@2 content
Content of the message.
General definitions for network packets and their helper functions.
gnrc_pktsnip_t * pkt
Pointer to the IPv6 packet to be fragmented.
uint16_t offset
Offset of the Nth fragment from the beginning of the payload datagram.
6LoWPAN fragmentation buffer entry.
uint16_t datagram_size
Length of just the (uncompressed) IPv6 packet to be fragmented.
void gnrc_sixlowpan_frag_fb_reset(void)
Reset fragmentation buffer.
gnrc_sixlowpan_frag_fb_t * gnrc_sixlowpan_frag_fb_get_by_tag(uint16_t tag)
Get an existing fragmentation buffer entry by a given tag.
#define GNRC_SIXLOWPAN_FRAG_FB_SND_MSG
Message type for passing one 6LoWPAN fragment down the network stack.
Describes a message object which can be sent between threads.
Type to represent parts (either headers or payload) of a packet, called snips.
gnrc_sixlowpan_frag_fb_t * gnrc_sixlowpan_frag_fb_get(void)
Allocates a fragmentation buffer entry.