Support using ip in udhcpc scripts.

Slightly modified version of patch by Bastian Blank
This commit is contained in:
Glenn L McGrath
2002-12-08 22:17:54 +00:00
parent c4698b3668
commit 6b5bd0e5ab
4 changed files with 62 additions and 1 deletions

View File

@ -13,11 +13,16 @@
#include "options.h"
#include "leases.h"
#include "config.h"
/* supported options are easily added here */
struct dhcp_option options[] = {
/* name[10] flags code */
{"subnet", OPTION_IP | OPTION_REQ, 0x01},
#ifdef CONFIG_FEATURE_UDHCPC_IP
{"subnet", OPTION_IP | OPTION_REQ | OPTION_PREFIX, 0x01},
#else
{"subnet", OPTION_IP | OPTION_REQ, 0x01},
#endif
{"timezone", OPTION_S32, 0x02},
{"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03},
{"timesvr", OPTION_IP | OPTION_LIST, 0x04},