mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-05 00:35:41 +00:00
More portable internet addresses; fix endian bug; fix parser bugs
This commit is contained in:
@@ -130,7 +130,7 @@ void bootp (packet)
|
||||
/* If we got the magic cookie, send it back. */
|
||||
if (packet -> options_valid)
|
||||
memcpy (reply -> options, packet -> raw -> options, 4);
|
||||
to.sin_port = packet -> client.sin_port;
|
||||
to.sin_port = htons (packet -> client_port);
|
||||
to.sin_family = AF_INET;
|
||||
to.sin_len = sizeof to;
|
||||
memset (to.sin_zero, 0, sizeof to.sin_zero);
|
||||
|
Reference in New Issue
Block a user