6LoWPAN neighbor discovery

Neighbor Discovery Optimization for 6LoWPAN.

See also

RFC 6775

include/net/gnrc/pkt.h::gnrc_pktsnip_t * gnrc_sixlowpan_nd_opt_ar_build(uint8_t status, uint16_t ltime, eui64_t * eui64, include/net/gnrc/pkt.h::gnrc_pktsnip_t * next)

Builds the address registration option.

Parameters

status:Status for the ARO.
ltime:Registration lifetime for the ARO.
eui64:The EUI-64 for the ARO
next:More options in the packet. NULL, if there are none.

Return values

  • The pkt snip list of options, on success
  • NULL, if packet buffer is full
include/net/gnrc/pkt.h::gnrc_pktsnip_t * gnrc_sixlowpan_nd_opt_6ctx_build(uint8_t prefix_len, uint8_t flags, uint16_t ltime, ipv6_addr_t * prefix, include/net/gnrc/pkt.h::gnrc_pktsnip_t * next)

Builds the 6LoWPAN context option.

Parameters

prefix_len:The length of the context’s prefix.
flags:Flags + CID for the context.
ltime:Lifetime of the context.
prefix:The context’s prefix
next:More options in the packet. NULL, if there are none.

Return values

  • The pkt snip list of options, on success
  • NULL, if packet buffer is full or on error
include/net/gnrc/pkt.h::gnrc_pktsnip_t * gnrc_sixlowpan_nd_opt_abr_build(uint32_t version, uint16_t ltime, ipv6_addr_t * braddr, include/net/gnrc/pkt.h::gnrc_pktsnip_t * next)

Builds the authoritative border router option.

Parameters

version:Version of the border router information.
ltime:Registration lifetime for the border router.
braddr:The IPv6 address of the border router.
next:More options in the packet. NULL, if there are none.

Return values

  • The pkt snip list of options, on success
  • NULL, if packet buffer is full or on error
GNRC_SIXLOWPAN_ND_AR_LTIME

Registration lifetime in minutes for the address registration option.

1
(15U)

This value should be adapted to the devices power-lifecycle so that it is greater than the time the device spends sleeping.