Lines Matching refs:xfrm

2 /* xfrm_user.c: User interface to configure xfrm engine.
29 #include <net/xfrm.h>
852 x->replay_maxdiff = net->xfrm.sysctl_aevent_rseqth;
854 x->replay_maxage = (net->xfrm.sysctl_aevent_etime*HZ)/XFRM_AE_ETH_M;
1428 struct sock *nlsk = rcu_dereference(net->xfrm.nlsk);
1488 lseq = read_seqbegin(&net->xfrm.policy_hthresh.lock);
1490 spt4.lbits = net->xfrm.policy_hthresh.lbits4;
1491 spt4.rbits = net->xfrm.policy_hthresh.rbits4;
1492 spt6.lbits = net->xfrm.policy_hthresh.lbits6;
1493 spt6.rbits = net->xfrm.policy_hthresh.rbits6;
1494 } while (read_seqretry(&net->xfrm.policy_hthresh.lock, lseq));
1549 write_seqlock(&net->xfrm.policy_hthresh.lock);
1551 net->xfrm.policy_hthresh.lbits4 = thresh4->lbits;
1552 net->xfrm.policy_hthresh.rbits4 = thresh4->rbits;
1555 net->xfrm.policy_hthresh.lbits6 = thresh6->lbits;
1556 net->xfrm.policy_hthresh.rbits6 = thresh6->rbits;
1558 write_sequnlock(&net->xfrm.policy_hthresh.lock);
1584 return nlmsg_unicast(net->xfrm.nlsk, r_skb, sportid);
1644 return nlmsg_unicast(net->xfrm.nlsk, r_skb, sportid);
1664 err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, NETLINK_CB(skb).portid);
1745 err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, NETLINK_CB(skb).portid);
2321 up->in = net->xfrm.policy_default[XFRM_POLICY_IN];
2322 up->fwd = net->xfrm.policy_default[XFRM_POLICY_FWD];
2323 up->out = net->xfrm.policy_default[XFRM_POLICY_OUT];
2347 net->xfrm.policy_default[XFRM_POLICY_IN] = up->in;
2350 net->xfrm.policy_default[XFRM_POLICY_FWD] = up->fwd;
2353 net->xfrm.policy_default[XFRM_POLICY_OUT] = up->out;
2383 r_up->in = net->xfrm.policy_default[XFRM_POLICY_IN];
2384 r_up->fwd = net->xfrm.policy_default[XFRM_POLICY_FWD];
2385 r_up->out = net->xfrm.policy_default[XFRM_POLICY_OUT];
2388 return nlmsg_unicast(net->xfrm.nlsk, r_skb, portid);
2454 err = nlmsg_unicast(net->xfrm.nlsk, resp_skb,
2622 err = nlmsg_unicast(net->xfrm.nlsk, r_skb, NETLINK_CB(skb).portid);
3283 err = netlink_dump_start(net->xfrm.nlsk, skb, nlh, &c);
3325 mutex_lock(&net->xfrm.xfrm_cfg_mutex);
3327 mutex_unlock(&net->xfrm.xfrm_cfg_mutex);
3999 net->xfrm.nlsk_stash = nlsk; /* Don't set to NULL */
4000 rcu_assign_pointer(net->xfrm.nlsk, nlsk);
4006 RCU_INIT_POINTER(net->xfrm.nlsk, NULL);
4014 netlink_kernel_release(net->xfrm.nlsk_stash);