Skip to content

Commit f859b4a

Browse files
liuhangbindavem330
authored andcommitted
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>
1 parent 3016dad commit f859b4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv6/sit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ static void ipip6_tunnel_update(struct ip_tunnel *t, struct ip_tunnel_parm *p,
10981098
ipip6_tunnel_link(sitn, t);
10991099
t->parms.iph.ttl = p->iph.ttl;
11001100
t->parms.iph.tos = p->iph.tos;
1101+
t->parms.iph.frag_off = p->iph.frag_off;
11011102
if (t->parms.link != p->link || t->fwmark != fwmark) {
11021103
t->parms.link = p->link;
11031104
t->fwmark = fwmark;

0 commit comments

Comments
 (0)