netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch iproute2] vxlan: use 8472 as default dst port
@ 2013-05-15 11:11 Cong Wang
  2013-05-15 11:32 ` David Stevens
  0 siblings, 1 reply; 23+ messages in thread
From: Cong Wang @ 2013-05-15 11:11 UTC (permalink / raw)
  To: netdev; +Cc: Stephen Hemminger, Cong Wang

Because Linux kernel uses the same default, otherwise
the default config doesn't work.

Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Cong Wang <amwang@redhat.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;
 }

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2013-05-16 16:02 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-15 11:11 [Patch iproute2] vxlan: use 8472 as default dst port Cong Wang
2013-05-15 11:32 ` David Stevens
2013-05-15 16:53   ` Stephen Hemminger
2013-05-15 17:19     ` David Stevens
2013-05-15 17:43       ` Stephen Hemminger
2013-05-15 18:11         ` David Stevens
2013-05-16  8:24           ` David Laight
2013-05-16 16:02             ` Stephen Hemminger
2013-05-15 20:23         ` David Miller
2013-05-15 17:48       ` Stephen Hemminger
2013-05-15 18:42         ` David Stevens
2013-05-15 21:37           ` [RFT] vxlan: listen on multiple ports Stephen Hemminger
2013-05-16  2:51             ` Cong Wang
2013-05-16  6:20               ` Stephen Hemminger
2013-05-15 20:22     ` [Patch iproute2] vxlan: use 8472 as default dst port David Miller
2013-05-15 20:25       ` Stephen Hemminger
2013-05-15 20:48       ` [PATCH] vxlan: force user to set port value Stephen Hemminger
2013-05-15 21:47         ` David Miller
2013-05-15 22:04           ` Stephen Hemminger
2013-05-15 22:40             ` David Miller
2013-05-15 22:19           ` Stephen Hemminger
2013-05-15 21:57         ` Sridhar Samudrala
2013-05-15 22:01           ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).