sit: update frag_off info
Subsystems (2)
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.
--- net/ipv6/sit.c | 1 + 1 file changed, 1 insertion(+)
net/ipv6/sit.c +1 -0
@@ -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
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_offinipip6_tunnel_update(). Fix it by assigningfrag_offwith 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
Reported-by Jianlin Shi <[email protected]>Signed-off-by Hangbin Liu <[email protected]>
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_offinipip6_tunnel_update(). Fix it by assigningfrag_offwith 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
Reported-by Jianlin Shi <[email protected]>Signed-off-by Hangbin Liu <[email protected]>Acked-by Nicolas Dichtel <[email protected]>
David Miller
maintainerFrom: 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_offinipip6_tunnel_update(). Fix it by assigningfrag_offwith new value.Fixes f37234160233 ("sit: add support of link creation via rtnl")Reported-by Jianlin Shi <[email protected]>Signed-off-by Hangbin Liu <[email protected]>
Since, as mentioned, this bug existed before netlink sit support, I've removed this Fixes tag.
Applied and queued up for -stable, nice catch.