@@ -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;
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 <mike.rapoport@ravellosystems.com> --- ip/iplink_vxlan.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)