[PATCH iproute2 1/2] vxlan: introduce vxlan_parse_opt_create
From: Mike Rapoport <hidden>
Date: 2013-06-23 16:24:10
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Mike Rapoport <hidden>
Date: 2013-06-23 16:24:10
Subsystem:
the rest · Maintainer:
Linus Torvalds
for addition of vxlan_parse_opt_change, which is required to differentiate between create time only settings and the settings that can be changed with 'ip link set' Signed-off-by: Mike Rapoport <redacted> --- ip/iplink_vxlan.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c
index 1025326..92ddfb4 100644
--- a/ip/iplink_vxlan.c
+++ b/ip/iplink_vxlan.c@@ -35,8 +35,8 @@ static void explain(void) fprintf(stderr, " TTL := { 1..255 | inherit }\n"); } -static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv, - struct nlmsghdr *n) +static int vxlan_parse_opt_create(struct link_util *lu, int argc, char **argv, + struct nlmsghdr *n) { __u32 vni = 0; int vni_set = 0;
@@ -187,6 +187,12 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv, return 0; } +static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv, + struct nlmsghdr *n) +{ + return vxlan_parse_opt_create(lu, argc, argv, n); +} + static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) { __u32 vni;
--
1.8.1.5