• Home
  • Raw
  • Download

Lines Matching refs:id

81 		h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr,  in xfrm_hash_transfer()
86 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
91 if (x->id.spi) { in xfrm_hash_transfer()
92 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, in xfrm_hash_transfer()
93 x->id.proto, x->props.family, in xfrm_hash_transfer()
466 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) { in xfrm_timer_handler()
474 if (!err && x->id.spi) in xfrm_timer_handler()
544 if (x->id.spi) in __xfrm_state_delete()
583 if (xfrm_id_proto_match(x->id.proto, proto) && in xfrm_state_flush_secctx_check()
619 xfrm_id_proto_match(x->id.proto, proto)) { in xfrm_state_flush()
689 x->id.spi != spi || in __xfrm_state_lookup()
690 x->id.proto != proto || in __xfrm_state_lookup()
691 !xfrm_addr_equal(&x->id.daddr, daddr, family)) in __xfrm_state_lookup()
713 x->id.proto != proto || in __xfrm_state_lookup_byaddr()
714 !xfrm_addr_equal(&x->id.daddr, daddr, family) || in __xfrm_state_lookup_byaddr()
734 return __xfrm_state_lookup(net, mark, &x->id.daddr, in __xfrm_state_locate()
735 x->id.spi, x->id.proto, family); in __xfrm_state_locate()
738 &x->id.daddr, in __xfrm_state_locate()
740 x->id.proto, family); in __xfrm_state_locate()
815 tmpl->id.proto == x->id.proto && in xfrm_state_find()
816 (tmpl->id.spi == x->id.spi || !tmpl->id.spi)) in xfrm_state_find()
831 tmpl->id.proto == x->id.proto && in xfrm_state_find()
832 (tmpl->id.spi == x->id.spi || !tmpl->id.spi)) in xfrm_state_find()
840 if (tmpl->id.spi && in xfrm_state_find()
841 (x0 = __xfrm_state_lookup(net, mark, daddr, tmpl->id.spi, in xfrm_state_find()
842 tmpl->id.proto, encap_family)) != NULL) { in xfrm_state_find()
871 if (x->id.spi) { in xfrm_state_find()
872 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, encap_family); in xfrm_state_find()
914 proto == x->id.proto && in xfrm_stateonly_find()
937 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr, in __xfrm_state_insert()
941 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); in __xfrm_state_insert()
944 if (x->id.spi) { in __xfrm_state_insert()
945 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, in __xfrm_state_insert()
972 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); in __xfrm_state_bump_genids()
977 xfrm_addr_equal(&x->id.daddr, &xnew->id.daddr, family) && in __xfrm_state_bump_genids()
1008 x->id.spi != 0 || in __find_acq_core()
1009 x->id.proto != proto || in __find_acq_core()
1011 !xfrm_addr_equal(&x->id.daddr, daddr, family) || in __find_acq_core()
1031 x->id.daddr.a4 = daddr->a4; in __find_acq_core()
1040 *(struct in6_addr *)x->id.daddr.a6 = *(struct in6_addr *)daddr; in __find_acq_core()
1045 x->id.proto = proto; in __find_acq_core()
1076 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_add()
1094 if (x1 && ((x1->id.proto != x->id.proto) || in xfrm_state_add()
1095 !xfrm_addr_equal(&x1->id.daddr, &x->id.daddr, family))) { in xfrm_state_add()
1103 x->props.reqid, x->id.proto, in xfrm_state_add()
1104 &x->id.daddr, &x->props.saddr, 0); in xfrm_state_add()
1134 memcpy(&x->id, &orig->id, sizeof(x->id)); in xfrm_state_clone()
1217 x->id.proto != m->proto) in xfrm_migrate_state_find()
1221 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr, in xfrm_migrate_state_find()
1234 x->id.proto != m->proto) in xfrm_migrate_state_find()
1236 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr, in xfrm_migrate_state_find()
1260 memcpy(&xc->id.daddr, &m->new_daddr, sizeof(xc->id.daddr)); in xfrm_state_migrate()
1264 if (xfrm_addr_equal(&x->id.daddr, &m->new_daddr, m->new_family)) { in xfrm_state_migrate()
1285 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_update()
1514 if (x->id.spi) in xfrm_alloc_spi()
1520 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1525 x->id.spi = minspi; in xfrm_alloc_spi()
1530 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
1532 x->id.spi = htonl(spi); in xfrm_alloc_spi()
1538 if (x->id.spi) { in xfrm_alloc_spi()
1540 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1574 if (!xfrm_id_proto_match(state->id.proto, walk->proto)) in xfrm_state_walk()
1971 x->type = xfrm_get_type(x->id.proto, family); in __xfrm_init_state()
2068 u32 spi = ntohl(x->id.spi); in xfrm_audit_helper_sainfo()
2077 &x->props.saddr.a4, &x->id.daddr.a4); in xfrm_audit_helper_sainfo()
2081 x->props.saddr.a6, x->id.daddr.a6); in xfrm_audit_helper_sainfo()
2154 spi = ntohl(x->id.spi); in xfrm_audit_state_replay_overflow()
2170 spi = ntohl(x->id.spi); in xfrm_audit_state_replay()