Subject: | Contrib patch for dhcp4-listen on alias address |
Date: | Wed, 21 Nov 2012 21:33:33 -0800 |
To: | "Feature enhancements and all non bug related queries. via RT" <dhcp-suggest@isc.org> |
From: | Susan Graves <sgraves@isc.org> |
-------- Original Message --------
Subject: | dhcp4 support listen on alias address when its main interface has null ipaddr |
---|---|
Date: | Wed, 21 Nov 2012 21:17:36 -0700 |
From: | Wei Kong <wkong@novell.com> |
To: | <dhcp-workers@lists.isc.org> |
CC: | Yi Li <YiLi@novell.com> |
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.
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.
getifaddrs() could retrieve all ipaddrs on the linux system.
Below patch use getifaddrs as BSD as well.
---
Thanks
Kong Wei
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.