openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
160 stars 96 forks source link

Add support for DHCPv4-over-DHCPv6 (RFC 7341) #161

Closed mikma closed 3 years ago

mikma commented 3 years ago

This branch adds support for DHCPv4-over-DHCPv6 (DHCP 4o6) transport as specified in RFC 7341.

I have tested it with ISC dhclient-4.4.2-r1 on Alpine Linux 3.12. DHCP 4o6 on dhclient is enabled by using the -4o6 option, and the following two commands can be used for testing:

touch leases4 && dhclient -d -4 -4o6 6767 -lf leases4 -pf pid4 eth1
touch leases6 && dhclient -d -6 -4o6 6767 -lf leases6 -pf pid6 eth1

For troubleshooting I have written a DHCPv4-over-DHCPv6 Wireshark dissector in lua: dhcpv6_4o6.lua.

dedeckeh commented 3 years ago

LGTM will merge it in the next days; thx

dedeckeh commented 3 years ago

Patches pushed; thx again

mikma commented 3 years ago

Thanks for pushing and updating the OpenWrt package.

But I noticed that the full package fails to build on some architectures. https://downloads.openwrt.org/snapshots/faillogs/x86_64/base/odhcpd/full/compile.txt

I have made a small bugfix in the following commit: https://github.com/mikma/openwrt-odhcpd/commit/994e29bf3f74a96f705708748e20818293b844f1

dedeckeh commented 3 years ago

Can you create a PR with a patch for this issue ?

mikma commented 3 years ago

OK, I have created PR #162.