Lines Matching refs:nlattr

36 static int verify_one_alg(struct nlattr **attrs, enum xfrm_attr_type_t type)  in verify_one_alg()
38 struct nlattr *rt = attrs[type]; in verify_one_alg()
62 static int verify_auth_trunc(struct nlattr **attrs) in verify_auth_trunc()
64 struct nlattr *rt = attrs[XFRMA_ALG_AUTH_TRUNC]; in verify_auth_trunc()
78 static int verify_aead(struct nlattr **attrs) in verify_aead()
80 struct nlattr *rt = attrs[XFRMA_ALG_AEAD]; in verify_aead()
94 static void verify_one_addr(struct nlattr **attrs, enum xfrm_attr_type_t type, in verify_one_addr()
97 struct nlattr *rt = attrs[type]; in verify_one_addr()
103 static inline int verify_sec_ctx_len(struct nlattr **attrs) in verify_sec_ctx_len()
105 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in verify_sec_ctx_len()
119 struct nlattr **attrs) in verify_replay()
121 struct nlattr *rt = attrs[XFRMA_REPLAY_ESN_VAL]; in verify_replay()
147 struct nlattr **attrs) in verify_newsa_info()
270 struct nlattr *rta) in attach_one_algo()
294 static int attach_crypt(struct xfrm_state *x, struct nlattr *rta) in attach_crypt()
320 struct nlattr *rta) in attach_auth()
350 struct nlattr *rta) in attach_auth_trunc()
379 static int attach_aead(struct xfrm_state *x, struct nlattr *rta) in attach_aead()
405 struct nlattr *rp) in xfrm_replay_verify_len()
431 struct nlattr *rta) in xfrm_alloc_replay_state_esn()
495 static void xfrm_update_ae_params(struct xfrm_state *x, struct nlattr **attrs, in xfrm_update_ae_params()
498 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_update_ae_params()
499 struct nlattr *re = update_esn ? attrs[XFRMA_REPLAY_ESN_VAL] : NULL; in xfrm_update_ae_params()
500 struct nlattr *lt = attrs[XFRMA_LTIME_VAL]; in xfrm_update_ae_params()
501 struct nlattr *et = attrs[XFRMA_ETIMER_THRESH]; in xfrm_update_ae_params()
502 struct nlattr *rt = attrs[XFRMA_REPLAY_THRESH]; in xfrm_update_ae_params()
536 static void xfrm_smark_init(struct nlattr **attrs, struct xfrm_mark *m) in xfrm_smark_init()
551 struct nlattr **attrs, in xfrm_state_construct()
651 struct nlattr **attrs) in xfrm_add_sa()
697 struct nlattr **attrs, in xfrm_user_state_lookup()
730 struct nlattr **attrs) in xfrm_del_sa()
795 struct nlattr *attr; in copy_sec_ctx()
816 struct nlattr *attr; in copy_user_offload()
833 struct nlattr *nla; in copy_to_user_auth()
1004 struct nlattr *attrs[XFRMA_MAX+1]; in xfrm_dump_sa()
1137 struct nlattr **attrs) in xfrm_set_spdinfo()
1145 struct nlattr *rta = attrs[XFRMA_SPD_IPV4_HTHRESH]; in xfrm_set_spdinfo()
1154 struct nlattr *rta = attrs[XFRMA_SPD_IPV6_HTHRESH]; in xfrm_set_spdinfo()
1182 struct nlattr **attrs) in xfrm_get_spdinfo()
1241 struct nlattr **attrs) in xfrm_get_sadinfo()
1261 struct nlattr **attrs) in xfrm_get_sa()
1285 struct nlattr **attrs) in xfrm_alloc_userspi()
1433 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx()
1435 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in copy_from_user_sec_ctx()
1530 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_tmpl()
1532 struct nlattr *rt = attrs[XFRMA_TMPL]; in copy_from_user_tmpl()
1550 static int copy_from_user_policy_type(u8 *tp, struct nlattr **attrs) in copy_from_user_policy_type()
1552 struct nlattr *rt = attrs[XFRMA_POLICY_TYPE]; in copy_from_user_policy_type()
1597 …policy_construct(struct net *net, struct xfrm_userpolicy_info *p, struct nlattr **attrs, int *errp) in xfrm_policy_construct()
1632 struct nlattr **attrs) in xfrm_add_policy()
1842 struct nlattr **attrs) in xfrm_get_policy()
1872 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in xfrm_get_policy()
1923 struct nlattr **attrs) in xfrm_flush_sa()
2023 struct nlattr **attrs) in xfrm_get_ae()
2067 struct nlattr **attrs) in xfrm_new_ae()
2076 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_new_ae()
2077 struct nlattr *re = attrs[XFRMA_REPLAY_ESN_VAL]; in xfrm_new_ae()
2078 struct nlattr *lt = attrs[XFRMA_LTIME_VAL]; in xfrm_new_ae()
2079 struct nlattr *et = attrs[XFRMA_ETIMER_THRESH]; in xfrm_new_ae()
2080 struct nlattr *rt = attrs[XFRMA_REPLAY_THRESH]; in xfrm_new_ae()
2118 struct nlattr **attrs) in xfrm_flush_policy()
2146 struct nlattr **attrs) in xfrm_add_pol_expire()
2172 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in xfrm_add_pol_expire()
2210 struct nlattr **attrs) in xfrm_add_sa_expire()
2244 struct nlattr **attrs) in xfrm_add_acquire()
2250 struct nlattr *rt = attrs[XFRMA_TMPL]; in xfrm_add_acquire()
2305 struct nlattr **attrs, int *num) in copy_from_user_migrate()
2307 struct nlattr *rt = attrs[XFRMA_MIGRATE]; in copy_from_user_migrate()
2346 struct nlattr **attrs) in xfrm_do_migrate()
2388 struct nlattr **attrs) in xfrm_do_migrate()
2580 int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **);
2620 struct nlattr *attrs[XFRMA_MAX+1]; in xfrm_user_rcv_msg()
2844 struct nlattr *attr; in xfrm_notify_sa()
3113 struct nlattr *attr; in xfrm_notify_policy()