Lines Matching refs:props

266 static int attach_one_algo(struct xfrm_algo **algpp, u8 *props,  in attach_one_algo()  argument
281 *props = algo->desc.sadb_alg_id; in attach_one_algo()
292 static int attach_auth(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth() argument
307 *props = algo->desc.sadb_alg_id; in attach_auth()
322 static int attach_auth_trunc(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth_trunc() argument
338 *props = algo->desc.sadb_alg_id; in attach_auth_trunc()
352 static int attach_aead(struct xfrm_algo_aead **algpp, u8 *props, in attach_aead() argument
366 *props = algo->desc.sadb_alg_id; in attach_aead()
444 x->props.mode = p->mode; in copy_from_user_state()
445 x->props.replay_window = min_t(unsigned int, p->replay_window, in copy_from_user_state()
447 x->props.reqid = p->reqid; in copy_from_user_state()
448 x->props.family = p->family; in copy_from_user_state()
449 memcpy(&x->props.saddr, &p->saddr, sizeof(x->props.saddr)); in copy_from_user_state()
450 x->props.flags = p->flags; in copy_from_user_state()
516 x->props.extra_flags = nla_get_u32(attrs[XFRMA_SA_EXTRA_FLAGS]); in xfrm_state_construct()
518 if ((err = attach_aead(&x->aead, &x->props.ealgo, in xfrm_state_construct()
521 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
524 if (!x->props.aalgo) { in xfrm_state_construct()
525 if ((err = attach_auth(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
529 if ((err = attach_one_algo(&x->ealg, &x->props.ealgo, in xfrm_state_construct()
533 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct()
710 memcpy(&p->saddr, &x->props.saddr, sizeof(p->saddr)); in copy_to_user_state()
711 p->mode = x->props.mode; in copy_to_user_state()
712 p->replay_window = x->props.replay_window; in copy_to_user_state()
713 p->reqid = x->props.reqid; in copy_to_user_state()
714 p->family = x->props.family; in copy_to_user_state()
715 p->flags = x->props.flags; in copy_to_user_state()
774 if (x->props.extra_flags) { in copy_to_user_state_extra()
776 x->props.extra_flags); in copy_to_user_state_extra()
1812 id->sa_id.family = x->props.family; in build_aevent()
1814 memcpy(&id->saddr, &x->props.saddr, sizeof(x->props.saddr)); in build_aevent()
1815 id->reqid = x->props.reqid; in build_aevent()
2101 memcpy(&x->props.saddr, &ua->saddr, sizeof(ua->saddr)); in xfrm_add_acquire()
2110 x->props.mode = t->mode; in xfrm_add_acquire()
2111 x->props.reqid = t->reqid; in xfrm_add_acquire()
2112 x->props.family = ut->family; in xfrm_add_acquire()
2591 if (x->props.extra_flags) in xfrm_sa_len()
2592 l += nla_total_size(sizeof(x->props.extra_flags)); in xfrm_sa_len()
2634 id->family = x->props.family; in xfrm_notify_sa()
2705 memcpy(&ua->saddr, &x->props.saddr, sizeof(ua->saddr)); in build_acquire()
3039 um->id.family = x->props.family; in build_mapping()
3042 memcpy(&um->old_saddr, &x->props.saddr, sizeof(um->old_saddr)); in build_mapping()
3045 um->reqid = x->props.reqid; in build_mapping()