aboutgitcodebugslistschat
path: root/dhcpv6.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-04-13 21:59:47 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-04-13 22:37:40 +0200
commit4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01 (patch)
tree86557a9f4ec49b64e72379de5beff1248ba2404c /dhcpv6.h
parent6b1a9f0d34069c218bdfa666a1f11dfcdf2b85cd (diff)
downloadpasst-4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01.tar
passt-4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01.tar.gz
passt-4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01.tar.bz2
passt-4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01.tar.lz
passt-4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01.tar.xz
passt-4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01.tar.zst
passt-4aa8e54a303dfde9a53c47cd07c5af3c5fad4f01.zip
passt: Introduce a DHCPv6 server
This implementation, similarly to the IPv4 DHCP one, hands out a single address, which is the same as the upstream address for the host. This avoids the need for address translation as long as the client runs a DHCPv6 client. The NDP "Managed" flag is now set in Router Advertisements. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'dhcpv6.h')
-rw-r--r--dhcpv6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv6.h b/dhcpv6.h
new file mode 100644
index 0000000..b29ddcd
--- /dev/null
+++ b/dhcpv6.h
@@ -0,0 +1,2 @@
+int dhcpv6(struct ctx *c, struct ethhdr *eh, size_t len);
+void dhcpv6_init(struct ctx *c);