From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hangbin Liu Subject: [PATCH net] sit: update frag_off info Date: Thu, 30 Nov 2017 10:41:14 +0800 Message-ID: <1512009674-1724-1-git-send-email-liuhangbin@gmail.com> Cc: Nicolas Dichtel , David Miller , Hangbin Liu To: netdev@vger.kernel.org Return-path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:42553 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbdK3Cle (ORCPT ); Wed, 29 Nov 2017 21:41:34 -0500 Received: by mail-pg0-f65.google.com with SMTP id e14so2392951pgr.9 for ; Wed, 29 Nov 2017 18:41:33 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: 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. Fixes: f37234160233 ("sit: add support of link creation via rtnl") Reported-by: Jianlin Shi Signed-off-by: Hangbin Liu --- net/ipv6/sit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index d60ddcb..d7dc23c 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; -- 2.5.5