summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-07-26 13:25:45 +0000
committeryar <yar@FreeBSD.org>2004-07-26 13:25:45 +0000
commit78326c15fe417280aa5aa8548e2864bd64075f52 (patch)
tree380d733d85d213c395d65ddf0f5a25f3ca274c5b /sbin/ifconfig
parent1c510b6b700aaefda872b1d61aaf1782bc408189 (diff)
downloadFreeBSD-src-78326c15fe417280aa5aa8548e2864bd64075f52.zip
FreeBSD-src-78326c15fe417280aa5aa8548e2864bd64075f52.tar.gz
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.
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.813
-rw-r--r--sbin/ifconfig/ifconfig.c4
2 files changed, 17 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index a9c6a21..2812eb3 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 b35ed9e..8070bfe 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 },
OpenPOWER on IntegriCloud