diff options
author | Denis Vlasenko | 2007-12-20 21:11:38 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-12-20 21:11:38 +0000 |
commit | fff145dba309df2a6ba2986ad2b690f7e0858cad (patch) | |
tree | ddd42dcde1f1d52b477c63d2c85e6f1f1f075bda /networking/udhcp/serverpacket.c | |
parent | f77f369ce89549ae3b0b70bfbac4e9c242ec5298 (diff) | |
download | busybox-fff145dba309df2a6ba2986ad2b690f7e0858cad.zip busybox-fff145dba309df2a6ba2986ad2b690f7e0858cad.tar.gz |
udhcp: fix oversized packet sending (introduced by "slack for bad dhcp servers" options);
slight optimizations and function renaming
udhcp_send_raw_packet - 391 +391
udhcp_send_kernel_packet - 197 +197
udhcp_recv_packet - 134 +134
get_raw_packet 353 326 -27
udhcp_get_packet 134 - -134
udhcp_kernel_packet 197 - -197
udhcp_raw_packet 391 - -391
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 0/1 up/down: 722/-749) Total: -27 bytes
Diffstat (limited to 'networking/udhcp/serverpacket.c')
-rw-r--r-- | networking/udhcp/serverpacket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/serverpacket.c b/networking/udhcp/serverpacket.c index ecbf50a..764b9a8 100644 --- a/networking/udhcp/serverpacket.c +++ b/networking/udhcp/serverpacket.c @@ -30,7 +30,7 @@ static int send_packet_to_relay(struct dhcpMessage *payload) { DEBUG("Forwarding packet to relay"); - return udhcp_kernel_packet(payload, server_config.server, SERVER_PORT, + return udhcp_send_kernel_packet(payload, server_config.server, SERVER_PORT, payload->giaddr, SERVER_PORT); } @@ -58,7 +58,7 @@ static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcas ciaddr = payload->yiaddr; chaddr = payload->chaddr; } - return udhcp_raw_packet(payload, server_config.server, SERVER_PORT, + return udhcp_send_raw_packet(payload, server_config.server, SERVER_PORT, ciaddr, CLIENT_PORT, chaddr, server_config.ifindex); } |