Message ID | 20220106093606.3046771-3-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ec3bb890817e4398f2d46e12e2e205495b116be9 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/6] xfrm: fix policy lookup for ipv6 gre packets | expand |
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 2308210793a0..55e574511af5 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -1162,7 +1162,7 @@ static inline int xfrm_route_forward(struct sk_buff *skb, unsigned short family) { struct net *net = dev_net(skb->dev); - if (xfrm_default_allow(net, XFRM_POLICY_FWD)) + if (xfrm_default_allow(net, XFRM_POLICY_OUT)) return !net->xfrm.policy_count[XFRM_POLICY_OUT] || (skb_dst(skb)->flags & DST_NOXFRM) || __xfrm_route_forward(skb, family);