summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/dhcppkt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/dhcppkt.h')
-rw-r--r--src/include/ipxe/dhcppkt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/ipxe/dhcppkt.h b/src/include/ipxe/dhcppkt.h
index b004800d8..3179a6bb0 100644
--- a/src/include/ipxe/dhcppkt.h
+++ b/src/include/ipxe/dhcppkt.h
@@ -57,7 +57,8 @@ dhcppkt_put ( struct dhcp_packet *dhcppkt ) {
* @ret len Used length
*/
static inline int dhcppkt_len ( struct dhcp_packet *dhcppkt ) {
- return ( offsetof ( struct dhcphdr, options ) + dhcppkt->options.len );
+ return ( offsetof ( struct dhcphdr, options ) +
+ dhcppkt->options.used_len );
}
extern int dhcppkt_store ( struct dhcp_packet *dhcppkt, unsigned int tag,