• Home
  • Raw
  • Download

Lines Matching refs:proto

67 xfrm_spi_hash(struct net *net, xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family)  in xfrm_spi_hash()  argument
69 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash()
96 x->id.proto, x->props.family, in xfrm_hash_transfer()
202 if (likely(typemap[type->proto] == NULL)) in xfrm_register_type()
203 typemap[type->proto] = type; in xfrm_register_type()
221 if (unlikely(typemap[type->proto] != type)) in xfrm_unregister_type()
224 typemap[type->proto] = NULL; in xfrm_unregister_type()
230 static const struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family) in xfrm_get_type() argument
243 type = typemap[proto]; in xfrm_get_type()
248 request_module("xfrm-type-%d-%d", family, proto); in xfrm_get_type()
568 xfrm_state_flush_secctx_check(struct net *net, u8 proto, struct xfrm_audit *audit_info) in xfrm_state_flush_secctx_check() argument
577 if (xfrm_id_proto_match(x->id.proto, proto) && in xfrm_state_flush_secctx_check()
592 xfrm_state_flush_secctx_check(struct net *net, u8 proto, struct xfrm_audit *audit_info) in xfrm_state_flush_secctx_check() argument
598 int xfrm_state_flush(struct net *net, u8 proto, struct xfrm_audit *audit_info) in xfrm_state_flush() argument
603 err = xfrm_state_flush_secctx_check(net, proto, audit_info); in xfrm_state_flush()
613 xfrm_id_proto_match(x->id.proto, proto)) { in xfrm_state_flush()
662 …_xfrm_state_lookup(struct net *net, xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short fa… in __xfrm_state_lookup() argument
664 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family); in __xfrm_state_lookup()
671 x->id.proto != proto) in __xfrm_state_lookup()
694 …_byaddr(struct net *net, xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto, unsigned short fa… in __xfrm_state_lookup_byaddr() argument
702 x->id.proto != proto) in __xfrm_state_lookup_byaddr()
736 x->id.proto, family); in __xfrm_state_locate()
740 x->id.proto, family); in __xfrm_state_locate()
814 tmpl->id.proto == x->id.proto && in xfrm_state_find()
829 tmpl->id.proto == x->id.proto && in xfrm_state_find()
840 tmpl->id.proto, family)) != NULL) { in xfrm_state_find()
869 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, family); in xfrm_state_find()
898 unsigned short family, u8 mode, u8 proto, u32 reqid) in xfrm_stateonly_find() argument
912 proto == x->id.proto && in xfrm_stateonly_find()
945 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, in __xfrm_state_insert()
992 …d_acq_core(struct net *net, unsigned short family, u8 mode, u32 reqid, u8 proto, xfrm_address_t *d… in __find_acq_core() argument
1004 x->id.proto != proto) in __find_acq_core()
1057 x->id.proto = proto; in __find_acq_core()
1086 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_add()
1104 if (x1 && ((x1->id.proto != x->id.proto) || in xfrm_state_add()
1113 x->id.proto, in xfrm_state_add()
1225 x->id.proto != m->proto) in xfrm_migrate_state_find()
1242 x->id.proto != m->proto) in xfrm_migrate_state_find()
1293 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_update()
1384 xfrm_state_lookup(struct net *net, xfrm_address_t *daddr, __be32 spi, u8 proto, in xfrm_state_lookup() argument
1390 x = __xfrm_state_lookup(net, daddr, spi, proto, family); in xfrm_state_lookup()
1399 u8 proto, unsigned short family) in xfrm_state_lookup_byaddr() argument
1404 x = __xfrm_state_lookup_byaddr(net, daddr, saddr, proto, family); in xfrm_state_lookup_byaddr()
1411 xfrm_find_acq(struct net *net, u8 mode, u32 reqid, u8 proto, in xfrm_find_acq() argument
1418 x = __find_acq_core(net, family, mode, reqid, proto, daddr, saddr, create); in xfrm_find_acq()
1528 x0 = xfrm_state_lookup(net, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1538 x0 = xfrm_state_lookup(net, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
1548 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1582 if (!xfrm_id_proto_match(state->id.proto, walk->proto)) in xfrm_state_walk()
1602 void xfrm_state_walk_init(struct xfrm_state_walk *walk, u8 proto) in xfrm_state_walk_init() argument
1605 walk->proto = proto; in xfrm_state_walk_init()
1854 int km_report(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr) in km_report() argument
1863 ret = km->report(net, proto, sel, addr); in km_report()
2075 x->type = xfrm_get_type(x->id.proto, family); in xfrm_init_state()
2295 struct sk_buff *skb, u8 proto) in xfrm_audit_state_icvfail() argument
2305 if (xfrm_parse_spi(skb, proto, &net_spi, &net_seq) == 0) { in xfrm_audit_state_icvfail()