nhdp_writer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef NHDP_WRITER_H
20 #define NHDP_WRITER_H
21 
22 #include "rfc5444/rfc5444_iana.h"
23 #include "rfc5444/rfc5444_writer.h"
24 
25 #include "nhdp.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
37 void nhdp_writer_init(void);
38 
42 void nhdp_writer_cleanup(void);
43 
49 void nhdp_writer_register_if(struct rfc5444_writer_target *new_if);
50 
57 
71 void nhdp_writer_add_addr(struct rfc5444_writer *wr, nhdp_addr_t *addr,
72  enum rfc5444_addrtlv_iana type, uint8_t value,
73  uint16_t metric_in, uint16_t metric_out);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* NHDP_WRITER_H */
80 
void nhdp_writer_add_addr(struct rfc5444_writer *wr, nhdp_addr_t *addr, enum rfc5444_addrtlv_iana type, uint8_t value, uint16_t metric_in, uint16_t metric_out)
Add a NHDP address to the currently constructed message.
NHDP address representation.
Definition: nhdp_address.h:29
void nhdp_writer_send_hello(nhdp_if_entry_t *if_entry)
Construct and send a HELLO message using the given interface.
void nhdp_writer_register_if(struct rfc5444_writer_target *new_if)
Register a new target interface in the writer.
Interface for core functionality of NHDP.
MANET interface representation.
Definition: nhdp.h:91
void nhdp_writer_init(void)
Set up the NHDP writer.
void nhdp_writer_cleanup(void)
Clean up the NHDP writer.