Skip to content

Commit 9b44cb6

Browse files
edumazetgregkh
authored andcommitted
ipv6: fix typos in __ip6_finish_output()
[ Upstream commit 19d36c5 ] We deal with IPv6 packets, so we need to use IP6CB(skb)->flags and IP6SKB_REROUTED, instead of IPCB(skb)->flags and IPSKB_REROUTED Found by code inspection, please double check that fixing this bug does not surface other bugs. Fixes: 09ee9db ("ipv6: Reinject IPv6 packets if IPsec policy matches after SNAT") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Tobias Brunner <tobias@strongswan.org> Cc: Steffen Klassert <steffen.klassert@secunet.com> Cc: David Ahern <dsahern@kernel.org> Reviewed-by: David Ahern <dsahern@kernel.org> Tested-by: Tobias Brunner <tobias@strongswan.org> Acked-by: Tobias Brunner <tobias@strongswan.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6d9e8da commit 9b44cb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ipv6/ip6_output.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static int __ip6_finish_output(struct net *net, struct sock *sk, struct sk_buff
193193
#if defined(CONFIG_NETFILTER) && defined(CONFIG_XFRM)
194194
/* Policy lookup after SNAT yielded a new policy */
195195
if (skb_dst(skb)->xfrm) {
196-
IPCB(skb)->flags |= IPSKB_REROUTED;
196+
IP6CB(skb)->flags |= IP6SKB_REROUTED;
197197
return dst_output(net, sk, skb);
198198
}
199199
#endif

0 commit comments

Comments
 (0)