From: Nicolas Dichtel Date: Wed, 14 Nov 2012 15:29:25 +0000 (+0100) Subject: ip/ip6tunnel: reset encap limit flag on change X-Git-Tag: v3.8.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da845409ea40634c44b383cc6482cb6a78ecf1e;p=thirdparty%2Fiproute2.git ip/ip6tunnel: reset encap limit flag on change Flag IP6_TNL_F_IGN_ENCAP_LIMIT is set when encaplimit is none, but it was not removed if encaplimit was set on update (ip tunnel change). Signed-off-by: Nicolas Dichtel --- diff --git a/ip/ip6tunnel.c b/ip/ip6tunnel.c index b23377a67..7aaac61b3 100644 --- a/ip/ip6tunnel.c +++ b/ip/ip6tunnel.c @@ -157,6 +157,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip6_tnl_parm *p) if (get_u8(&uval, *argv, 0) < -1) invarg("invalid ELIM", *argv); p->encap_limit = uval; + p->flags &= ~IP6_TNL_F_IGN_ENCAP_LIMIT; } } else if (strcmp(*argv, "hoplimit") == 0 || strcmp(*argv, "ttl") == 0 ||