Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\xfrm.h Create Date:2022-07-28 19:13:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__xfrm_policy_check2

Proto:static inline int __xfrm_policy_check2(struct sock *sk, int dir, struct sk_buff *skb, unsigned int family, int reverse)

Type:int

Parameter:

TypeParameterName
struct sock *sk
intdir
struct sk_buff *skb
unsigned intfamily
intreverse
1093  net = Net namespace inlines
1094  ndir = dir | If reverse Then XFRM_POLICY_MASK + 1 Else 0
1096  If sk && sk_policy[XFRM_POLICY_IN] Then Return __xfrm_policy_check(sk, ndir, skb, family)
1099  Return Not policy_count[dir] && Not secpath_exists(skb) || flags & DST_NOPOLICY || __xfrm_policy_check(sk, ndir, skb, family)