<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>Thank you for sharing patch to the community.<br></div>If you want the patch to be included in ISC DHCP mainline code, you probably should consider the following:<br>
</div>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).<br></div>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.<br>
</div><div><div><div><br><div>Regards,<br></div><div>Serghei<br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/5 Aurelien ROUGEMONT <span dir="ltr"><<a href="mailto:beorn@gandi.net" target="_blank">beorn@gandi.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
As most of the sysadmin around the globe i've been using isc-dhcpd for<br>
years. And more recently, i've had to use opensolaris based platform.<br>
<br>
I was facing this :<br>
<br>
Internet Systems Consortium DHCP Server 4.2.5-P1<br>
Copyright 2004-2013 Internet Systems Consortium.<br>
All rights reserved.<br>
For info, please visit <a href="https://www.isc.org/software/dhcp/" target="_blank">https://www.isc.org/software/dhcp/</a><br>
Wrote 385 leases to leases file.<br>
Multiple interfaces match the same subnet: ZFnet0 bnd0<br>
Multiple interfaces match the same shared network: ZFnet0 bnd0<br>
Can't open DLPI device for ZFnet0: No such file or directory<br>
<br>
If you did not get this software from <a href="http://ftp.isc.org" target="_blank">ftp.isc.org</a>, please<br>
get the latest from <a href="http://ftp.isc.org" target="_blank">ftp.isc.org</a> and install that before<br>
requesting help.<br>
<br>
If you did get this software from <a href="http://ftp.isc.org" target="_blank">ftp.isc.org</a> and have not<br>
yet read the README, please read it before requesting help.<br>
If you intend to request help from the <a href="mailto:dhcp-server@isc.org">dhcp-server@isc.org</a><br>
mailing list, please read the section on the README about<br>
submitting bug reports and requests for help.<br>
<br>
Please do not under any circumstances send requests for<br>
help directly to the authors of this software - please<br>
send them to the appropriate mailing list as described in<br>
the README file.<br>
<br>
exiting.<br>
<br>
and the original dhcpd was showing :<br>
open("/dev/ZFnet", O_RDWR) Err#2 ENOENT<br>
<br>
<br>
I took a look at :<br>
dhcp-4.2.5-P1/common/dlpi.c<br>
man 3 dlpi<br>
man 3 dlpi_open<br>
<br>
The "cleanest" way would be using the opensolaris native dlpi_open()<br>
call, but this wouldnt fit in the compatibility matrix. So i wrote this<br>
so it can workaround "cleanishly" this problem : virtual devices<br>
implements DLPI but are in /dev/net/ instead of the usual /dev/<br>
<br>
After the patching 4.2.5-P1 with the attached patch [1]:<br>
<br>
Internet Systems Consortium DHCP Server 4.2.5-P1<br>
Copyright 2004-2013 Internet Systems Consortium.<br>
All rights reserved.<br>
For info, please visit <a href="https://www.isc.org/software/dhcp/" target="_blank">https://www.isc.org/software/dhcp/</a><br>
Wrote 385 leases to leases file.<br>
Multiple interfaces match the same subnet: ZFnet0 bnd0<br>
Multiple interfaces match the same shared network: ZFnet0 bnd0<br>
Listening on DLPI/ZFnet0/00:25:90:c0:c2:0f/<a href="http://10.160.4.0/22" target="_blank">10.160.4.0/22</a><br>
Sending on DLPI/ZFnet0/00:25:90:c0:c2:0f/<a href="http://10.160.4.0/22" target="_blank">10.160.4.0/22</a><br>
Sending on Socket/fallback/fallback-net<br>
failover peer dhcp-failover: I move from<br>
communications-interrupted to startup<br>
<br>
the patched dhcpd was showing :<br>
open("/dev/net/ZFnet0", O_RDWR) = 6<br>
<br>
<br>
What do you think ?<br>
<br>
Aurélien<br>
<br>
<br>
[1] beorn_dlpi_patch_solaris_dev_net.diff<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Aurelien Domain Name Registrar<br>
\o/ Hosting For Geeks and more...<br>
Gandi.net No Bullshit !<br>
</font></span><br>_______________________________________________<br>
dhcp-hackers mailing list<br>
<a href="mailto:dhcp-hackers@lists.isc.org">dhcp-hackers@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-hackers" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-hackers</a><br></blockquote></div><br></div>