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()
152 struct nlattr **attrs) in verify_newsa_info()
269 struct nlattr *rta) in attach_one_algo()
293 static int attach_crypt(struct xfrm_state *x, struct nlattr *rta) in attach_crypt()
319 struct nlattr *rta) in attach_auth()
349 struct nlattr *rta) in attach_auth_trunc()
378 static int attach_aead(struct xfrm_state *x, struct nlattr *rta) in attach_aead()
404 struct nlattr *rp) in xfrm_replay_verify_len()
423 struct nlattr *rta) in xfrm_alloc_replay_state_esn()
487 static void xfrm_update_ae_params(struct xfrm_state *x, struct nlattr **attrs, in xfrm_update_ae_params()
490 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_update_ae_params()
491 struct nlattr *re = update_esn ? attrs[XFRMA_REPLAY_ESN_VAL] : NULL; in xfrm_update_ae_params()
492 struct nlattr *lt = attrs[XFRMA_LTIME_VAL]; in xfrm_update_ae_params()
493 struct nlattr *et = attrs[XFRMA_ETIMER_THRESH]; in xfrm_update_ae_params()
494 struct nlattr *rt = attrs[XFRMA_REPLAY_THRESH]; in xfrm_update_ae_params()
530 struct nlattr **attrs, in xfrm_state_construct()
614 struct nlattr **attrs) in xfrm_add_sa()
656 struct nlattr **attrs, in xfrm_user_state_lookup()
689 struct nlattr **attrs) in xfrm_del_sa()
754 struct nlattr *attr; in copy_sec_ctx()
775 struct nlattr *nla; in copy_to_user_auth()
918 struct nlattr *attrs[XFRMA_MAX+1]; in xfrm_dump_sa()
1050 struct nlattr **attrs) in xfrm_set_spdinfo()
1058 struct nlattr *rta = attrs[XFRMA_SPD_IPV4_HTHRESH]; in xfrm_set_spdinfo()
1067 struct nlattr *rta = attrs[XFRMA_SPD_IPV6_HTHRESH]; in xfrm_set_spdinfo()
1095 struct nlattr **attrs) in xfrm_get_spdinfo()
1153 struct nlattr **attrs) in xfrm_get_sadinfo()
1172 struct nlattr **attrs) in xfrm_get_sa()
1196 struct nlattr **attrs) in xfrm_alloc_userspi()
1333 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx()
1335 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in copy_from_user_sec_ctx()
1403 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_tmpl()
1405 struct nlattr *rt = attrs[XFRMA_TMPL]; in copy_from_user_tmpl()
1423 static int copy_from_user_policy_type(u8 *tp, struct nlattr **attrs) in copy_from_user_policy_type()
1425 struct nlattr *rt = attrs[XFRMA_POLICY_TYPE]; in copy_from_user_policy_type()
1470 …policy_construct(struct net *net, struct xfrm_userpolicy_info *p, struct nlattr **attrs, int *errp) in xfrm_policy_construct()
1502 struct nlattr **attrs) in xfrm_add_policy()
1706 struct nlattr **attrs) in xfrm_get_policy()
1732 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in xfrm_get_policy()
1785 struct nlattr **attrs) in xfrm_flush_sa()
1879 struct nlattr **attrs) in xfrm_get_ae()
1922 struct nlattr **attrs) in xfrm_new_ae()
1931 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_new_ae()
1932 struct nlattr *re = attrs[XFRMA_REPLAY_ESN_VAL]; in xfrm_new_ae()
1933 struct nlattr *lt = attrs[XFRMA_LTIME_VAL]; in xfrm_new_ae()
1934 struct nlattr *et = attrs[XFRMA_ETIMER_THRESH]; in xfrm_new_ae()
1935 struct nlattr *rt = attrs[XFRMA_REPLAY_THRESH]; in xfrm_new_ae()
1973 struct nlattr **attrs) in xfrm_flush_policy()
2001 struct nlattr **attrs) in xfrm_add_pol_expire()
2023 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in xfrm_add_pol_expire()
2064 struct nlattr **attrs) in xfrm_add_sa_expire()
2098 struct nlattr **attrs) in xfrm_add_acquire()
2104 struct nlattr *rt = attrs[XFRMA_TMPL]; in xfrm_add_acquire()
2161 struct nlattr **attrs, int *num) in copy_from_user_migrate()
2163 struct nlattr *rt = attrs[XFRMA_MIGRATE]; in copy_from_user_migrate()
2202 struct nlattr **attrs) in xfrm_do_migrate()
2234 struct nlattr **attrs) in xfrm_do_migrate()
2410 int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **);
2447 struct nlattr *attrs[XFRMA_MAX+1]; in xfrm_user_rcv_msg()
2654 struct nlattr *attr; in xfrm_notify_sa()
2915 struct nlattr *attr; in xfrm_notify_policy()