Patch for opensolaris builds of isc-dhcpd 4.2.5-P1 fixing DLPI for crossbow VNICs
sscdvp at gmail.com
sscdvp at gmail.com
Sat Jul 13 19:44:30 UTC 2013
Hello,
Thank you for sharing patch to the community.
If you want the patch to be included in ISC DHCP mainline code, you
probably should consider the following:
1. ISC DHCP 4.x codebase has been switched to socket interface usage
instead of DLPI for Solaris OE (I don't remember the version but you could
find it in ISC DHCP changelog).
2. the patch could be reworked for compatibility with older Solaris
versions like 8,9,10 because it is obvious they have no such path /dev/net.
Regards,
Serghei
2013/7/5 Aurelien ROUGEMONT <beorn at gandi.net>
> Hi,
>
> As most of the sysadmin around the globe i've been using isc-dhcpd for
> years. And more recently, i've had to use opensolaris based platform.
>
> I was facing this :
>
> Internet Systems Consortium DHCP Server 4.2.5-P1
> Copyright 2004-2013 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
> Wrote 385 leases to leases file.
> Multiple interfaces match the same subnet: ZFnet0 bnd0
> Multiple interfaces match the same shared network: ZFnet0 bnd0
> Can't open DLPI device for ZFnet0: No such file or directory
>
> If you did not get this software from ftp.isc.org, please
> get the latest from ftp.isc.org and install that before
> requesting help.
>
> If you did get this software from ftp.isc.org and have not
> yet read the README, please read it before requesting help.
> If you intend to request help from the dhcp-server at isc.org
> mailing list, please read the section on the README about
> submitting bug reports and requests for help.
>
> Please do not under any circumstances send requests for
> help directly to the authors of this software - please
> send them to the appropriate mailing list as described in
> the README file.
>
> exiting.
>
> and the original dhcpd was showing :
> open("/dev/ZFnet", O_RDWR) Err#2 ENOENT
>
>
> I took a look at :
> dhcp-4.2.5-P1/common/dlpi.c
> man 3 dlpi
> man 3 dlpi_open
>
> The "cleanest" way would be using the opensolaris native dlpi_open()
> call, but this wouldnt fit in the compatibility matrix. So i wrote this
> so it can workaround "cleanishly" this problem : virtual devices
> implements DLPI but are in /dev/net/ instead of the usual /dev/
>
> After the patching 4.2.5-P1 with the attached patch [1]:
>
> Internet Systems Consortium DHCP Server 4.2.5-P1
> Copyright 2004-2013 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
> Wrote 385 leases to leases file.
> Multiple interfaces match the same subnet: ZFnet0 bnd0
> Multiple interfaces match the same shared network: ZFnet0 bnd0
> Listening on DLPI/ZFnet0/00:25:90:c0:c2:0f/10.160.4.0/22
> Sending on DLPI/ZFnet0/00:25:90:c0:c2:0f/10.160.4.0/22
> Sending on Socket/fallback/fallback-net
> failover peer dhcp-failover: I move from
> communications-interrupted to startup
>
> the patched dhcpd was showing :
> open("/dev/net/ZFnet0", O_RDWR) = 6
>
>
> What do you think ?
>
> Aurélien
>
>
> [1] beorn_dlpi_patch_solaris_dev_net.diff
>
>
>
> --
> Aurelien Domain Name Registrar
> \o/ Hosting For Geeks and more...
> Gandi.net No Bullshit !
>
> _______________________________________________
> dhcp-hackers mailing list
> dhcp-hackers at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-hackers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-hackers/attachments/20130713/a5cdff74/attachment.html>
More information about the dhcp-hackers
mailing list