Lines Matching refs:props
94 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
95 x->props.reqid, x->props.family, in xfrm_hash_transfer()
99 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
100 x->props.family, in xfrm_hash_transfer()
106 x->id.proto, x->props.family, in xfrm_hash_transfer()
909 x->props.saddr = tmpl->saddr; in xfrm_init_tempstate()
910 if (x->props.saddr.a4 == 0) in xfrm_init_tempstate()
911 x->props.saddr.a4 = saddr->a4; in xfrm_init_tempstate()
916 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
917 if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) in xfrm_init_tempstate()
918 memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); in xfrm_init_tempstate()
922 x->props.mode = tmpl->mode; in xfrm_init_tempstate()
923 x->props.reqid = tmpl->reqid; in xfrm_init_tempstate()
924 x->props.family = tmpl->encap_family; in xfrm_init_tempstate()
936 if (x->props.family != family || in __xfrm_state_lookup()
961 if (x->props.family != family || in __xfrm_state_lookup_byaddr()
964 !xfrm_addr_equal(&x->props.saddr, saddr, family)) in __xfrm_state_lookup_byaddr()
989 &x->props.saddr, in __xfrm_state_locate()
1063 if (x->props.family == encap_family && in xfrm_state_find()
1064 x->props.reqid == tmpl->reqid && in xfrm_state_find()
1067 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_state_find()
1069 tmpl->mode == x->props.mode && in xfrm_state_find()
1080 if (x->props.family == encap_family && in xfrm_state_find()
1081 x->props.reqid == tmpl->reqid && in xfrm_state_find()
1084 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_state_find()
1086 tmpl->mode == x->props.mode && in xfrm_state_find()
1193 if (x->props.family == family && in xfrm_stateonly_find()
1194 x->props.reqid == reqid && in xfrm_stateonly_find()
1197 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_stateonly_find()
1199 mode == x->props.mode && in xfrm_stateonly_find()
1225 if (x->props.family != family || in xfrm_state_lookup_byspi()
1245 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr, in __xfrm_state_insert()
1246 x->props.reqid, x->props.family); in __xfrm_state_insert()
1249 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); in __xfrm_state_insert()
1254 x->props.family); in __xfrm_state_insert()
1272 unsigned short family = xnew->props.family; in __xfrm_state_bump_genids()
1273 u32 reqid = xnew->props.reqid; in __xfrm_state_bump_genids()
1279 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); in __xfrm_state_bump_genids()
1281 if (x->props.family == family && in __xfrm_state_bump_genids()
1282 x->props.reqid == reqid && in __xfrm_state_bump_genids()
1286 xfrm_addr_equal(&x->props.saddr, &xnew->props.saddr, family)) in __xfrm_state_bump_genids()
1316 if (x->props.reqid != reqid || in __find_acq_core()
1317 x->props.mode != mode || in __find_acq_core()
1318 x->props.family != family || in __find_acq_core()
1324 !xfrm_addr_equal(&x->props.saddr, saddr, family)) in __find_acq_core()
1342 x->props.saddr.a4 = saddr->a4; in __find_acq_core()
1351 x->props.saddr.in6 = saddr->in6; in __find_acq_core()
1358 x->props.family = family; in __find_acq_core()
1359 x->props.mode = mode; in __find_acq_core()
1360 x->props.reqid = reqid; in __find_acq_core()
1393 family = x->props.family; in xfrm_state_add()
1417 x1 = __find_acq_core(net, &x->mark, family, x->props.mode, in xfrm_state_add()
1418 x->props.reqid, x->if_id, x->id.proto, in xfrm_state_add()
1419 &x->id.daddr, &x->props.saddr, 0); in xfrm_state_add()
1452 x->props.mode = orig->props.mode; in xfrm_state_clone()
1453 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone()
1454 x->props.reqid = orig->props.reqid; in xfrm_state_clone()
1455 x->props.family = orig->props.family; in xfrm_state_clone()
1456 x->props.saddr = orig->props.saddr; in xfrm_state_clone()
1463 x->props.aalgo = orig->props.aalgo; in xfrm_state_clone()
1476 x->props.ealgo = orig->props.ealgo; in xfrm_state_clone()
1483 x->props.calgo = orig->props.calgo; in xfrm_state_clone()
1514 x->props.flags = orig->props.flags; in xfrm_state_clone()
1515 x->props.extra_flags = orig->props.extra_flags; in xfrm_state_clone()
1546 if (x->props.mode != m->mode || in xfrm_migrate_state_find()
1549 if (m->reqid && x->props.reqid != m->reqid) in xfrm_migrate_state_find()
1553 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, in xfrm_migrate_state_find()
1563 if (x->props.mode != m->mode || in xfrm_migrate_state_find()
1568 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, in xfrm_migrate_state_find()
1593 memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); in xfrm_state_migrate()
1623 x1 = __xfrm_state_locate(x, use_spi, x->props.family); in xfrm_state_update()
1678 if (x->props.smark.m || x->props.smark.v || x->if_id) { in xfrm_state_update()
1681 if (x->props.smark.m || x->props.smark.v) in xfrm_state_update()
1682 x1->props.smark = x->props.smark; in xfrm_state_update()
1808 switch (v->props.mode) { in __xfrm6_state_sort_cmp()
1985 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1995 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
2005 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
2025 x->props.family != filter->family) in __xfrm_state_filter_match()
2028 return addr_match(&x->props.saddr, &filter->saddr, in __xfrm_state_filter_match()
2415 return mtu - x->props.header_len; in xfrm_state_mtu()
2420 switch (x->props.mode) { in xfrm_state_mtu()
2423 if (x->props.family == AF_INET) in xfrm_state_mtu()
2425 else if (x->props.family == AF_INET6) in xfrm_state_mtu()
2435 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - in xfrm_state_mtu()
2444 int family = x->props.family; in __xfrm_init_state()
2449 x->props.flags |= XFRM_STATE_NOPMTUDISC; in __xfrm_init_state()
2454 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); in __xfrm_init_state()
2467 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); in __xfrm_init_state()
2476 if (x->props.family == AF_INET) in __xfrm_init_state()
2479 inner_mode_iaf = xfrm_get_mode(x->props.mode, iafamily); in __xfrm_init_state()
2496 outer_mode = xfrm_get_mode(x->props.mode, family); in __xfrm_init_state()
2594 switch (x->props.family) { in xfrm_audit_helper_sainfo()
2597 &x->props.saddr.a4, &x->id.daddr.a4); in xfrm_audit_helper_sainfo()
2601 x->props.saddr.a6, x->id.daddr.a6); in xfrm_audit_helper_sainfo()
2669 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_replay_overflow()
2687 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_replay()
2734 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_icvfail()