udhcp: merge options.h into common.h, script.c into dhcpc.c

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-03-22 14:29:13 +01:00
parent 8d1144565f
commit dde8bdcc5b
11 changed files with 490 additions and 536 deletions

View File

@@ -11,7 +11,6 @@
*/
#include "common.h"
#include "options.h"
#define SERVER_PORT 67
#define SELECT_TIMEOUT 5 /* select timeout in sec. */
@@ -105,7 +104,7 @@ static int get_dhcp_packet_type(struct dhcp_packet *p)
if (p->op != BOOTREQUEST && p->op != BOOTREPLY)
return -1;
/* get message type option */
op = get_option(p, DHCP_MESSAGE_TYPE);
op = udhcp_get_option(p, DHCP_MESSAGE_TYPE);
if (op != NULL)
return op[0];
return -1;