Skip to content

Commit 23c578b

Browse files
shemmingerdavem330
authored andcommitted
vxlan: document UDP default port
The default port for VXLAN is not same as IANA value. Document this. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3b8df3c commit 23c578b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/vxlan.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* published by the Free Software Foundation.
99
*
1010
* TODO
11-
* - use IANA UDP port number (when defined)
1211
* - IPv6 (not in RFC)
1312
*/
1413

@@ -65,7 +64,10 @@ struct vxlanhdr {
6564
__be32 vx_vni;
6665
};
6766

68-
/* UDP port for VXLAN traffic. */
67+
/* UDP port for VXLAN traffic.
68+
* The IANA assigned port is 4789, but the Linux default is 8472
69+
* for compatability with early adopters.
70+
*/
6971
static unsigned int vxlan_port __read_mostly = 8472;
7072
module_param_named(udp_port, vxlan_port, uint, 0444);
7173
MODULE_PARM_DESC(udp_port, "Destination UDP port");

0 commit comments

Comments
 (0)