void km_state_expired(struct xfrm_state *x, int hard, u32 pid) 函数参数:参数x为SA结构,hard为强行通知变量,pid为进程的PID。 函数功能:调用xfrm_mgr中的notity函数进行SA到期的回调通知,并唤醒等待队列。 返回值:无。
int(*init_state)(struct xfrm_state *x);//初始化SA void(*destructor)(struct xfrm_state *);//析构SA int(*input)(struct xfrm_state *, struct sk_buff *skb);//数据包进入处理 int(*output)(struct xfrm_state *, struct sk_buff *pskb);//数据包发送处理 int(*reject)(struct xfrm_state *...
staticstruct xfrm_state *ipcomp6_tunnel_create(struct xfrm_state *x){structnet*net=xs_net(x);structxfrm_state*t=NULL;t = xfrm_state_alloc(net);if(!t)gotoout; t->id.proto = IPPROTO_IPV6; t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t*)&x->props.saddr);if(!t->...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
We leak the page that we use to create skb page fragments when destroying the xfrm_state. Fix this by dropping a page reference if a page was assigned to the xfrm_state. Fixes: cac2661 ("esp4: Avoid skb_cow_data whenever possible") Reported-by: JD <jdtxs00@gmail.com> Reported-by:...
BEL(Basic Element)是FPGA内部的基本单元,属于器件对象,也就是器件结构的一部分。换言之,即便是一...
该文件中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) ...
NL_SET_ERR_MSG(extack, "XFRM mode must be XFRM_MODE_ROUTEOPTIMIZATION"); return -EINVAL; }@@ -336,12 +335,11 @@ static int mip6_rthdr_output(struct xfrm_state *x, struct sk_buff *skb) static int mip6_rthdr_init_state(struct xfrm_state *x, struct netlink_ext_ack *...
static int mip6_destopt_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) { if (x->id.spi) { pr_info("%s: spi is not 0: %u\n", __func__, x->id.spi); NL_SET_ERR_MSG(extack, "SPI must be 0"); ...