nhdp_reader.h File Reference

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

Detailed Description

Go to the source code of this file.


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 
HELLO message processing is triggered from this function.
[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
rfc5444_result of the packet handling process

◆ nhdp_reader_init()

void nhdp_reader_init ( void  )

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