relay.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 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 
20 #ifndef NET_DHCPV6_RELAY_H
21 #define NET_DHCPV6_RELAY_H
22 
23 #include <stdint.h>
24 
25 #include "event.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
40 #ifndef CONFIG_DHCPV6_RELAY_HOP_LIMIT
41 #define CONFIG_DHCPV6_RELAY_HOP_LIMIT (8U)
42 #endif
43 
44 #ifndef CONFIG_DHCPV6_RELAY_BUFLEN
45 #define CONFIG_DHCPV6_RELAY_BUFLEN (256U)
46 #endif
56 
71 void dhcpv6_relay_init(event_queue_t *event_queue, uint16_t listen_netif,
72  uint16_t fwd_netif);
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* NET_DHCPV6_RELAY_H */
void dhcpv6_relay_init(event_queue_t *event_queue, uint16_t listen_netif, uint16_t fwd_netif)
Initializes the relay agent.
void dhcpv6_relay_auto_init(void)
Auto-initializes the relay agent in its own thread or event thread when available.
event queue structure
Definition: event.h:156