[gPXE-devel] Incrementing DHCP "secs" field

Nicolas Bourbaki ncl.bourbaki at gmail.com
Wed Feb 16 07:43:13 EST 2011


Hi there,

I'd like to request a feature to improve the default behavior of gPXE.
I noticed that some DHCP implementations uses the "secs" field as a
threshold value. In order for your DHCPDiscover to be transmitted to
the DHCP server the router will check the value of the "secs" field in
your DHCP packet, if the value is below a threshold, then the packet
is discarded. By default, gPXE does not increment this counter which
leave clients without an IP address. In order to improve the gPXE
experience in an existing network I'd like to see this implemented.

You'll find attached a patch which may seem "naive" but works as expected.

Don't hesitate to give me some feedback.

Nicolas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpxe-secs.patch
Type: application/octet-stream
Size: 466 bytes
Desc: not available
URL: <http://etherboot.org/pipermail/gpxe-devel/attachments/20110216/7483fec8/attachment.obj>


More information about the gPXE-devel mailing list