relay.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2021 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
20 #include <stdint.h>
21 
22 #include "event.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
37 #ifndef CONFIG_DHCPV6_RELAY_HOP_LIMIT
38 #define CONFIG_DHCPV6_RELAY_HOP_LIMIT (8U)
39 #endif
40 
41 #ifndef CONFIG_DHCPV6_RELAY_BUFLEN
42 #define CONFIG_DHCPV6_RELAY_BUFLEN (256U)
43 #endif
53 
68 void dhcpv6_relay_init(event_queue_t *event_queue, uint16_t listen_netif,
69  uint16_t fwd_netif);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
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:150