diff options
author | Nigel Hathaway <Nigel.Hathaway@ubiquisys.com> | 2011-04-26 02:50:00 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-26 02:50:00 +0200 |
commit | fb6b173ff786648f5f43d23ff3c4f7721e9cb8b5 (patch) | |
tree | ba67ed5f064e5380304682418be401ec08bc1521 /networking/udhcp/common.c | |
parent | c37d4c67e85782001953a8bae8a9c65ccdcb2f88 (diff) | |
download | busybox-w32-fb6b173ff786648f5f43d23ff3c4f7721e9cb8b5.tar.gz busybox-w32-fb6b173ff786648f5f43d23ff3c4f7721e9cb8b5.tar.bz2 busybox-w32-fb6b173ff786648f5f43d23ff3c4f7721e9cb8b5.zip |
udhcp: add FEATURE_UDHCP_8021Q option
function old new delta
dhcp_option_strings 217 237 +20
dhcp_optflags 64 68 +4
Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 0a60261ab..70e34614c 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -55,6 +55,10 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
55 | { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */ | 55 | { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */ |
56 | #endif | 56 | #endif |
57 | { OPTION_STATIC_ROUTES , 0x79 }, /* DHCP_STATIC_ROUTES */ | 57 | { OPTION_STATIC_ROUTES , 0x79 }, /* DHCP_STATIC_ROUTES */ |
58 | #if ENABLE_FEATURE_UDHCP_8021Q | ||
59 | { OPTION_U16 , 0x84 }, /* DHCP_VLAN_ID */ | ||
60 | { OPTION_U8 , 0x85 }, /* DHCP_VLAN_PRIORITY */ | ||
61 | #endif | ||
58 | { OPTION_STATIC_ROUTES , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */ | 62 | { OPTION_STATIC_ROUTES , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */ |
59 | { OPTION_STRING , 0xfc }, /* DHCP_WPAD */ | 63 | { OPTION_STRING , 0xfc }, /* DHCP_WPAD */ |
60 | 64 | ||
@@ -118,6 +122,10 @@ const char dhcp_option_strings[] ALIGN1 = | |||
118 | // doesn't work in udhcpd.conf since OPTION_STATIC_ROUTES | 122 | // doesn't work in udhcpd.conf since OPTION_STATIC_ROUTES |
119 | // is not handled yet by "string->option" conversion code: | 123 | // is not handled yet by "string->option" conversion code: |
120 | "staticroutes" "\0"/* DHCP_STATIC_ROUTES */ | 124 | "staticroutes" "\0"/* DHCP_STATIC_ROUTES */ |
125 | #if ENABLE_FEATURE_UDHCP_8021Q | ||
126 | "vlanid" "\0" /* DHCP_VLAN_ID */ | ||
127 | "vlanpriority" "\0"/* DHCP_VLAN_PRIORITY */ | ||
128 | #endif | ||
121 | "msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */ | 129 | "msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */ |
122 | "wpad" "\0" /* DHCP_WPAD */ | 130 | "wpad" "\0" /* DHCP_WPAD */ |
123 | ; | 131 | ; |