Lines Matching refs:props
289 static int attach_one_algo(struct xfrm_algo **algpp, u8 *props, in attach_one_algo() argument
304 *props = algo->desc.sadb_alg_id; in attach_one_algo()
328 x->props.ealgo = algo->desc.sadb_alg_id; in attach_crypt()
340 static int attach_auth(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth() argument
355 *props = algo->desc.sadb_alg_id; in attach_auth()
370 static int attach_auth_trunc(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth_trunc() argument
386 *props = algo->desc.sadb_alg_id; in attach_auth_trunc()
413 x->props.ealgo = algo->desc.sadb_alg_id; in attach_aead()
499 x->props.mode = p->mode; in copy_from_user_state()
500 x->props.replay_window = min_t(unsigned int, p->replay_window, in copy_from_user_state()
502 x->props.reqid = p->reqid; in copy_from_user_state()
503 x->props.family = p->family; in copy_from_user_state()
504 memcpy(&x->props.saddr, &p->saddr, sizeof(x->props.saddr)); in copy_from_user_state()
505 x->props.flags = p->flags; in copy_from_user_state()
598 x->props.extra_flags = nla_get_u32(attrs[XFRMA_SA_EXTRA_FLAGS]); in xfrm_state_construct()
602 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
605 if (!x->props.aalgo) { in xfrm_state_construct()
606 if ((err = attach_auth(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
612 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct()
622 xfrm_smark_init(attrs, &x->props.smark); in xfrm_state_construct()
797 memcpy(&p->saddr, &x->props.saddr, sizeof(p->saddr)); in copy_to_user_state()
798 p->mode = x->props.mode; in copy_to_user_state()
799 p->replay_window = x->props.replay_window; in copy_to_user_state()
800 p->reqid = x->props.reqid; in copy_to_user_state()
801 p->family = x->props.family; in copy_to_user_state()
802 p->flags = x->props.flags; in copy_to_user_state()
890 if (x->props.extra_flags) { in copy_to_user_state_extra()
892 x->props.extra_flags); in copy_to_user_state_extra()
945 ret = xfrm_smark_put(skb, &x->props.smark); in copy_to_user_state_extra()
2048 id->sa_id.family = x->props.family; in build_aevent()
2050 memcpy(&id->saddr, &x->props.saddr, sizeof(x->props.saddr)); in build_aevent()
2051 id->reqid = x->props.reqid; in build_aevent()
2351 memcpy(&x->props.saddr, &ua->saddr, sizeof(ua->saddr)); in xfrm_add_acquire()
2360 x->props.mode = t->mode; in xfrm_add_acquire()
2361 x->props.reqid = t->reqid; in xfrm_add_acquire()
2362 x->props.family = ut->family; in xfrm_add_acquire()
2914 if (x->props.extra_flags) in xfrm_sa_len()
2915 l += nla_total_size(sizeof(x->props.extra_flags)); in xfrm_sa_len()
2918 if (x->props.smark.v | x->props.smark.m) { in xfrm_sa_len()
2919 l += nla_total_size(sizeof(x->props.smark.v)); in xfrm_sa_len()
2920 l += nla_total_size(sizeof(x->props.smark.m)); in xfrm_sa_len()
2967 id->family = x->props.family; in xfrm_notify_sa()
3038 memcpy(&ua->saddr, &x->props.saddr, sizeof(ua->saddr)); in build_acquire()
3382 um->id.family = x->props.family; in build_mapping()
3385 memcpy(&um->old_saddr, &x->props.saddr, sizeof(um->old_saddr)); in build_mapping()
3388 um->reqid = x->props.reqid; in build_mapping()