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.
This commit is contained in:
Yaroslav Tykhiy 2004-07-26 13:25:45 +00:00
parent b2a1393ee2
commit e82866fea6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132658
2 changed files with 17 additions and 0 deletions

View File

@ -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 ,

View File

@ -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 },