Commit 9daaa397 authored by Stephen Hemminger's avatar Stephen Hemminger

vxlan: port module param should be ushort

UDP ports are limited to 16 bits.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
parent 3e61aa8f
......@@ -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;
......
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