Using DLPI with HP-UX 11
Johannes Berg
johannes at sipsolutions.net
Tue Aug 24 06:47:52 UTC 2004
We've had the need to use DLPI with HP-UX 11 in order to generate packets
that can be controlled precisely.
For that reason I have forward ported the patches from
http://www.j-mulders.demon.nl/unix/hp-related/dhcp.html
to support DLPI under HP-UX with dhcpd 3.0.
Attached are patches for dlpi.c and hpux.h. These were developed for dhcpd
3.0pl2 so may not apply cleanly to 3.0.1 (but I think at least the bigger
patch against dlpi.c should apply with some fuzz).
They contain some code taken from libpcap, licensed under a 3 clause BSD
license.
I'm submitting this here in the hope that it may be included (I'm open for
any improvements and comments of the code if I can make them as well).
Regards,
Johannes Berg
PS: If you want to know why I had the need to use DLPI, here's the story:
We have a bunch of really old PXE clients that ignore IP packets with the
DF bit set, and we cannot (due to security policy) change the
ip_pmtu_strategy in a way that hp-ux won't set the DF bit when sending
packets over normal sockets. Thus I forward ported the DLPI stuff to have
more control.
-- Binary/unsupported file stripped by Ecartis --
-- Type: application/octet-stream
-- File: diff
-- Binary/unsupported file stripped by Ecartis --
-- Type: application/octet-stream
-- File: diff2
More information about the dhcp-hackers
mailing list