aboutsummaryrefslogtreecommitdiff
path: root/networking/vconfig.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-09-30 19:37:25 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-09-30 19:37:25 +0000
commit3038ac9c1977c8472fdda2d833a4e4fd5ba6ea94 (patch)
treebf0916588f5f19a2400a6abf02de8de31014f0d4 /networking/vconfig.c
parent02be0f5350fb3b316e864f0484b8998ccce66fdd (diff)
downloadbusybox-3038ac9c1977c8472fdda2d833a4e4fd5ba6ea94.tar.gz
vconfig: fix bug 701 (I be damned if I understand it)
Diffstat (limited to 'networking/vconfig.c')
-rw-r--r--networking/vconfig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/vconfig.c b/networking/vconfig.c
index 15a611098..6c808eb2f 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -72,7 +72,7 @@ static const char cmds[] = {
's', 'e', 't', '_',
'n', 'a', 'm', 'e', '_',
't', 'y', 'p', 'e', 0,
- 4, SET_VLAN_FLAG_CMD, 12,
+ 5, SET_VLAN_FLAG_CMD, 12,
's', 'e', 't', '_',
'f', 'l', 'a', 'g', 0,
5, SET_VLAN_EGRESS_PRIORITY_CMD, 18,
@@ -145,6 +145,8 @@ int vconfig_main(int argc, char **argv)
* more of a pain. */
if (ifr.cmd == SET_VLAN_FLAG_CMD) { /* set_flag */
ifr.u.flag = bb_xgetularg10_bnd(p, 0, 1);
+ /* DM: in order to set reorder header, qos must be set */
+ ifr.vlan_qos = bb_xgetularg10_bnd(argv[3], 0, 7);
} else if (ifr.cmd == ADD_VLAN_CMD) { /* add */
ifr.u.VID = bb_xgetularg10_bnd(p, 0, VLAN_GROUP_ARRAY_LEN-1);
} else if (ifr.cmd != DEL_VLAN_CMD) { /* set_{egress|ingress}_map */
@@ -160,4 +162,3 @@ int vconfig_main(int argc, char **argv)
return 0;
}
-