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
162 stars 98 forks source link

Rewrite prefix in NDP code to support NPTv6 #144

Open nihilus opened 5 years ago

nihilus commented 5 years ago

It is easy to fix when the interfaces only have one ula or global prefix per interface, however it is a little more complex in the generic case.

As for now the code assumes the same prefix on the interfaces, but it should use getifaddrs() to get the correct prefixes per interface and rewrite the IPv6 to match them to support NPTv6 / NETPMAP.

youxiaojie commented 3 years ago

I also need npt6/netmap function