diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-22 14:29:13 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-22 14:29:13 +0100 |
commit | dde8bdcc5bd6f25157ca5364b2991c837f1ef364 (patch) | |
tree | d1947e02af92db440b8f8b9e16659ff8568d7e62 /networking/udhcp/dhcprelay.c | |
parent | 8d1144565fd01576b72eac65ce4686405f98829e (diff) | |
download | busybox-w32-dde8bdcc5bd6f25157ca5364b2991c837f1ef364.tar.gz busybox-w32-dde8bdcc5bd6f25157ca5364b2991c837f1ef364.tar.bz2 busybox-w32-dde8bdcc5bd6f25157ca5364b2991c837f1ef364.zip |
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/dhcprelay.c')
-rw-r--r-- | networking/udhcp/dhcprelay.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c index a7e715ff9..9f6ac699a 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c | |||
@@ -11,7 +11,6 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "common.h" | 13 | #include "common.h" |
14 | #include "options.h" | ||
15 | 14 | ||
16 | #define SERVER_PORT 67 | 15 | #define SERVER_PORT 67 |
17 | #define SELECT_TIMEOUT 5 /* select timeout in sec. */ | 16 | #define SELECT_TIMEOUT 5 /* select timeout in sec. */ |
@@ -105,7 +104,7 @@ static int get_dhcp_packet_type(struct dhcp_packet *p) | |||
105 | if (p->op != BOOTREQUEST && p->op != BOOTREPLY) | 104 | if (p->op != BOOTREQUEST && p->op != BOOTREPLY) |
106 | return -1; | 105 | return -1; |
107 | /* get message type option */ | 106 | /* get message type option */ |
108 | op = get_option(p, DHCP_MESSAGE_TYPE); | 107 | op = udhcp_get_option(p, DHCP_MESSAGE_TYPE); |
109 | if (op != NULL) | 108 | if (op != NULL) |
110 | return op[0]; | 109 | return op[0]; |
111 | return -1; | 110 | return -1; |