首页 存档 技术 查看内容

Linux网络子系统安全性模块详细分析之文件xfrm_state.c

2018-3-30 13:00 |来自: 互联网 337 0

摘要: 2.4.4.6 核心代码注释 该文件中xfrm_state_find( )函数涉及的原理较多,此处对其进行简要的注释。 struct xfrm_state * xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct ...

2.4.4.6 核心代码注释


该文件中xfrm_state_find( )函数涉及的原理较多,此处对其进行简要的注释。

struct xfrm_state * xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family)

{

static xfrm_address_t saddr_wildcard = { };

struct net *net = xp_net(pol);

unsigned int h, h_wildcard;

struct hlist_node *entry;

struct xfrm_state *x, *x0, *to_put;

int acquire_in_progress = 0;

int error = 0;

struct xfrm_state *best = NULL;

u32 mark = pol-

声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

相关分类

返回顶部