Go to the documentation of this file.
26 #ifndef NET_GNRC_SIXLOWPAN_CTX_H
27 #define NET_GNRC_SIXLOWPAN_CTX_H
38 #define GNRC_SIXLOWPAN_CTX_SIZE (16)
46 #define GNRC_SIXLOWPAN_CTX_FLAGS_CID_MASK (0x0f)
47 #define GNRC_SIXLOWPAN_CTX_FLAGS_COMP (0x10)
113 uint8_t prefix_len, uint16_t ltime,
116 #ifdef MODULE_GNRC_SIXLOWPAN_CTX
122 static inline void gnrc_sixlowpan_ctx_remove(uint8_t
id)
void gnrc_sixlowpan_ctx_reset(void)
Resets the whole context buffer.
Data type to represent an IPv6 address.
Definitions for IPv6 addresses.
Entry in the 6LoWPAN context buffer.
uint8_t flags_id
4-bit flags, 4-bit Context ID.
gnrc_sixlowpan_ctx_t * gnrc_sixlowpan_ctx_update(uint8_t id, const ipv6_addr_t *prefix, uint8_t prefix_len, uint16_t ltime, bool comp)
Updates (or adds if currently not registered) a context.
gnrc_sixlowpan_ctx_t * gnrc_sixlowpan_ctx_lookup_addr(const ipv6_addr_t *addr)
Gets a context matching the given IPv6 address best with its prefix.
gnrc_sixlowpan_ctx_t * gnrc_sixlowpan_ctx_lookup_id(uint8_t id)
Gets context by ID.
ipv6_addr_t prefix
The prefix associated to this context.
uint8_t prefix_len
Length of gnrc_sixlowpan_ctx_t::prefix in bit.
uint16_t ltime
Lifetime in minutes this context is valid.
Adds include for missing inttype definitions.