diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2013-06-17 17:16:12 -0400 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2013-06-24 11:40:33 -0400 |
commit | 9daaa397b3e18282715eeb0d7be79ea5bbadc119 (patch) | |
tree | d348e0ac31a133fb96d930eade361b9af08ce077 /drivers/net/vxlan.c | |
parent | 3e61aa8f0a68e6e007c223688f442be04a44b0f4 (diff) |
vxlan: port module param should be ushort
UDP ports are limited to 16 bits.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 117b7fa6f33b..f89a58bb3f26 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -70,8 +70,8 @@ struct vxlanhdr { | |||
70 | * The IANA assigned port is 4789, but the Linux default is 8472 | 70 | * The IANA assigned port is 4789, but the Linux default is 8472 |
71 | * for compatability with early adopters. | 71 | * for compatability with early adopters. |
72 | */ | 72 | */ |
73 | static unsigned int vxlan_port __read_mostly = 8472; | 73 | static unsigned short vxlan_port __read_mostly = 8472; |
74 | module_param_named(udp_port, vxlan_port, uint, 0444); | 74 | module_param_named(udp_port, vxlan_port, ushort, 0444); |
75 | MODULE_PARM_DESC(udp_port, "Destination UDP port"); | 75 | MODULE_PARM_DESC(udp_port, "Destination UDP port"); |
76 | 76 | ||
77 | static bool log_ecn_error = true; | 77 | static bool log_ecn_error = true; |