]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[dhcp] Remove redundant length fields in struct dhcp_packet
authorMichael Brown <mcb30@ipxe.org>
Tue, 30 Nov 2010 00:22:49 +0000 (00:22 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 10 Jan 2011 03:39:26 +0000 (03:39 +0000)
commit6cee8904d1d26cd3503018e9514b8671a9b0a860
treec7aa6a5cc3b6ba870d6a54fe92ebe99ee4c046a7
parentdc462e8b3b424fd0bf90c428da79f6fffe1a0d68
[dhcp] Remove redundant length fields in struct dhcp_packet

The max_len field is never used, and the len field is used only by
dhcp_tx().  Remove these two fields, and perform the necessary trivial
calculation in dhcp_tx() instead.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/dhcppkt.h
src/net/dhcppkt.c
src/net/udp/dhcp.c