Lines Matching refs:proto

59 	      __be32 spi, u8 proto, unsigned short family)  in xfrm_spi_hash()  argument
61 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash()
88 x->id.proto, x->props.family, in xfrm_hash_transfer()
172 if (likely(typemap[type->proto] == NULL)) in xfrm_register_type()
173 typemap[type->proto] = type; in xfrm_register_type()
193 if (unlikely(typemap[type->proto] != type)) in xfrm_unregister_type()
196 typemap[type->proto] = NULL; in xfrm_unregister_type()
203 static const struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family) in xfrm_get_type() argument
216 type = typemap[proto]; in xfrm_get_type()
221 request_module("xfrm-type-%d-%d", family, proto); in xfrm_get_type()
556 xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid) in xfrm_state_flush_secctx_check() argument
564 if (xfrm_id_proto_match(x->id.proto, proto) && in xfrm_state_flush_secctx_check()
576 xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid) in xfrm_state_flush_secctx_check() argument
582 int xfrm_state_flush(struct net *net, u8 proto, bool task_valid) in xfrm_state_flush() argument
587 err = xfrm_state_flush_secctx_check(net, proto, task_valid); in xfrm_state_flush()
597 xfrm_id_proto_match(x->id.proto, proto)) { in xfrm_state_flush()
656 __be32 spi, u8 proto, in __xfrm_state_lookup() argument
659 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family); in __xfrm_state_lookup()
665 x->id.proto != proto || in __xfrm_state_lookup()
681 u8 proto, unsigned short family) in __xfrm_state_lookup_byaddr() argument
688 x->id.proto != proto || in __xfrm_state_lookup_byaddr()
710 x->id.spi, x->id.proto, family); in __xfrm_state_locate()
715 x->id.proto, family); in __xfrm_state_locate()
791 tmpl->id.proto == x->id.proto && in xfrm_state_find()
807 tmpl->id.proto == x->id.proto && in xfrm_state_find()
818 tmpl->id.proto, encap_family)) != NULL) { in xfrm_state_find()
859 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, encap_family); in xfrm_state_find()
887 unsigned short family, u8 mode, u8 proto, u32 reqid) in xfrm_stateonly_find() argument
901 proto == x->id.proto && in xfrm_stateonly_find()
954 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, in __xfrm_state_insert()
1005 u32 reqid, u8 proto, in __find_acq_core() argument
1020 x->id.proto != proto || in __find_acq_core()
1056 x->id.proto = proto; in __find_acq_core()
1087 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_add()
1105 if (x1 && ((x1->id.proto != x->id.proto) || in xfrm_state_add()
1114 x->props.reqid, x->id.proto, in xfrm_state_add()
1232 x->id.proto != m->proto) in xfrm_migrate_state_find()
1249 x->id.proto != m->proto) in xfrm_migrate_state_find()
1301 int use_spi = xfrm_id_proto_match(x->id.proto, IPSEC_PROTO_ANY); in xfrm_state_update()
1393 u8 proto, unsigned short family) in xfrm_state_lookup() argument
1398 x = __xfrm_state_lookup(net, mark, daddr, spi, proto, family); in xfrm_state_lookup()
1407 u8 proto, unsigned short family) in xfrm_state_lookup_byaddr() argument
1412 x = __xfrm_state_lookup_byaddr(net, mark, daddr, saddr, proto, family); in xfrm_state_lookup_byaddr()
1420 u8 proto, const xfrm_address_t *daddr, in xfrm_find_acq() argument
1426 x = __find_acq_core(net, mark, family, mode, reqid, proto, daddr, saddr, create); in xfrm_find_acq()
1518 int verify_spi_info(u8 proto, u32 min, u32 max) in verify_spi_info() argument
1520 switch (proto) { in verify_spi_info()
1563 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1573 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
1583 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1634 if (!xfrm_id_proto_match(state->id.proto, walk->proto)) in xfrm_state_walk()
1656 void xfrm_state_walk_init(struct xfrm_state_walk *walk, u8 proto, in xfrm_state_walk_init() argument
1660 walk->proto = proto; in xfrm_state_walk_init()
1804 int km_report(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr) in km_report() argument
1813 ret = km->report(net, proto, sel, addr); in km_report()
2046 x->type = xfrm_get_type(x->id.proto, family); in __xfrm_init_state()
2276 struct sk_buff *skb, u8 proto) in xfrm_audit_state_icvfail() argument
2286 if (xfrm_parse_spi(skb, proto, &net_spi, &net_seq) == 0) { in xfrm_audit_state_icvfail()