mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 03:55:46 +03:00
[DHCP] FIXME: quick temporary settings fix, needs update for new API
This commit is contained in:
@@ -160,6 +160,10 @@ static int create_dhcp_packet ( struct dhcp_packet *dhcppkt,
|
|||||||
return -ENOSPC;
|
return -ENOSPC;
|
||||||
|
|
||||||
/* Initialise DHCP packet content */
|
/* Initialise DHCP packet content */
|
||||||
|
|
||||||
|
/* FIXME: wrong place to fix this. */
|
||||||
|
memset ( dhcppkt, 0, sizeof ( *dhcppkt ) );
|
||||||
|
|
||||||
memset ( dhcphdr, 0, max_len );
|
memset ( dhcphdr, 0, max_len );
|
||||||
dhcphdr->xid = dhcp_xid ( netdev );
|
dhcphdr->xid = dhcp_xid ( netdev );
|
||||||
dhcphdr->magic = htonl ( DHCP_MAGIC_COOKIE );
|
dhcphdr->magic = htonl ( DHCP_MAGIC_COOKIE );
|
||||||
|
|||||||
Reference in New Issue
Block a user