diff options
author | Nigel Hathaway | 2011-04-26 02:50:00 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-04-26 02:50:00 +0200 |
commit | fb6b173ff786648f5f43d23ff3c4f7721e9cb8b5 (patch) | |
tree | ba67ed5f064e5380304682418be401ec08bc1521 /networking/udhcp/common.c | |
parent | c37d4c67e85782001953a8bae8a9c65ccdcb2f88 (diff) | |
download | busybox-fb6b173ff786648f5f43d23ff3c4f7721e9cb8b5.zip busybox-fb6b173ff786648f5f43d23ff3c4f7721e9cb8b5.tar.gz |
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 0a60261..70e3461 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c @@ -55,6 +55,10 @@ const struct dhcp_optflag dhcp_optflags[] = { { OPTION_SIP_SERVERS , 0x78 }, /* DHCP_SIP_SERVERS */ #endif { OPTION_STATIC_ROUTES , 0x79 }, /* DHCP_STATIC_ROUTES */ +#if ENABLE_FEATURE_UDHCP_8021Q + { OPTION_U16 , 0x84 }, /* DHCP_VLAN_ID */ + { OPTION_U8 , 0x85 }, /* DHCP_VLAN_PRIORITY */ +#endif { OPTION_STATIC_ROUTES , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */ { OPTION_STRING , 0xfc }, /* DHCP_WPAD */ @@ -118,6 +122,10 @@ const char dhcp_option_strings[] ALIGN1 = // doesn't work in udhcpd.conf since OPTION_STATIC_ROUTES // is not handled yet by "string->option" conversion code: "staticroutes" "\0"/* DHCP_STATIC_ROUTES */ +#if ENABLE_FEATURE_UDHCP_8021Q + "vlanid" "\0" /* DHCP_VLAN_ID */ + "vlanpriority" "\0"/* DHCP_VLAN_PRIORITY */ +#endif "msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */ "wpad" "\0" /* DHCP_WPAD */ ; |