Lines Matching refs:um

2671 	struct xfrm_user_migrate *um;  in copy_from_user_migrate()  local
2684 um = nla_data(rt); in copy_from_user_migrate()
2685 num_migrate = nla_len(rt) / sizeof(*um); in copy_from_user_migrate()
2690 for (i = 0; i < num_migrate; i++, um++, ma++) { in copy_from_user_migrate()
2691 memcpy(&ma->old_daddr, &um->old_daddr, sizeof(ma->old_daddr)); in copy_from_user_migrate()
2692 memcpy(&ma->old_saddr, &um->old_saddr, sizeof(ma->old_saddr)); in copy_from_user_migrate()
2693 memcpy(&ma->new_daddr, &um->new_daddr, sizeof(ma->new_daddr)); in copy_from_user_migrate()
2694 memcpy(&ma->new_saddr, &um->new_saddr, sizeof(ma->new_saddr)); in copy_from_user_migrate()
2696 ma->proto = um->proto; in copy_from_user_migrate()
2697 ma->mode = um->mode; in copy_from_user_migrate()
2698 ma->reqid = um->reqid; in copy_from_user_migrate()
2700 ma->old_family = um->old_family; in copy_from_user_migrate()
2701 ma->new_family = um->new_family; in copy_from_user_migrate()
2764 struct xfrm_user_migrate um; in copy_to_user_migrate() local
2766 memset(&um, 0, sizeof(um)); in copy_to_user_migrate()
2767 um.proto = m->proto; in copy_to_user_migrate()
2768 um.mode = m->mode; in copy_to_user_migrate()
2769 um.reqid = m->reqid; in copy_to_user_migrate()
2770 um.old_family = m->old_family; in copy_to_user_migrate()
2771 memcpy(&um.old_daddr, &m->old_daddr, sizeof(um.old_daddr)); in copy_to_user_migrate()
2772 memcpy(&um.old_saddr, &m->old_saddr, sizeof(um.old_saddr)); in copy_to_user_migrate()
2773 um.new_family = m->new_family; in copy_to_user_migrate()
2774 memcpy(&um.new_daddr, &m->new_daddr, sizeof(um.new_daddr)); in copy_to_user_migrate()
2775 memcpy(&um.new_saddr, &m->new_saddr, sizeof(um.new_saddr)); in copy_to_user_migrate()
2777 return nla_put(skb, XFRMA_MIGRATE, sizeof(um), &um); in copy_to_user_migrate()
3660 struct xfrm_user_mapping *um; in build_mapping() local
3663 nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_MAPPING, sizeof(*um), 0); in build_mapping()
3667 um = nlmsg_data(nlh); in build_mapping()
3669 memcpy(&um->id.daddr, &x->id.daddr, sizeof(um->id.daddr)); in build_mapping()
3670 um->id.spi = x->id.spi; in build_mapping()
3671 um->id.family = x->props.family; in build_mapping()
3672 um->id.proto = x->id.proto; in build_mapping()
3673 memcpy(&um->new_saddr, new_saddr, sizeof(um->new_saddr)); in build_mapping()
3674 memcpy(&um->old_saddr, &x->props.saddr, sizeof(um->old_saddr)); in build_mapping()
3675 um->new_sport = new_sport; in build_mapping()
3676 um->old_sport = x->encap->encap_sport; in build_mapping()
3677 um->reqid = x->props.reqid; in build_mapping()