david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[DHCP] FIXME: quick temporary settings fix, needs update for new API

This commit is contained in:
Marty Connor 2008-03-21 23:37:02 -04:00
parent 8fceee785f
commit 1741e3e761
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ static int create_dhcp_packet ( struct dhcp_packet *dhcppkt,
return -ENOSPC;
/* Initialise DHCP packet content */
/* FIXME: wrong place to fix this. */
memset ( dhcppkt, 0, sizeof ( *dhcppkt ) );
memset ( dhcphdr, 0, max_len );
dhcphdr->xid = dhcp_xid ( netdev );
dhcphdr->magic = htonl ( DHCP_MAGIC_COOKIE );