Skip to contentSkip to conversation

sit: update frag_off info

PATCH In review Hangbin Liu 3 participants 4 messages Nov 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Fixes f37234160233 ("sit: add support of link creation via rtnl")
---
 net/ipv6/sit.c | 1 +
 1 file changed, 1 insertion(+)
net/ipv6/sit.c +1 -0
index d60ddcb..d7dc23c 100644
@@ -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;
Signature · 1 line
2.5.5
Acked-by on v1 1/1
#1 lore raw

Le 30/11/2017 à 03:41, Hangbin Liu a écrit :

Quoted 4 lines

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")

I think it's older than this patch (before git ages), but it probably doesn't matter.

Quoted 2 lines
#2 lore raw
Quoted 7 lines · Nicolas Dichtel

Le 30/11/2017 à 03:41, Hangbin Liu a écrit :

Quoted 4 lines

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")

I think it's older than this patch (before git ages), but it probably doesn't matter.

Yeah..It really took me some time to consider whether add the fixes tag or not. David, please feel free to remove it if you think it's unnecessary.

Thanks
Hangbin

Quoted 5 lines
Quoted 4 lines
maintainer
#3 lore raw
In reply to Hangbin Liu

From: Hangbin Liu <[email protected]>
Date: Thu, 30 Nov 2017 10:41:14 +0800

Quoted 6 lines

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")

Since, as mentioned, this bug existed before netlink sit support, I've removed this Fixes tag.

Applied and queued up for -stable, nice catch.