2018-04-19, 12:22:42 +0200, Sabrina Dubroca wrote:
> @@ -210,28 +210,49 @@ get_failed:
>                       iflags |= GRE_KEY;
>                       oflags |= GRE_KEY;
>                       ikey = okey = tnl_parse_key("key", *argv);
> +             } else if (!matches(*argv, "nokey")) {
> +                     iflags &= ~GRE_KEY;
> +                     oflags &= ~GRE_KEY;
>               } else if (!matches(*argv, "ikey")) {
>                       NEXT_ARG();
>                       iflags |= GRE_KEY;
>                       ikey = tnl_parse_key("ikey", *argv);
> +             } else if (!matches(*argv, "noikey")) {
> +                     iflags &= ~GRE_KEY;
>               } else if (!matches(*argv, "okey")) {
>                       NEXT_ARG();
>                       oflags |= GRE_KEY;
>                       okey = tnl_parse_key("okey", *argv);
> +             } else if (!matches(*argv, "noikey")) {
> +                     iflags &= ~GRE_KEY;

Sorry, posted the wrong version. I'll send v2 after I've had a bucket
of coffee.

-- 
Sabrina

Reply via email to