Patch for opensolaris builds of isc-dhcpd 4.2.5-P1 fixing DLPI for crossbow VNICs

Aurelien ROUGEMONT beorn at gandi.net
Mon Jul 8 13:23:29 UTC 2013


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 !


-------------- next part --------------
A non-text attachment was scrubbed...
Name: beorn_dlpi_patch_solaris_dev_net.diff
Type: text/x-diff
Size: 1143 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20130708/a493a40b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20130708/a493a40b/attachment-0001.bin>


More information about the dhcp-users mailing list