[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1368616270-5775-1-git-send-email-amwang@redhat.com>
Date: Wed, 15 May 2013 19:11:10 +0800
From: Cong Wang <amwang@...hat.com>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>,
Cong Wang <amwang@...hat.com>
Subject: [Patch iproute2] vxlan: use 8472 as default dst port
Because Linux kernel uses the same default, otherwise
the default config doesn't work.
Cc: Stephen Hemminger <stephen@...workplumber.org>
Signed-off-by: Cong Wang <amwang@...hat.com>
---
diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c
index 2d93ee2..a0c90b3 100644
--- a/ip/iplink_vxlan.c
+++ b/ip/iplink_vxlan.c
@@ -53,7 +53,7 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
__u8 noage = 0;
__u32 age = 0;
__u32 maxaddr = 0;
- __u16 dstport = 4789;
+ __u16 dstport = 8472;
struct ifla_vxlan_port_range range = { 0, 0 };
while (argc > 0) {
@@ -188,8 +188,7 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
if (range.low || range.high)
addattr_l(n, 1024, IFLA_VXLAN_PORT_RANGE,
&range, sizeof(range));
- if (dstport)
- addattr16(n, 1024, IFLA_VXLAN_PORT, htons(dstport));
+ addattr16(n, 1024, IFLA_VXLAN_PORT, htons(dstport));
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists