Lines Matching refs:props

267 static int attach_one_algo(struct xfrm_algo **algpp, u8 *props,  in attach_one_algo()  argument
282 *props = algo->desc.sadb_alg_id; in attach_one_algo()
306 x->props.ealgo = algo->desc.sadb_alg_id; in attach_crypt()
318 static int attach_auth(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth() argument
333 *props = algo->desc.sadb_alg_id; in attach_auth()
348 static int attach_auth_trunc(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth_trunc() argument
364 *props = algo->desc.sadb_alg_id; in attach_auth_trunc()
391 x->props.ealgo = algo->desc.sadb_alg_id; in attach_aead()
470 x->props.mode = p->mode; in copy_from_user_state()
471 x->props.replay_window = min_t(unsigned int, p->replay_window, in copy_from_user_state()
473 x->props.reqid = p->reqid; in copy_from_user_state()
474 x->props.family = p->family; in copy_from_user_state()
475 memcpy(&x->props.saddr, &p->saddr, sizeof(x->props.saddr)); in copy_from_user_state()
476 x->props.flags = p->flags; in copy_from_user_state()
542 x->props.extra_flags = nla_get_u32(attrs[XFRMA_SA_EXTRA_FLAGS]); in xfrm_state_construct()
546 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
549 if (!x->props.aalgo) { in xfrm_state_construct()
550 if ((err = attach_auth(&x->aalg, &x->props.aalgo, in xfrm_state_construct()
556 if ((err = attach_one_algo(&x->calg, &x->props.calgo, in xfrm_state_construct()
735 memcpy(&p->saddr, &x->props.saddr, sizeof(p->saddr)); in copy_to_user_state()
736 p->mode = x->props.mode; in copy_to_user_state()
737 p->replay_window = x->props.replay_window; in copy_to_user_state()
738 p->reqid = x->props.reqid; in copy_to_user_state()
739 p->family = x->props.family; in copy_to_user_state()
740 p->flags = x->props.flags; in copy_to_user_state()
799 if (x->props.extra_flags) { in copy_to_user_state_extra()
801 x->props.extra_flags); in copy_to_user_state_extra()
1835 id->sa_id.family = x->props.family; in build_aevent()
1837 memcpy(&id->saddr, &x->props.saddr, sizeof(x->props.saddr)); in build_aevent()
1838 id->reqid = x->props.reqid; in build_aevent()
2126 memcpy(&x->props.saddr, &ua->saddr, sizeof(ua->saddr)); in xfrm_add_acquire()
2135 x->props.mode = t->mode; in xfrm_add_acquire()
2136 x->props.reqid = t->reqid; in xfrm_add_acquire()
2137 x->props.family = ut->family; in xfrm_add_acquire()
2616 if (x->props.extra_flags) in xfrm_sa_len()
2617 l += nla_total_size(sizeof(x->props.extra_flags)); in xfrm_sa_len()
2659 id->family = x->props.family; in xfrm_notify_sa()
2730 memcpy(&ua->saddr, &x->props.saddr, sizeof(ua->saddr)); in build_acquire()
3064 um->id.family = x->props.family; in build_mapping()
3067 memcpy(&um->old_saddr, &x->props.saddr, sizeof(um->old_saddr)); in build_mapping()
3070 um->reqid = x->props.reqid; in build_mapping()