dhcp4 support listen on alias address when its main interface has null ipaddr

Wei Kong wkong at novell.com
Thu Nov 22 04:17:36 UTC 2012


Hi Shawn Routhier,
 
My customer request bind dhcp server on alias address on dhcp4, so we have a patch below to support it.
Please help to review this patch, thanks a lot.
 
---
On linux, dhcp4 doesn't support listen on alias address when
its main interface has null ipaddr. dhcp3 support this function.
Because dhcp4 scan interface from /proc/net/dev, this is not enough.
 
On linux, both ioctl(,SIOCGIFCONF,) and
getifaddrs() could retrieve all ipaddrs on the linux system.
 
Below patch use getifaddrs as BSD as well.
---
 
Thanks
Kong Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/mailman/private/dhcp-workers/attachments/20121121/b94e54c1/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dhcpd_linux_getifaddrs_support.PATCH
URL: <https://lists.isc.org/mailman/private/dhcp-workers/attachments/20121121/b94e54c1/attachment.ksh>


More information about the dhcp-workers mailing list