nib_table.h File Reference

Neighbor Information Base interface for NHDP. More...

Detailed Description

Neighbor Information Base interface for NHDP.

Author
Fabian Nack nack@.nosp@m.inf..nosp@m.fu-be.nosp@m.rlin.nosp@m..de

Definition in file nib_table.h.

#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

◆ nib_fill_wr_addresses()

void nib_fill_wr_addresses ( struct rfc5444_writer *  wr)

Add addresses to the currently constructed HELLO message.

Note
Must not be called from outside the NHDP writer's message creation process.
Parameters
[in]wrThe NHDP writer used for message construction

◆ nib_process_hello()

nib_entry_t* nib_process_hello ( void  )

Process a received HELLO message in the NIB.

Note
Must not be called from outside the NHDP reader's message processing.
Returns
Pointer to the new Neighbor Tuple
NULL on error

◆ nib_rem_nb_entry()

void nib_rem_nb_entry ( nib_entry_t nib_entry)

Remove a Neighbor Tuple.

Parameters
[in]nib_entryPointer to the Neighbor Tuple

◆ nib_reset_nb_entry_sym()

void nib_reset_nb_entry_sym ( nib_entry_t nib_entry,
timex_t now 
)

Reset a Neighbor Tuple's symmetry flag.

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

◆ nib_set_nb_entry_sym()

void nib_set_nb_entry_sym ( nib_entry_t nib_entry)

Set a Neighbor Tuple's symmetry flag.

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

Parameters
[in]nib_entryPointer to the Neighbor Tuple