summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.h
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-10-26 22:52:17 +0100
committerHans Dedecker <dedeckeh@gmail.com>2020-10-31 20:54:03 +0100
commite4f4e620488cbda1c2e93316f952fc4454746d76 (patch)
tree751c6ff59be80ab8d25ad564126820ba459a1fe6 /src/odhcpd.h
parentaff290bfee0b35a53bafb906aed107cc0b63a922 (diff)
dhcpv6: add DHCPv4-over-DHCPv6 support
Add support for DHCPv4-over-DHCPv6 (DHCP 4o6) Transport (RFC 7341). Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r--src/odhcpd.h7
1 files changed, 7 insertions, 0 deletions
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);