mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
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:
parent
b2a1393ee2
commit
e82866fea6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132658
sbin/ifconfig
@ -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 ,
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user