函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\xfrm.h Create Date:2022-07-27 20:43:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__xfrm_policy_check2

函数原型:static inline int __xfrm_policy_check2(struct sock *sk, int dir, struct sk_buff *skb, unsigned int family, int reverse)

返回类型:int

参数:

类型参数名称
struct sock *sk
intdir
struct sk_buff *skb
unsigned intfamily
intreverse
1093  net等于Net namespace inlines
1094  ndir等于dir按位或如果reverseXFRM_POLICY_MASK加1否则0
1096  如果sksk_policy[XFRM_POLICY_IN]则返回:__xfrm_policy_check(sk, ndir, skb, family)
1099  返回:非policy_count[dir]且非secpath_exists(skb)或flags按位与DST_NOPOLICY__xfrm_policy_check(sk, ndir, skb, family)
调用者
名称描述
xfrm_policy_check
xfrm4_policy_check_reverse
xfrm6_policy_check_reverse