Data Structures | |
struct | fip_nd6_6lowpan_lbrTable_t |
The 6LBR neighbour cache/table is an array of this structure type. More... | |
Files | |
file | fip_nd6_6lowpan.c |
6lowpan-nd implementation | |
Enumerations | |
enum | fip_6lowpan_nd6_state_t { SIXLBR_UNUSED = 0, SIXLBR_USED } |
Holds the special 6lowpan-ND neighbour cache on the 6LBR entry status. More... | |
Functions | |
void | fip_nd6_6lowpan_processNA (const fip_nd6_optionStruct_t *optionStruct) |
Process an incoming Neighbour Advertisement. | |
unsigned int | fip_nd6_6lowpan_addRAOptions (unsigned int upperLength) |
fip_return_t | fip_nd6_6lowpan_LBRTableNewEntry (const uint8_t *shortAddr, const uint8_t *eui64, uint16_t lifetime) |
Variables | |
uint16_t | abroVersionNumber |
Authoritive Border Router. | |
fip_ip6addr_t | abroAddress |
Authoritive Border Router. |
unsigned int fip_nd6_6lowpan_addRAOptions | ( | unsigned int | upperLength | ) |
todo extend buffer
SET LIFETIME CORRECTLY
References abroVersionNumber, fip_ip6addr_t::addr, fip_nd6_abro_t::address, fip_nd6_6co_t::context, fip_nd6_6co_t::contextIDFlags, fip_nd6_6co_t::contextLength, FIP_6CO_CFLAG, fip_ip6addr_cpy, FIP_ND6_OPTION_6CO, FIP_ND6_OPTION_ABRO, fip_packet_getBufPtr, fip_nd6_abro_t::length, fip_nd6_6co_t::length, fip_nd6_abro_t::reserved, fip_nd6_6co_t::reserved, fip_nd6_abro_t::type, fip_nd6_6co_t::type, fip_nd6_abro_t::versionNumber, and fip_nd6_6co_t::vlifetime.
Referenced by fip_nd6_generateRA().
fip_return_t fip_nd6_6lowpan_LBRTableNewEntry | ( | const uint8_t * | shortAddr, | |
const uint8_t * | eui64, | |||
uint16_t | lifetime | |||
) |
References fip_nd6_6lowpan_lbrTable_t::expireTime, fip_memcpy_ucharLen, RV_MEMORY_ERROR, RV_OK, fip_nd6_6lowpan_lbrTable_t::shortAddr, SIXLBR_UNUSED, SIXLBR_USED, and fip_nd6_6lowpan_lbrTable_t::state.
Referenced by fip_nd6_processRA().
void fip_nd6_6lowpan_processNA | ( | const fip_nd6_optionStruct_t * | optionStruct | ) |
Process an incoming Neighbour Advertisement.
optionStruct | Pointer to the preprocessed options |
References ADDR_DUPLICATE, ADDR_OPTIMISTIC, ADDR_PREFERRED, fip_nd6_aro_t::eui64, FIP_ARO_SUCCESS, FIP_ND6_OPTION_ARO, fip_packet_activeDrop(), fip_packet_getBufPtr, fip_packet_getFromIP6Hdr_destPtr, fip_packet_getIfNum, fip_ds6_searchStatus_t::index, fip_ds6_searchStatus_t::itemFound, fip_nd6_optionStruct_t::numOpts, fip_nd6_option_t::offset, fip_nd6_optionStruct_t::options, fip_nd6_aro_t::status, TRACE, TRACE_ADDVAR, and fip_nd6_option_t::type.
Referenced by fip_nd6_processNA().