Lines Matching refs:props
93 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
94 x->props.reqid, x->props.family, in xfrm_hash_transfer()
98 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
99 x->props.family, in xfrm_hash_transfer()
105 x->id.proto, x->props.family, in xfrm_hash_transfer()
911 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate()
912 if (x->props.saddr.a4 == 0) in xfrm_init_tempstate()
913 x->props.saddr.a4 = saddr->a4; in xfrm_init_tempstate()
918 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
919 if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) in xfrm_init_tempstate()
920 memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
924 x->props.mode = tmpl->mode; in xfrm_init_tempstate()
925 x->props.reqid = tmpl->reqid; in xfrm_init_tempstate()
926 x->props.family = tmpl->encap_family; in xfrm_init_tempstate()
938 if (x->props.family != family || in __xfrm_state_lookup()
963 if (x->props.family != family || in __xfrm_state_lookup_byaddr()
966 !xfrm_addr_equal(&x->props.saddr, saddr, family)) in __xfrm_state_lookup_byaddr()
991 &x->props.saddr, in __xfrm_state_locate()
1070 if (x->props.family == encap_family && in xfrm_state_find()
1071 x->props.reqid == tmpl->reqid && in xfrm_state_find()
1074 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_state_find()
1076 tmpl->mode == x->props.mode && in xfrm_state_find()
1087 if (x->props.family == encap_family && in xfrm_state_find()
1088 x->props.reqid == tmpl->reqid && in xfrm_state_find()
1091 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_state_find()
1093 tmpl->mode == x->props.mode && in xfrm_state_find()
1200 if (x->props.family == family && in xfrm_stateonly_find()
1201 x->props.reqid == reqid && in xfrm_stateonly_find()
1204 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_stateonly_find()
1206 mode == x->props.mode && in xfrm_stateonly_find()
1232 if (x->props.family != family || in xfrm_state_lookup_byspi()
1252 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr, in __xfrm_state_insert()
1253 x->props.reqid, x->props.family); in __xfrm_state_insert()
1256 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); in __xfrm_state_insert()
1261 x->props.family); in __xfrm_state_insert()
1279 unsigned short family = xnew->props.family; in __xfrm_state_bump_genids()
1280 u32 reqid = xnew->props.reqid; in __xfrm_state_bump_genids()
1286 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); in __xfrm_state_bump_genids()
1288 if (x->props.family == family && in __xfrm_state_bump_genids()
1289 x->props.reqid == reqid && in __xfrm_state_bump_genids()
1293 xfrm_addr_equal(&x->props.saddr, &xnew->props.saddr, family)) in __xfrm_state_bump_genids()
1323 if (x->props.reqid != reqid || in __find_acq_core()
1324 x->props.mode != mode || in __find_acq_core()
1325 x->props.family != family || in __find_acq_core()
1331 !xfrm_addr_equal(&x->props.saddr, saddr, family)) in __find_acq_core()
1349 x->props.saddr.a4 = saddr->a4; in __find_acq_core()
1358 x->props.saddr.in6 = saddr->in6; in __find_acq_core()
1365 x->props.family = family; in __find_acq_core()
1366 x->props.mode = mode; in __find_acq_core()
1367 x->props.reqid = reqid; in __find_acq_core()
1400 family = x->props.family; in xfrm_state_add()
1424 x1 = __find_acq_core(net, &x->mark, family, x->props.mode, in xfrm_state_add()
1425 x->props.reqid, x->if_id, x->id.proto, in xfrm_state_add()
1426 &x->id.daddr, &x->props.saddr, 0); in xfrm_state_add()
1483 x->props.mode = orig->props.mode; in xfrm_state_clone()
1484 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone()
1485 x->props.reqid = orig->props.reqid; in xfrm_state_clone()
1486 x->props.family = orig->props.family; in xfrm_state_clone()
1487 x->props.saddr = orig->props.saddr; in xfrm_state_clone()
1494 x->props.aalgo = orig->props.aalgo; in xfrm_state_clone()
1507 x->props.ealgo = orig->props.ealgo; in xfrm_state_clone()
1514 x->props.calgo = orig->props.calgo; in xfrm_state_clone()
1545 memcpy(&x->props.smark, &orig->props.smark, sizeof(x->props.smark)); in xfrm_state_clone()
1547 x->props.flags = orig->props.flags; in xfrm_state_clone()
1548 x->props.extra_flags = orig->props.extra_flags; in xfrm_state_clone()
1581 if (x->props.mode != m->mode || in xfrm_migrate_state_find()
1584 if (m->reqid && x->props.reqid != m->reqid) in xfrm_migrate_state_find()
1590 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, in xfrm_migrate_state_find()
1600 if (x->props.mode != m->mode || in xfrm_migrate_state_find()
1607 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, in xfrm_migrate_state_find()
1631 xc->props.family = m->new_family; in xfrm_state_migrate()
1637 memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); in xfrm_state_migrate()
1667 x1 = __xfrm_state_locate(x, use_spi, x->props.family); in xfrm_state_update()
1722 if (x->props.smark.m || x->props.smark.v || x->if_id) { in xfrm_state_update()
1725 if (x->props.smark.m || x->props.smark.v) in xfrm_state_update()
1726 x1->props.smark = x->props.smark; in xfrm_state_update()
1852 switch (v->props.mode) { in __xfrm6_state_sort_cmp()
2030 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
2040 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
2051 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
2071 x->props.family != filter->family) in __xfrm_state_filter_match()
2074 return addr_match(&x->props.saddr, &filter->saddr, in __xfrm_state_filter_match()
2540 return mtu - x->props.header_len; in xfrm_state_mtu()
2545 switch (x->props.mode) { in xfrm_state_mtu()
2548 if (x->props.family == AF_INET) in xfrm_state_mtu()
2550 else if (x->props.family == AF_INET6) in xfrm_state_mtu()
2560 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - in xfrm_state_mtu()
2569 int family = x->props.family; in __xfrm_init_state()
2574 x->props.flags |= XFRM_STATE_NOPMTUDISC; in __xfrm_init_state()
2579 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); in __xfrm_init_state()
2592 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); in __xfrm_init_state()
2598 if (x->props.family == AF_INET) in __xfrm_init_state()
2601 inner_mode_iaf = xfrm_get_mode(x->props.mode, iafamily); in __xfrm_init_state()
2618 outer_mode = xfrm_get_mode(x->props.mode, family); in __xfrm_init_state()
2717 switch (x->props.family) { in xfrm_audit_helper_sainfo()
2720 &x->props.saddr.a4, &x->id.daddr.a4); in xfrm_audit_helper_sainfo()
2724 x->props.saddr.a6, x->id.daddr.a6); in xfrm_audit_helper_sainfo()
2792 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_replay_overflow()
2810 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_replay()
2857 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_icvfail()