nib_table.h File Reference

Neighbor Information Base interface for NHDP. More...

Detailed Description

#include "timex.h"
#include "rfc5444/rfc5444_writer.h"
#include "nhdp_address.h"
+ Include dependency graph for nib_table.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nib_entry
 Neighbor Set entry (neighbor tuple) More...
 
struct  nib_lost_address_entry
 Lost Neighbor Set entry (lost neighbor tuple, lnt) More...
 
typedef struct nib_entry nib_entry_t
 Neighbor Set entry (neighbor tuple)
 
typedef struct nib_lost_address_entry nib_lost_address_entry_t
 Lost Neighbor Set entry (lost neighbor tuple, lnt)
 
nib_entry_tnib_process_hello (void)
 Process a received HELLO message in the NIB. More...
 
void nib_fill_wr_addresses (struct rfc5444_writer *wr)
 Add addresses to the currently constructed HELLO message. More...
 
void nib_rem_nb_entry (nib_entry_t *nib_entry)
 Remove a Neighbor Tuple. More...
 
void nib_set_nb_entry_sym (nib_entry_t *nib_entry)
 Set a Neighbor Tuple's symmetry flag. More...
 
void nib_reset_nb_entry_sym (nib_entry_t *nib_entry, timex_t *now)
 Reset a Neighbor Tuple's symmetry flag. More...
 

Function Documentation

void nib_fill_wr_addresses ( struct rfc5444_writer *  wr)
Note
Must not be called from outside the NHDP writer's message creation process.
Parameters
[in]wrThe NHDP writer used for message construction
nib_entry_t* nib_process_hello ( void  )
Note
Must not be called from outside the NHDP reader's message processing.
Returns
Pointer to the new Neighbor Tuple
NULL on error
void nib_rem_nb_entry ( nib_entry_t nib_entry)
Parameters
[in]nib_entryPointer to the Neighbor Tuple
void nib_reset_nb_entry_sym ( nib_entry_t nib_entry,
timex_t now 
)

Adds a Lost Neighbor Tuple for every address in the Neighbor Tuple's address list.

Parameters
[in]nib_entryPointer to the Neighbor Tuple
[in]nowPointer to current time timex representation
void nib_set_nb_entry_sym ( nib_entry_t nib_entry)

Removes all Lost Neighbor Tuples representing addresses included in the Neighbor Tuple's address list.

Parameters
[in]nib_entryPointer to the Neighbor Tuple