diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-04-27 07:31:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-29 11:53:12 -0400 |
commit | 23c578bf7d532552298c84d4872e4ab85ed82840 (patch) | |
tree | 88700555703fd1797429256abdf3ac9805c337a7 /drivers/net/vxlan.c | |
parent | 3b8df3c6b1b626e38ede5a6a056fa759ecbe4745 (diff) |
vxlan: document UDP default port
The default port for VXLAN is not same as IANA value.
Document this.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 9a6962643e55..e6a3d4737df2 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | * | 9 | * |
10 | * TODO | 10 | * TODO |
11 | * - use IANA UDP port number (when defined) | ||
12 | * - IPv6 (not in RFC) | 11 | * - IPv6 (not in RFC) |
13 | */ | 12 | */ |
14 | 13 | ||
@@ -65,7 +64,10 @@ struct vxlanhdr { | |||
65 | __be32 vx_vni; | 64 | __be32 vx_vni; |
66 | }; | 65 | }; |
67 | 66 | ||
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 | */ | ||
69 | static unsigned int vxlan_port __read_mostly = 8472; | 71 | static unsigned int vxlan_port __read_mostly = 8472; |
70 | module_param_named(udp_port, vxlan_port, uint, 0444); | 72 | module_param_named(udp_port, vxlan_port, uint, 0444); |
71 | MODULE_PARM_DESC(udp_port, "Destination UDP port"); | 73 | MODULE_PARM_DESC(udp_port, "Destination UDP port"); |