summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.8
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-10-23 01:19:05 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-10-23 01:19:05 +0000
commit46414bebb04bce3ce52afb402304f9ca4e155da1 (patch)
tree4a7ac5d924992ef441ebab088e79729a1751e4b4 /sbin/ifconfig/ifconfig.8
parent0f34f3b38d145dba1f857d12fe969dd0fb4dab0d (diff)
tweak the vnetid so it can be optional and therefore cleared/deleted.
the abstract vnetid is promoted to a uin32_t, and adds a SIOCDVNETID ioctl so it can be cleared. this is all because i set an assignment on implementing a virtual network interface and the students got confused when vnetid 0 didnt show up in ifconfig output. the vnetid in the vxlan(4) protocol is optional, but the current code confuses 0 with no vnetid being set. this makes it clear. ok reyk@ who also simplified my diff
Diffstat (limited to 'sbin/ifconfig/ifconfig.8')
-rw-r--r--sbin/ifconfig/ifconfig.87
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 35137b537bb..3412f74f09a 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ifconfig.8,v 1.257 2015/10/06 17:23:21 benno Exp $
+.\" $OpenBSD: ifconfig.8,v 1.258 2015/10/23 01:19:04 dlg Exp $
.\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $
.\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $
.\"
@@ -31,7 +31,7 @@
.\"
.\" @(#)ifconfig.8 8.4 (Berkeley) 6/1/94
.\"
-.Dd $Mdocdate: October 6 2015 $
+.Dd $Mdocdate: October 23 2015 $
.Dt IFCONFIG 8
.Os
.Sh NAME
@@ -1504,6 +1504,7 @@ for a complete list of the available protocols,
.Op Cm tunnel Ar src_address dest_address
.Op Cm tunneldomain Ar tableid
.Op Cm vnetid Ar network-id
+.Op Cm -vnetid
.Ek
.nr nS 0
.Pp
@@ -1559,6 +1560,8 @@ to identify packets with a virtual network.
The accepted size of the number depends on the individual tunnel protocol;
it is a 24-bit number for
.Xr vxlan 4 .
+.It Cm -vnetid
+Clear the virtual network identifier.
.El
.\" VLAN
.Sh VLAN