diff options
author | Rob Landley | 2006-05-28 01:06:36 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-28 01:06:36 +0000 |
commit | 3f78561d63290c53ca8bb3cd6314ca7357a617ee (patch) | |
tree | 03b3973eeaee9635c77c21028133374d66f2aa18 /networking/udhcp/serverpacket.c | |
parent | 8fba99f35e46d234b47d652225bb80846cae369c (diff) | |
download | busybox-3f78561d63290c53ca8bb3cd6314ca7357a617ee.zip busybox-3f78561d63290c53ca8bb3cd6314ca7357a617ee.tar.gz |
My first bout of untangling udhcp. Make lots of gratuitous #defines go
away, substitutie BB_VER for an external VERSION, use busybox CONFIG symbols
rather than checking for them then defining others, etc. Lots more cleanup
to do...
Diffstat (limited to 'networking/udhcp/serverpacket.c')
-rw-r--r-- | networking/udhcp/serverpacket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/serverpacket.c b/networking/udhcp/serverpacket.c index fe880b4..e40432e 100644 --- a/networking/udhcp/serverpacket.c +++ b/networking/udhcp/serverpacket.c @@ -36,7 +36,7 @@ static int send_packet_to_relay(struct dhcpMessage *payload) { DEBUG(LOG_INFO, "Forwarding packet to relay"); - return kernel_packet(payload, server_config.server, SERVER_PORT, + return udhcp_kernel_packet(payload, server_config.server, SERVER_PORT, payload->giaddr, SERVER_PORT); } @@ -64,7 +64,7 @@ static int send_packet_to_client(struct dhcpMessage *payload, int force_broadcas ciaddr = payload->yiaddr; chaddr = payload->chaddr; } - return raw_packet(payload, server_config.server, SERVER_PORT, + return udhcp_raw_packet(payload, server_config.server, SERVER_PORT, ciaddr, CLIENT_PORT, chaddr, server_config.ifindex); } @@ -83,7 +83,7 @@ static int send_packet(struct dhcpMessage *payload, int force_broadcast) static void init_packet(struct dhcpMessage *packet, struct dhcpMessage *oldpacket, char type) { - init_header(packet, type); + udhcp_init_header(packet, type); packet->xid = oldpacket->xid; memcpy(packet->chaddr, oldpacket->chaddr, 16); packet->flags = oldpacket->flags; |