Commit 23c578bf authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

vxlan: document UDP default port

The default port for VXLAN is not same as IANA value.
Document this.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b8df3c6
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* TODO * TODO
* - use IANA UDP port number (when defined)
* - IPv6 (not in RFC) * - IPv6 (not in RFC)
*/ */
...@@ -65,7 +64,10 @@ struct vxlanhdr { ...@@ -65,7 +64,10 @@ struct vxlanhdr {
__be32 vx_vni; __be32 vx_vni;
}; };
/* UDP port for VXLAN traffic. */ /* UDP port for VXLAN traffic.
* The IANA assigned port is 4789, but the Linux default is 8472
* for compatability with early adopters.
*/
static unsigned int vxlan_port __read_mostly = 8472; static unsigned int vxlan_port __read_mostly = 8472;
module_param_named(udp_port, vxlan_port, uint, 0444); module_param_named(udp_port, vxlan_port, uint, 0444);
MODULE_PARM_DESC(udp_port, "Destination UDP port"); MODULE_PARM_DESC(udp_port, "Destination UDP port");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment