Thread (1 message) 1 message, 1 author, 2013-06-10
DORMANTno replies

[PATCH net-next 09/12] vxlan: port module param should be ushort

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2013-06-10 20:25:50

UDP ports are limited to 16 bits.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/drivers/net/vxlan.c	2013-06-10 12:20:02.174061866 -0700
+++ b/drivers/net/vxlan.c	2013-06-10 12:20:03.034052087 -0700
@@ -70,8 +70,8 @@ struct vxlanhdr {
  * 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;
-module_param_named(udp_port, vxlan_port, uint, 0444);
+static unsigned short vxlan_port __read_mostly = 8472;
+module_param_named(udp_port, vxlan_port, ushort, 0444);
 MODULE_PARM_DESC(udp_port, "Destination UDP port");
 
 static bool log_ecn_error = true;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help