• Home
  • Raw
  • Download

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()
1066 if (x->props.family == encap_family && in xfrm_state_find()
1067 x->props.reqid == tmpl->reqid && in xfrm_state_find()
1070 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_state_find()
1072 tmpl->mode == x->props.mode && in xfrm_state_find()
1083 if (x->props.family == encap_family && in xfrm_state_find()
1084 x->props.reqid == tmpl->reqid && in xfrm_state_find()
1087 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_state_find()
1089 tmpl->mode == x->props.mode && in xfrm_state_find()
1196 if (x->props.family == family && in xfrm_stateonly_find()
1197 x->props.reqid == reqid && in xfrm_stateonly_find()
1200 !(x->props.flags & XFRM_STATE_WILDRECV) && in xfrm_stateonly_find()
1202 mode == x->props.mode && in xfrm_stateonly_find()
1228 if (x->props.family != family || in xfrm_state_lookup_byspi()
1248 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr, in __xfrm_state_insert()
1249 x->props.reqid, x->props.family); in __xfrm_state_insert()
1252 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); in __xfrm_state_insert()
1257 x->props.family); in __xfrm_state_insert()
1275 unsigned short family = xnew->props.family; in __xfrm_state_bump_genids()
1276 u32 reqid = xnew->props.reqid; in __xfrm_state_bump_genids()
1282 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); in __xfrm_state_bump_genids()
1284 if (x->props.family == family && in __xfrm_state_bump_genids()
1285 x->props.reqid == reqid && in __xfrm_state_bump_genids()
1289 xfrm_addr_equal(&x->props.saddr, &xnew->props.saddr, family)) in __xfrm_state_bump_genids()
1319 if (x->props.reqid != reqid || in __find_acq_core()
1320 x->props.mode != mode || in __find_acq_core()
1321 x->props.family != family || in __find_acq_core()
1327 !xfrm_addr_equal(&x->props.saddr, saddr, family)) in __find_acq_core()
1345 x->props.saddr.a4 = saddr->a4; in __find_acq_core()
1354 x->props.saddr.in6 = saddr->in6; in __find_acq_core()
1361 x->props.family = family; in __find_acq_core()
1362 x->props.mode = mode; in __find_acq_core()
1363 x->props.reqid = reqid; in __find_acq_core()
1396 family = x->props.family; in xfrm_state_add()
1420 x1 = __find_acq_core(net, &x->mark, family, x->props.mode, in xfrm_state_add()
1421 x->props.reqid, x->if_id, x->id.proto, in xfrm_state_add()
1422 &x->id.daddr, &x->props.saddr, 0); in xfrm_state_add()
1479 x->props.mode = orig->props.mode; in xfrm_state_clone()
1480 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone()
1481 x->props.reqid = orig->props.reqid; in xfrm_state_clone()
1482 x->props.family = orig->props.family; in xfrm_state_clone()
1483 x->props.saddr = orig->props.saddr; in xfrm_state_clone()
1490 x->props.aalgo = orig->props.aalgo; in xfrm_state_clone()
1503 x->props.ealgo = orig->props.ealgo; in xfrm_state_clone()
1510 x->props.calgo = orig->props.calgo; in xfrm_state_clone()
1541 memcpy(&x->props.smark, &orig->props.smark, sizeof(x->props.smark)); in xfrm_state_clone()
1543 x->props.flags = orig->props.flags; in xfrm_state_clone()
1544 x->props.extra_flags = orig->props.extra_flags; in xfrm_state_clone()
1576 if (x->props.mode != m->mode || in xfrm_migrate_state_find()
1579 if (m->reqid && x->props.reqid != m->reqid) in xfrm_migrate_state_find()
1585 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, in xfrm_migrate_state_find()
1595 if (x->props.mode != m->mode || in xfrm_migrate_state_find()
1602 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, in xfrm_migrate_state_find()
1626 xc->props.family = m->new_family; in xfrm_state_migrate()
1632 memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); in xfrm_state_migrate()
1662 x1 = __xfrm_state_locate(x, use_spi, x->props.family); in xfrm_state_update()
1717 if (x->props.smark.m || x->props.smark.v || x->if_id) { in xfrm_state_update()
1720 if (x->props.smark.m || x->props.smark.v) in xfrm_state_update()
1721 x1->props.smark = x->props.smark; in xfrm_state_update()
1847 switch (v->props.mode) { in __xfrm6_state_sort_cmp()
2025 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
2035 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
2046 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
2066 x->props.family != filter->family) in __xfrm_state_filter_match()
2069 return addr_match(&x->props.saddr, &filter->saddr, in __xfrm_state_filter_match()
2535 return mtu - x->props.header_len; in xfrm_state_mtu()
2540 switch (x->props.mode) { in xfrm_state_mtu()
2543 if (x->props.family == AF_INET) in xfrm_state_mtu()
2545 else if (x->props.family == AF_INET6) in xfrm_state_mtu()
2555 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - in xfrm_state_mtu()
2564 int family = x->props.family; in __xfrm_init_state()
2569 x->props.flags |= XFRM_STATE_NOPMTUDISC; in __xfrm_init_state()
2574 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); in __xfrm_init_state()
2587 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); in __xfrm_init_state()
2593 if (x->props.family == AF_INET) in __xfrm_init_state()
2596 inner_mode_iaf = xfrm_get_mode(x->props.mode, iafamily); in __xfrm_init_state()
2613 outer_mode = xfrm_get_mode(x->props.mode, family); in __xfrm_init_state()
2711 switch (x->props.family) { in xfrm_audit_helper_sainfo()
2714 &x->props.saddr.a4, &x->id.daddr.a4); in xfrm_audit_helper_sainfo()
2718 x->props.saddr.a6, x->id.daddr.a6); in xfrm_audit_helper_sainfo()
2786 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_replay_overflow()
2804 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_replay()
2851 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); in xfrm_audit_state_icvfail()