Skip to contentSkip to conversation

vxlan: Allow setting unicast address to the group address

PATCH Superseded Atzm Watanabe 2 participants 3 messages Apr 10, 2013 – Apr 11, 2013

Subsystems (2)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vxlan: Allow setting unicast address to the group address

This patch allows setting unicast address to the VXLAN group address. It allows that VXLAN can be used as peer-to-peer tunnel without multicast.

---
 ip/iplink_vxlan.c | 3 ---
 1 file changed, 3 deletions(-)
ip/iplink_vxlan.c +0 -3
index 1025326..cfe324c 100644
@@ -66,9 +66,6 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
 		} else if (!matches(*argv, "group")) {
 			NEXT_ARG();
 			gaddr = get_addr32(*argv);
-
-			if (!IN_MULTICAST(ntohl(gaddr)))
-				invarg("invald group address", *argv);
 		} else if (!matches(*argv, "local")) {
 			NEXT_ARG();
 			if (strcmp(*argv, "any"))
Signature · 1 line
1.8.1.5
#1 lore raw
Quoted 14 lines · On Wed, 10 Apr 2013 17:52:05 +0900 Atzm Watanabe <[email protected]>…

This patch allows setting unicast address to the VXLAN group address. It allows that VXLAN can be used as peer-to-peer tunnel without multicast.

---
 ip/iplink_vxlan.c | 3 ---
 1 file changed, 3 deletions(-)
ip/iplink_vxlan.c +0 -0
index 1025326..cfe324c 100644

ip/iplink_vxlan.c static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv, · line 71

Quoted 9 lines
ip/iplink_vxlan.c +0 -3
@@ -66,9 +66,6 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
 		} else if (!matches(*argv, "group")) {
 			NEXT_ARG();
 			gaddr = get_addr32(*argv);
-
-			if (!IN_MULTICAST(ntohl(gaddr)))
-				invarg("invald group address", *argv);
 		} else if (!matches(*argv, "local")) {
 			NEXT_ARG();
 			if (strcmp(*argv, "any"))

Could you use another name or argument to express the different intended behavior.

#2 lore raw

At Wed, 10 Apr 2013 09:46:39 -0700,

Quoted 13 lines · Stephen Hemminger
Quoted 9 lines · On Wed, 10 Apr 2013 17:52:05 +0900 Atzm Watanabe <[email protected]>…

This patch allows setting unicast address to the VXLAN group address. It allows that VXLAN can be used as peer-to-peer tunnel without multicast.

---
 ip/iplink_vxlan.c | 3 ---
 1 file changed, 3 deletions(-)
Quoted 16 lines
Quoted 5 lines
ip/iplink_vxlan.c +0 -0
index 1025326..cfe324c 100644

ip/iplink_vxlan.c static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv, · line 71

Quoted 9 lines
ip/iplink_vxlan.c +0 -3
@@ -66,9 +66,6 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
 		} else if (!matches(*argv, "group")) {
 			NEXT_ARG();
 			gaddr = get_addr32(*argv);
-
-			if (!IN_MULTICAST(ntohl(gaddr)))
-				invarg("invald group address", *argv);
 		} else if (!matches(*argv, "local")) {
 			NEXT_ARG();
 			if (strcmp(*argv, "any"))

Could you use another name or argument to express the different intended behavior.

OK, I agreed.

But simply adding another name and argument also means that a VXLAN interface can have multiple "last resort".
So I'll try to fix as below:

1) Add "remote" apart from "group".
2) But specifying both arguments at a time will fail.

If you have other better ideas, please let me know.

Thanks.