From e4f4e620488cbda1c2e93316f952fc4454746d76 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 26 Oct 2020 22:52:17 +0100 Subject: dhcpv6: add DHCPv4-over-DHCPv6 support Add support for DHCPv4-over-DHCPv6 (DHCP 4o6) Transport (RFC 7341). Signed-off-by: Mikael Magnusson Signed-off-by: Hans Dedecker --- src/odhcpd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/odhcpd.h') diff --git a/src/odhcpd.h b/src/odhcpd.h index 09013c4..787be1f 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -54,6 +54,10 @@ struct odhcpd_event { void (*recv_msgs)(struct odhcpd_event *e); }; +typedef int (*send_reply_cb_t)(const void *buf, size_t len, + const struct sockaddr *dest, socklen_t dest_len, + void *opaque); + typedef void (*dhcpv6_binding_cb_handler_t)(struct in6_addr *addr, int prefix, uint32_t pref, uint32_t valid, void *arg); @@ -411,6 +415,9 @@ int ndp_init(void); int dhcpv4_init(void); int dhcpv4_setup_interface(struct interface *iface, bool enable); +void dhcpv4_handle_msg(void *addr, void *data, size_t len, + struct interface *iface, _unused void *dest_addr, + send_reply_cb_t send_reply, void *opaque); #endif int router_setup_interface(struct interface *iface, bool enable); int dhcpv6_setup_interface(struct interface *iface, bool enable); -- cgit v1.2.3