vxlan: add ipv6 support
Subsystems (3)
PATCH v2 1/1 vxlan: add ipv6 support
The kernel already supports it, so add the support to iproute2 as well.
Cc Stephen Hemminger <[email protected]>
Signed-off-by Cong Wang <[email protected]>
---
v2: use a helper
include/utils.h +1 -0
@@ -151,6 +151,7 @@ int print_timestamp(FILE *fp);extern int cmdlineno;extern ssize_t getcmdline (char **line,size_t *len,FILE *in);extern int makeargs (char *line,char *argv[],int maxargs); +extern int inet_get_addr (const char *src,__u32 *dst,struct in6_addr *dst6);struct iplink_req ; int iplink_parse(int argc, char **argv, struct iplink_req *req,
ip/iplink_vxlan.c +49 -10
103 lines not on this page · raw message
lib/utils.c +8 -0
@@ -868,3 +868,11 @@ int makeargs(char *line, char *argv[], int maxargs)return argc; } + +int inet_get_addr (const char *src,__u32 *dst,struct in6_addr *dst6) +{ +if (strchr (src,':' )) +return inet_pton (AF_INET6 , src, dst6); +else +return inet_pton (AF_INET , src, dst); +}
Stephen Hemminger
AppliedQuoted 6 lines · On Wed, 16 Oct 2013 22:03:48 -0700 Cong Wang <[email protected]> wrote:
The kernel already supports it, so add the support to iproute2 as well.
Cc Stephen Hemminger <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied