mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
vxlan: port module param should be ushort
UDP ports are limited to 16 bits. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
3e61aa8f0a
commit
9daaa397b3
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ struct vxlanhdr {
|
||||||
* The IANA assigned port is 4789, but the Linux default is 8472
|
* The IANA assigned port is 4789, but the Linux default is 8472
|
||||||
* for compatability with early adopters.
|
* for compatability with early adopters.
|
||||||
*/
|
*/
|
||||||
static unsigned int vxlan_port __read_mostly = 8472;
|
static unsigned short vxlan_port __read_mostly = 8472;
|
||||||
module_param_named(udp_port, vxlan_port, uint, 0444);
|
module_param_named(udp_port, vxlan_port, ushort, 0444);
|
||||||
MODULE_PARM_DESC(udp_port, "Destination UDP port");
|
MODULE_PARM_DESC(udp_port, "Destination UDP port");
|
||||||
|
|
||||||
static bool log_ecn_error = true;
|
static bool log_ecn_error = true;
|
||||||
|
|
Loading…
Reference in a new issue