diff options
author | Hangbin Liu <liuhangbin@gmail.com> | 2017-11-30 10:41:14 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-30 10:25:41 -0500 |
commit | f859b4af1c52493ec21173ccc73d0b60029b5b88 (patch) | |
tree | ed0c457b4334135ff6b05b353e9c5f63c7ed8f28 | |
parent | 3016dad75b48279e579117ee3ed566ba90a3b023 (diff) | |
download | linux-f859b4af1c52493ec21173ccc73d0b60029b5b88.tar.gz linux-f859b4af1c52493ec21173ccc73d0b60029b5b88.tar.bz2 linux-f859b4af1c52493ec21173ccc73d0b60029b5b88.zip |
sit: update frag_off info
After parsing the sit netlink change info, we forget to update frag_off in
ipip6_tunnel_update(). Fix it by assigning frag_off with new value.
Reported-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/sit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index d60ddcb0bfe2..d7dc23c1b2ca 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -1098,6 +1098,7 @@ static void ipip6_tunnel_update(struct ip_tunnel *t, struct ip_tunnel_parm *p, ipip6_tunnel_link(sitn, t); t->parms.iph.ttl = p->iph.ttl; t->parms.iph.tos = p->iph.tos; + t->parms.iph.frag_off = p->iph.frag_off; if (t->parms.link != p->link || t->fwmark != fwmark) { t->parms.link = p->link; t->fwmark = fwmark; |