Skip to content

Commit

Permalink
vxlan: port module param should be ushort
Browse files Browse the repository at this point in the history
UDP ports are limited to 16 bits.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
  • Loading branch information
Stephen Hemminger committed Jun 24, 2013
1 parent 3e61aa8 commit 9daaa39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9daaa39

Please sign in to comment.