Definitions related to 6Lo node (6LN) functionality of the NIB. More...
Definitions related to 6Lo node (6LN) functionality of the NIB.
Definition in file _nib-6ln.h.
#include <kernel_defines.h>
#include <stdint.h>
#include "net/gnrc/ipv6/nib/conf.h"
#include "net/sixlowpan/nd.h"
#include "timex.h"
#include "evtimer.h"
#include "_nib-arsm.h"
#include "_nib-internal.h"
Go to the source code of this file.
#define | _ADDR_REG_STATUS_TENTATIVE (3) |
Additional (local) status to ARO status values for tentative addresses. | |
#define | _ADDR_REG_STATUS_IGNORE (4) |
Additional (local) status to ARO status values for return values to signify that the address was ignored. | |
#define | _ADDR_REG_STATUS_UNAVAIL (255) |
Additional (local) status to ARO status values to signify that ARO is not available in NA. | |
bool | _resolve_addr_from_ipv6 (const ipv6_addr_t *dst, gnrc_netif_t *netif, gnrc_ipv6_nib_nc_t *nce) |
Resolves address statically from destination address using reverse translation of the IID. | |
static uint32_t | _get_next_rs_interval (const gnrc_netif_t *netif) |
Calculates exponential backoff for RS retransmissions. | |
uint8_t | _handle_aro (gnrc_netif_t *netif, const ipv6_hdr_t *ipv6, const icmpv6_hdr_t *icmpv6, const sixlowpan_nd_opt_ar_t *aro, const ndp_opt_t *sl2ao, _nib_onl_entry_t *nce) |
Handles ARO. | |
void | _handle_rereg_address (const ipv6_addr_t *addr) |
Handler for GNRC_IPV6_NIB_REREG_ADDRESS event handler. | |
_nib_abr_entry_t * | _handle_abro (const sixlowpan_nd_opt_abr_t *abro) |
uint32_t | _handle_6co (const icmpv6_hdr_t *icmpv6, const sixlowpan_nd_opt_6ctx_t *sixco, _nib_abr_entry_t *abr) |
#define _ADDR_REG_STATUS_IGNORE (4) |
Additional (local) status to ARO status values for return values to signify that the address was ignored.
Definition at line 47 of file _nib-6ln.h.
#define _ADDR_REG_STATUS_TENTATIVE (3) |
Additional (local) status to ARO status values for tentative addresses.
Definition at line 41 of file _nib-6ln.h.
#define _ADDR_REG_STATUS_UNAVAIL (255) |
Additional (local) status to ARO status values to signify that ARO is not available in NA.
Can be assigned to the variable that receives the return value of _handle_aro(), so that the case that an NA does not contain an ARO (e.g. because upstream router does not support it) can be dealt with.
Definition at line 57 of file _nib-6ln.h.
|
inlinestatic |
Calculates exponential backoff for RS retransmissions.
[in] | netif | The network interface that the RS will be sent over. |
Definition at line 82 of file _nib-6ln.h.
uint8_t _handle_aro | ( | gnrc_netif_t * | netif, |
const ipv6_hdr_t * | ipv6, | ||
const icmpv6_hdr_t * | icmpv6, | ||
const sixlowpan_nd_opt_ar_t * | aro, | ||
const ndp_opt_t * | sl2ao, | ||
_nib_onl_entry_t * | nce | ||
) |
Handles ARO.
[in] | netif | The interface the ARO-carrying message came over. |
[in] | ipv6 | The IPv6 header of the message carrying the ARO. |
[in] | icmpv6 | The message carrying the ARO. |
[in] | aro | ARO that carries the address registration information. |
[in] | sl2ao | SL2AO associated with the ARO. |
[in] | nce | Neighbor cache entry the ARO is supposed to change. |
void _handle_rereg_address | ( | const ipv6_addr_t * | addr | ) |
Handler for GNRC_IPV6_NIB_REREG_ADDRESS event handler.
[in] | addr | An IPv6 address. |
bool _resolve_addr_from_ipv6 | ( | const ipv6_addr_t * | dst, |
gnrc_netif_t * | netif, | ||
gnrc_ipv6_nib_nc_t * | nce | ||
) |
Resolves address statically from destination address using reverse translation of the IID.
[in] | dst | A destination address. |
[in] | netif | The interface to dst . |
[out] | nce | Neighbor cache entry to resolve into |
nce
was set, false when not.