aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/packet.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-22 14:29:13 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-22 14:29:13 +0100
commitdde8bdcc5bd6f25157ca5364b2991c837f1ef364 (patch)
treed1947e02af92db440b8f8b9e16659ff8568d7e62 /networking/udhcp/packet.c
parent8d1144565fd01576b72eac65ce4686405f98829e (diff)
downloadbusybox-dde8bdcc5bd6f25157ca5364b2991c837f1ef364.tar.gz
udhcp: merge options.h into common.h, script.c into dhcpc.c
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/packet.c')
-rw-r--r--networking/udhcp/packet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c
index 84d83098c..03d5e1fc8 100644
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
@@ -17,7 +17,6 @@
#include "common.h"
#include "dhcpd.h"
-#include "options.h"
void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type)
{
@@ -34,7 +33,7 @@ void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type)
packet->cookie = htonl(DHCP_MAGIC);
if (DHCP_END != 0)
packet->options[0] = DHCP_END;
- add_simple_option(packet->options, DHCP_MESSAGE_TYPE, type);
+ udhcp_add_simple_option(packet->options, DHCP_MESSAGE_TYPE, type);
}
#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2
@@ -105,7 +104,7 @@ int FAST_FUNC udhcp_recv_kernel_packet(struct dhcp_packet *packet, int fd)
udhcp_dump_packet(packet);
if (packet->op == BOOTREQUEST) {
- vendor = get_option(packet, DHCP_VENDOR);
+ vendor = udhcp_get_option(packet, DHCP_VENDOR);
if (vendor) {
#if 0
static const char broken_vendors[][8] = {
@@ -221,7 +220,7 @@ int FAST_FUNC udhcp_send_raw_packet(struct dhcp_packet *dhcp_pkt,
/* Currently we send full-sized DHCP packets (zero padded).
* If you need to change this: last byte of the packet is
- * packet.data.options[end_option(packet.data.options)]
+ * packet.data.options[udhcp_end_option(packet.data.options)]
*/
udhcp_dump_packet(dhcp_pkt);
result = sendto(fd, &packet, IP_UPD_DHCP_SIZE, 0,