• Home
  • Raw
  • Download

Lines Matching refs:id

119 		h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr,  in xfrm_hash_transfer()
124 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
129 if (x->id.spi) { in xfrm_hash_transfer()
130 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, in xfrm_hash_transfer()
131 x->id.proto, x->props.family, in xfrm_hash_transfer()
639 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) in xfrm_timer_handler()
715 if (x->id.spi) in __xfrm_state_delete()
759 if (xfrm_id_proto_match(x->id.proto, proto) && in xfrm_state_flush_secctx_check()
821 xfrm_id_proto_match(x->id.proto, proto)) { in xfrm_state_flush()
953 x->id = tmpl->id; in xfrm_init_tempstate()
957 if (x->id.daddr.a4 == 0) in xfrm_init_tempstate()
958 x->id.daddr.a4 = daddr->a4; in xfrm_init_tempstate()
964 if (ipv6_addr_any((struct in6_addr *)&x->id.daddr)) in xfrm_init_tempstate()
965 memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr)); in xfrm_init_tempstate()
1005 x->id.spi != spi || in __xfrm_state_lookup_all()
1006 x->id.proto != proto || in __xfrm_state_lookup_all()
1007 !xfrm_addr_equal(&x->id.daddr, daddr, family)) in __xfrm_state_lookup_all()
1030 x->id.spi != spi || in __xfrm_state_lookup()
1031 x->id.proto != proto || in __xfrm_state_lookup()
1032 !xfrm_addr_equal(&x->id.daddr, daddr, family)) in __xfrm_state_lookup()
1055 x->id.proto != proto || in __xfrm_state_lookup_byaddr()
1056 !xfrm_addr_equal(&x->id.daddr, daddr, family) || in __xfrm_state_lookup_byaddr()
1077 return __xfrm_state_lookup(net, mark, &x->id.daddr, in __xfrm_state_locate()
1078 x->id.spi, x->id.proto, family); in __xfrm_state_locate()
1081 &x->id.daddr, in __xfrm_state_locate()
1083 x->id.proto, family); in __xfrm_state_locate()
1185 tmpl->id.proto == x->id.proto && in xfrm_state_find()
1186 (tmpl->id.spi == x->id.spi || !tmpl->id.spi)) in xfrm_state_find()
1217 xfrm_addr_equal(&x->id.daddr, daddr, encap_family) && in xfrm_state_find()
1219 tmpl->id.proto == x->id.proto && in xfrm_state_find()
1220 (tmpl->id.spi == x->id.spi || !tmpl->id.spi)) in xfrm_state_find()
1228 if (tmpl->id.spi && in xfrm_state_find()
1230 tmpl->id.spi, tmpl->id.proto, in xfrm_state_find()
1302 if (x->id.spi) { in xfrm_state_find()
1303 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, encap_family); in xfrm_state_find()
1378 proto == x->id.proto && in xfrm_stateonly_find()
1404 x->id.spi != spi) in xfrm_state_lookup_byspi()
1423 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr, in __xfrm_state_insert()
1428 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); in __xfrm_state_insert()
1432 if (x->id.spi) { in __xfrm_state_insert()
1433 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, in __xfrm_state_insert()
1467 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); in __xfrm_state_bump_genids()
1473 xfrm_addr_equal(&x->id.daddr, &xnew->id.daddr, family) && in __xfrm_state_bump_genids()
1508 x->id.spi != 0 || in __find_acq_core()
1509 x->id.proto != proto || in __find_acq_core()
1511 !xfrm_addr_equal(&x->id.daddr, daddr, family) || in __find_acq_core()
1531 x->id.daddr.a4 = daddr->a4; in __find_acq_core()
1540 x->id.daddr.in6 = daddr->in6; in __find_acq_core()
1545 x->id.proto = proto; in __find_acq_core()
1581 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_add()
1599 if (x1 && ((x1->id.proto != x->id.proto) || in xfrm_state_add()
1600 !xfrm_addr_equal(&x1->id.daddr, &x->id.daddr, family))) { in xfrm_state_add()
1608 x->props.reqid, x->if_id, x->id.proto, in xfrm_state_add()
1609 &x->id.daddr, &x->props.saddr, 0); in xfrm_state_add()
1663 memcpy(&x->id, &orig->id, sizeof(x->id)); in xfrm_state_clone()
1768 x->id.proto != m->proto) in xfrm_migrate_state_find()
1774 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr, in xfrm_migrate_state_find()
1787 x->id.proto != m->proto) in xfrm_migrate_state_find()
1791 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr, in xfrm_migrate_state_find()
1822 memcpy(&xc->id.daddr, &m->new_daddr, sizeof(xc->id.daddr)); in xfrm_state_migrate()
1826 if (xfrm_addr_equal(&x->id.daddr, &m->new_daddr, m->new_family)) { in xfrm_state_migrate()
1847 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_update()
2042 if (v->id.proto != IPPROTO_AH) in __xfrm6_state_sort_cmp()
2218 if (x->id.spi) in xfrm_alloc_spi()
2224 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
2235 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
2245 x->id.spi = newspi; in xfrm_alloc_spi()
2246 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
2274 addr_match(&x->id.daddr, &filter->daddr, in __xfrm_state_filter_match()
2300 if (!xfrm_id_proto_match(state->id.proto, walk->proto)) in xfrm_state_walk()
2829 x->type = xfrm_get_type(x->id.proto, family); in __xfrm_init_state()
2835 x->type_offload = xfrm_get_type_offload(x->id.proto, family, offload); in __xfrm_init_state()
2943 u32 spi = ntohl(x->id.spi); in xfrm_audit_helper_sainfo()
2952 &x->props.saddr.a4, &x->id.daddr.a4); in xfrm_audit_helper_sainfo()
2956 x->props.saddr.a6, x->id.daddr.a6); in xfrm_audit_helper_sainfo()
3027 spi = ntohl(x->id.spi); in xfrm_audit_state_replay_overflow()
3043 spi = ntohl(x->id.spi); in xfrm_audit_state_replay()