Lines Matching refs:ua
2846 struct xfrm_user_acquire *ua = nlmsg_data(nlh); in xfrm_add_acquire() local
2855 err = verify_newpolicy_info(&ua->policy, extack); in xfrm_add_acquire()
2863 xp = xfrm_policy_construct(net, &ua->policy, attrs, &err, extack); in xfrm_add_acquire()
2867 memcpy(&x->id, &ua->id, sizeof(ua->id)); in xfrm_add_acquire()
2868 memcpy(&x->props.saddr, &ua->saddr, sizeof(ua->saddr)); in xfrm_add_acquire()
2869 memcpy(&x->sel, &ua->sel, sizeof(ua->sel)); in xfrm_add_acquire()
2880 t->aalgos = ua->aalgos; in xfrm_add_acquire()
2881 t->ealgos = ua->ealgos; in xfrm_add_acquire()
2882 t->calgos = ua->calgos; in xfrm_add_acquire()
3597 struct xfrm_user_acquire *ua; in build_acquire() local
3601 nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_ACQUIRE, sizeof(*ua), 0); in build_acquire()
3605 ua = nlmsg_data(nlh); in build_acquire()
3606 memcpy(&ua->id, &x->id, sizeof(ua->id)); in build_acquire()
3607 memcpy(&ua->saddr, &x->props.saddr, sizeof(ua->saddr)); in build_acquire()
3608 memcpy(&ua->sel, &x->sel, sizeof(ua->sel)); in build_acquire()
3609 copy_to_user_policy(xp, &ua->policy, XFRM_POLICY_OUT); in build_acquire()
3610 ua->aalgos = xt->aalgos; in build_acquire()
3611 ua->ealgos = xt->ealgos; in build_acquire()
3612 ua->calgos = xt->calgos; in build_acquire()
3613 ua->seq = x->km.seq = seq; in build_acquire()