Lines Matching refs:xfrm

740 	x->replay_maxdiff = net->xfrm.sysctl_aevent_rseqth;  in xfrm_state_construct()
742 x->replay_maxage = (net->xfrm.sysctl_aevent_etime*HZ)/XFRM_AE_ETH_M; in xfrm_state_construct()
1261 struct sock *nlsk = rcu_dereference(net->xfrm.nlsk); in xfrm_nlmsg_multicast()
1321 lseq = read_seqbegin(&net->xfrm.policy_hthresh.lock); in build_spdinfo()
1323 spt4.lbits = net->xfrm.policy_hthresh.lbits4; in build_spdinfo()
1324 spt4.rbits = net->xfrm.policy_hthresh.rbits4; in build_spdinfo()
1325 spt6.lbits = net->xfrm.policy_hthresh.lbits6; in build_spdinfo()
1326 spt6.rbits = net->xfrm.policy_hthresh.rbits6; in build_spdinfo()
1327 } while (read_seqretry(&net->xfrm.policy_hthresh.lock, lseq)); in build_spdinfo()
1374 write_seqlock(&net->xfrm.policy_hthresh.lock); in xfrm_set_spdinfo()
1376 net->xfrm.policy_hthresh.lbits4 = thresh4->lbits; in xfrm_set_spdinfo()
1377 net->xfrm.policy_hthresh.rbits4 = thresh4->rbits; in xfrm_set_spdinfo()
1380 net->xfrm.policy_hthresh.lbits6 = thresh6->lbits; in xfrm_set_spdinfo()
1381 net->xfrm.policy_hthresh.rbits6 = thresh6->rbits; in xfrm_set_spdinfo()
1383 write_sequnlock(&net->xfrm.policy_hthresh.lock); in xfrm_set_spdinfo()
1409 return nlmsg_unicast(net->xfrm.nlsk, r_skb, sportid); in xfrm_get_spdinfo()
1469 return nlmsg_unicast(net->xfrm.nlsk, r_skb, sportid); in xfrm_get_sadinfo()
1489 err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, NETLINK_CB(skb).portid); in xfrm_get_sa()
1565 err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, NETLINK_CB(skb).portid); in xfrm_alloc_userspi()
2121 up->in = net->xfrm.policy_default[XFRM_POLICY_IN]; in xfrm_notify_userpolicy()
2122 up->fwd = net->xfrm.policy_default[XFRM_POLICY_FWD]; in xfrm_notify_userpolicy()
2123 up->out = net->xfrm.policy_default[XFRM_POLICY_OUT]; in xfrm_notify_userpolicy()
2147 net->xfrm.policy_default[XFRM_POLICY_IN] = up->in; in xfrm_set_default()
2150 net->xfrm.policy_default[XFRM_POLICY_FWD] = up->fwd; in xfrm_set_default()
2153 net->xfrm.policy_default[XFRM_POLICY_OUT] = up->out; in xfrm_set_default()
2183 r_up->in = net->xfrm.policy_default[XFRM_POLICY_IN]; in xfrm_get_default()
2184 r_up->fwd = net->xfrm.policy_default[XFRM_POLICY_FWD]; in xfrm_get_default()
2185 r_up->out = net->xfrm.policy_default[XFRM_POLICY_OUT]; in xfrm_get_default()
2188 return nlmsg_unicast(net->xfrm.nlsk, r_skb, portid); in xfrm_get_default()
2254 err = nlmsg_unicast(net->xfrm.nlsk, resp_skb, in xfrm_get_policy()
2414 err = nlmsg_unicast(net->xfrm.nlsk, r_skb, NETLINK_CB(skb).portid); in xfrm_get_ae()
3039 err = netlink_dump_start(net->xfrm.nlsk, skb, nlh, &c); in xfrm_user_rcv_msg()
3075 mutex_lock(&net->xfrm.xfrm_cfg_mutex); in xfrm_netlink_rcv()
3077 mutex_unlock(&net->xfrm.xfrm_cfg_mutex); in xfrm_netlink_rcv()
3733 net->xfrm.nlsk_stash = nlsk; /* Don't set to NULL */ in xfrm_user_net_init()
3734 rcu_assign_pointer(net->xfrm.nlsk, nlsk); in xfrm_user_net_init()
3740 RCU_INIT_POINTER(net->xfrm.nlsk, NULL); in xfrm_user_net_pre_exit()
3748 netlink_kernel_release(net->xfrm.nlsk_stash); in xfrm_user_net_exit()