|
@@ -2890,7 +2890,7 @@ static int vxlan_dev_configure(struct net *src_net, struct net_device *dev,
|
|
memcpy(&vxlan->cfg, conf, sizeof(*conf));
|
|
memcpy(&vxlan->cfg, conf, sizeof(*conf));
|
|
if (!vxlan->cfg.dst_port) {
|
|
if (!vxlan->cfg.dst_port) {
|
|
if (conf->flags & VXLAN_F_GPE)
|
|
if (conf->flags & VXLAN_F_GPE)
|
|
- vxlan->cfg.dst_port = 4790; /* IANA assigned VXLAN-GPE port */
|
|
|
|
|
|
+ vxlan->cfg.dst_port = htons(4790); /* IANA VXLAN-GPE port */
|
|
else
|
|
else
|
|
vxlan->cfg.dst_port = default_port;
|
|
vxlan->cfg.dst_port = default_port;
|
|
}
|
|
}
|