netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] sit: update frag_off info
@ 2017-11-30  2:41 Hangbin Liu
  2017-11-30 14:08 ` Nicolas Dichtel
  2017-11-30 15:26 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Hangbin Liu @ 2017-11-30  2:41 UTC (permalink / raw)
  To: netdev; +Cc: Nicolas Dichtel, David Miller, Hangbin Liu

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 <jishi@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-30 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-30  2:41 [PATCH net] sit: update frag_off info Hangbin Liu
2017-11-30 14:08 ` Nicolas Dichtel
2017-11-30 14:35   ` Hangbin Liu
2017-11-30 15:26 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).