nhdp_reader.h File Reference

Reader interface for message processing in NHDP. More...

Detailed Description

Reader interface for message processing in NHDP.

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

Definition in file nhdp_reader.h.

Go to the source code of this file.

Functions

void nhdp_reader_init (void)
 Set up the NHDP reader. More...
 
void nhdp_reader_cleanup (void)
 Clean up the NHDP reader.
 
int nhdp_reader_handle_packet (kernel_pid_t rcvg_if_pid, void *buffer, size_t length)
 Handle a packet received from a registered interface. More...
 

Function Documentation

◆ nhdp_reader_handle_packet()

int nhdp_reader_handle_packet ( kernel_pid_t  rcvg_if_pid,
void *  buffer,
size_t  length 
)

Handle a packet received from a registered interface.

Note
HELLO message processing is triggered from this function.
Parameters
[in]rcvg_if_pidPID of the interface the packet was received on
[in]bufferPointer to start of packet data
[in]lengthLength in bytes of the packet data
Returns
rfc5444_result of the packet handling process

◆ nhdp_reader_init()

void nhdp_reader_init ( void  )

Set up the NHDP reader.

Initializes the reader and registers HELLO messages as a message type consumed by this reader.