summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2014-12-17 05:36:34 +0000
committerbryanv <bryanv@FreeBSD.org>2014-12-17 05:36:34 +0000
commitbd42e1aaf2474d4af48b2daeb8598efb5de4e7df (patch)
treefece017bb6fb5a0ac2bde655ea5fa109799fb7cf /sbin/ifconfig
parent36aadd747e9430493df7783930fb494463ef0b34 (diff)
downloadFreeBSD-src-bd42e1aaf2474d4af48b2daeb8598efb5de4e7df.zip
FreeBSD-src-bd42e1aaf2474d4af48b2daeb8598efb5de4e7df.tar.gz
Prefix all the vxlan ifconfig commands so they are unique
And rehook ifvxlan back into the build.
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/Makefile2
-rw-r--r--sbin/ifconfig/ifconfig.830
-rw-r--r--sbin/ifconfig/ifvxlan.c54
3 files changed, 43 insertions, 43 deletions
diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile
index 572c061..885f8a9 100644
--- a/sbin/ifconfig/Makefile
+++ b/sbin/ifconfig/Makefile
@@ -30,7 +30,7 @@ SRCS+= ifmac.c # MAC support
SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support
SRCS+= iffib.c # non-default FIB support
SRCS+= ifvlan.c # SIOC[GS]ETVLAN support
-#SRCS+= ifvxlan.c # VXLAN support
+SRCS+= ifvxlan.c # VXLAN support
SRCS+= ifgre.c # GRE keys etc
SRCS+= ifgif.c # GIF reversed header workaround
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 064a62d..90c8d7a 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -28,7 +28,7 @@
.\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94
.\" $FreeBSD$
.\"
-.Dd October 20, 2014
+.Dd December 16, 2014
.Dt IFCONFIG 8
.Os
.Sh NAME
@@ -2544,33 +2544,33 @@ The following parameters are used to configure
.Xr vxlan 4
interfaces.
.Bl -tag -width indent
-.It Cm vni Ar identifier
+.It Cm vxlanid Ar identifier
This value is a 24-bit VXLAN Network Identifier (VNI) that identifies the
virtual network segment membership of the interface.
-.It Cm local Ar address
+.It Cm vxlanlocal Ar address
The source address used in the encapsulating IPv4/IPv6 header.
The address should already be assigned to an existing interface.
When the interface is configured in unicast mode, the listening socket
is bound to this address.
-.It Cm remote Ar address
+.It Cm vxlanremote Ar address
The interface can be configured in a unicast, or point-to-point, mode
to create a tunnel between two hosts.
This is the IP address of the remote end of the tunnel.
-.It Cm group Ar address
+.It Cm vxlangroup Ar address
The interface can be configured in a multicast mode
to create a virtual network of hosts.
This is the IP multicast group address the interface will join.
-.It Cm localport Ar port
+.It Cm vxlanlocalport Ar port
The port number the interface will listen on.
The default port number is 4789.
-.It Cm remoteport Ar port
+.It Cm vxlanremoteport Ar port
The destination port number used in the encapsulating IPv4/IPv6 header.
The remote host should be listening on this port.
The default port number is 4789.
Note some other implementations, such as Linux,
do not default to the IANA assigned port,
but instead listen on port 8472.
-.It Cm portrange Ar low high
+.It Cm vxlanportrange Ar low high
The range of source ports used in the encapsulating IPv4/IPv6 header.
The port selected within the range is based on a hash of the inner frame.
A range is useful to provide entropy within the outer IP header
@@ -2581,32 +2581,32 @@ variables
.Va net.inet.ip.portrange.first
and
.Va net.inet.ip.portrange.last
-.It Cm timeout Ar timeout
+.It Cm vxlantimeout Ar timeout
The maximum time, in seconds, before an entry in the forwarding table
is pruned.
The default is 1200 seconds (20 minutes).
-.It Cm maxaddr Ar max
+.It Cm vxlanmaxaddr Ar max
The maximum number of entries in the forwarding table.
The default is 2000.
.It Cm vxlandev Ar dev
When the interface is configured in multicast mode, the
.Cm dev
interface is used to transmit IP multicast packets.
-.It Cm ttl Ar ttl
+.It Cm vxlanttl Ar ttl
The TTL used in the encapsulating IPv4/IPv6 header.
The default is 64.
-.It Cm learn
+.It Cm vxlanlearn
The source IP address and inner source Ethernet MAC address of
received packets are used to dynamically populate the forwarding table.
When in multicast mode, an entry in the forwarding table allows the
interface to send the frame directly to the remote host instead of
broadcasting the frame to the multicast group.
This is the default.
-.It Fl learn
+.It Fl vxlanlearn
The forwarding table is not populated by recevied packets.
-.It Cm flush
+.It Cm vxlanflush
Delete all dynamically-learned addresses from the forwarding table.
-.It Cm flushall
+.It Cm vxlanflushall
Delete all addresses, including static addresses, from the forwarding table.
.El
.Pp
diff --git a/sbin/ifconfig/ifvxlan.c b/sbin/ifconfig/ifvxlan.c
index 7234667..9aa84a2 100644
--- a/sbin/ifconfig/ifvxlan.c
+++ b/sbin/ifconfig/ifvxlan.c
@@ -595,36 +595,36 @@ setvxlan_flush(const char *val, int d, int s, const struct afswtch *afp)
static struct cmd vxlan_cmds[] = {
- DEF_CLONE_CMD_ARG("vni", setvxlan_vni),
- DEF_CLONE_CMD_ARG("local", setvxlan_local),
- DEF_CLONE_CMD_ARG("remote", setvxlan_remote),
- DEF_CLONE_CMD_ARG("group", setvxlan_group),
- DEF_CLONE_CMD_ARG("localport", setvxlan_local_port),
- DEF_CLONE_CMD_ARG("remoteport", setvxlan_remote_port),
- DEF_CLONE_CMD_ARG2("portrange", setvxlan_port_range),
- DEF_CLONE_CMD_ARG("timeout", setvxlan_timeout),
- DEF_CLONE_CMD_ARG("maxaddr", setvxlan_maxaddr),
+ DEF_CLONE_CMD_ARG("vxlanid", setvxlan_vni),
+ DEF_CLONE_CMD_ARG("vxlanlocal", setvxlan_local),
+ DEF_CLONE_CMD_ARG("vxlanremote", setvxlan_remote),
+ DEF_CLONE_CMD_ARG("vxlangroup", setvxlan_group),
+ DEF_CLONE_CMD_ARG("vxlanlocalport", setvxlan_local_port),
+ DEF_CLONE_CMD_ARG("vxlanremoteport", setvxlan_remote_port),
+ DEF_CLONE_CMD_ARG2("vxlanportrange", setvxlan_port_range),
+ DEF_CLONE_CMD_ARG("vxlantimeout", setvxlan_timeout),
+ DEF_CLONE_CMD_ARG("vxlanmaxaddr", setvxlan_maxaddr),
DEF_CLONE_CMD_ARG("vxlandev", setvxlan_dev),
- DEF_CLONE_CMD_ARG("ttl", setvxlan_ttl),
- DEF_CLONE_CMD("learn", 1, setvxlan_learn),
- DEF_CLONE_CMD("-learn", 0, setvxlan_learn),
-
- DEF_CMD_ARG("vni", setvxlan_vni),
- DEF_CMD_ARG("local", setvxlan_local),
- DEF_CMD_ARG("remote", setvxlan_remote),
- DEF_CMD_ARG("group", setvxlan_group),
- DEF_CMD_ARG("localport", setvxlan_local_port),
- DEF_CMD_ARG("remoteport", setvxlan_remote_port),
- DEF_CMD_ARG2("portrange", setvxlan_port_range),
- DEF_CMD_ARG("timeout", setvxlan_timeout),
- DEF_CMD_ARG("maxaddr", setvxlan_maxaddr),
+ DEF_CLONE_CMD_ARG("vxlanttl", setvxlan_ttl),
+ DEF_CLONE_CMD("vxlanlearn", 1, setvxlan_learn),
+ DEF_CLONE_CMD("-vxlanlearn", 0, setvxlan_learn),
+
+ DEF_CMD_ARG("vxlanvni", setvxlan_vni),
+ DEF_CMD_ARG("vxlanlocal", setvxlan_local),
+ DEF_CMD_ARG("vxlanremote", setvxlan_remote),
+ DEF_CMD_ARG("vxlangroup", setvxlan_group),
+ DEF_CMD_ARG("vxlanlocalport", setvxlan_local_port),
+ DEF_CMD_ARG("vxlanremoteport", setvxlan_remote_port),
+ DEF_CMD_ARG2("vxlanportrange", setvxlan_port_range),
+ DEF_CMD_ARG("vxlantimeout", setvxlan_timeout),
+ DEF_CMD_ARG("vxlanmaxaddr", setvxlan_maxaddr),
DEF_CMD_ARG("vxlandev", setvxlan_dev),
- DEF_CMD_ARG("ttl", setvxlan_ttl),
- DEF_CMD("learn", 1, setvxlan_learn),
- DEF_CMD("-learn", 0, setvxlan_learn),
+ DEF_CMD_ARG("vxlanttl", setvxlan_ttl),
+ DEF_CMD("vxlanlearn", 1, setvxlan_learn),
+ DEF_CMD("-vxlanlearn", 0, setvxlan_learn),
- DEF_CMD("flush", 0, setvxlan_flush),
- DEF_CMD("flushall", 1, setvxlan_flush),
+ DEF_CMD("vxlanflush", 0, setvxlan_flush),
+ DEF_CMD("vxlanflushall", 1, setvxlan_flush),
};
static struct afswtch af_vxlan = {
OpenPOWER on IntegriCloud