From e82866fea62c12bccb1d5e4f7e53adfae572acca Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Mon, 26 Jul 2004 13:25:45 +0000 Subject: [PATCH] Add two knobs to ifconfig(8), `vlanmtu' and `vlanhwtag', that provide control over the respective capabilities of an interface, reception of extended frames and hardware VLAN multiplexor. --- sbin/ifconfig/ifconfig.8 | 13 +++++++++++++ sbin/ifconfig/ifconfig.c | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index a9c6a21db08e..2812eb3394be 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -450,6 +450,19 @@ This breaks the link between the .Xr vlan 4 interface and its parent, clears its VLAN tag, flags and its link address and shuts the interface down. +.It Cm vlanmtu , vlanhwtag +If the driver offers user-configurable VLAN support, enable +reception of extended frames or tag processing in hardware, +respectively. +Note that this must be issued on a physical interface associated with +.Xr vlan 4 , +not on a +.Xr vlan 4 +interface itself. +.It Fl vlanmtu , Fl vlanhwtag +If the driver offers user-configurable VLAN support, disable +reception of extended frames or tag processing in hardware, +respectively. .It Cm metric Ar n Set the routing metric of the interface to .Ar n , diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index b35ed9e9f095..8070bfe77642 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -285,6 +285,10 @@ struct cmd { { "-netcons", -IFCAP_NETCONS, setifcap }, { "polling", IFCAP_POLLING, setifcap }, { "-polling", -IFCAP_POLLING, setifcap }, + { "vlanmtu", IFCAP_VLAN_MTU, setifcap }, + { "-vlanmtu", -IFCAP_VLAN_MTU, setifcap }, + { "vlanhwtag", IFCAP_VLAN_HWTAGGING, setifcap }, + { "-vlanhwtag", -IFCAP_VLAN_HWTAGGING, setifcap }, { "normal", -IFF_LINK0, setifflags }, { "compress", IFF_LINK0, setifflags }, { "noicmp", IFF_LINK1, setifflags },