diff options
author | Denis Vlasenko | 2008-09-26 23:45:20 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-09-26 23:45:20 +0000 |
commit | 739e30fbc3363756e574b5761ff63ea97ffd61c1 (patch) | |
tree | e2a42d90dcc984d6ad6dc1736d75095991a1ab09 /networking/udhcp/serverpacket.c | |
parent | 7d9399e8dcfb9853f435c2936f449377d92f6e47 (diff) | |
download | busybox-739e30fbc3363756e574b5761ff63ea97ffd61c1.zip busybox-739e30fbc3363756e574b5761ff63ea97ffd61c1.tar.gz |
udhcp: add inline docs; small code shrink
function old new delta
send_packet 103 87 -16
udhcpc_main 2359 2323 -36
Diffstat (limited to 'networking/udhcp/serverpacket.c')
-rw-r--r-- | networking/udhcp/serverpacket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/serverpacket.c b/networking/udhcp/serverpacket.c index 5b1c615..dcc234c 100644 --- a/networking/udhcp/serverpacket.c +++ b/networking/udhcp/serverpacket.c @@ -50,7 +50,7 @@ static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcas DEBUG("unicasting packet to client ciaddr"); ciaddr = payload->ciaddr; chaddr = payload->chaddr; - } else if (ntohs(payload->flags) & BROADCAST_FLAG) { + } else if (payload->flags & htons(BROADCAST_FLAG)) { DEBUG("broadcasting packet to client (requested)"); ciaddr = INADDR_BROADCAST; chaddr = MAC_BCAST_ADDR; |