/net/ipv6/ |
D | xfrm6_tunnel.c | 44 u32 spi; member 61 u32 spi; member 82 static inline unsigned int xfrm6_tunnel_spi_hash_byspi(u32 spi) in xfrm6_tunnel_spi_hash_byspi() argument 84 return spi % XFRM6_TUNNEL_SPI_BYSPI_HSIZE; in xfrm6_tunnel_spi_hash_byspi() 105 u32 spi; in xfrm6_tunnel_spi_lookup() local 109 spi = x6spi ? x6spi->spi : 0; in xfrm6_tunnel_spi_lookup() 111 return htonl(spi); in xfrm6_tunnel_spi_lookup() 115 static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi) in __xfrm6_tunnel_spi_check() argument 119 int index = xfrm6_tunnel_spi_hash_byspi(spi); in __xfrm6_tunnel_spi_check() 124 if (x6spi->spi == spi) in __xfrm6_tunnel_spi_check() [all …]
|
D | ipcomp6.c | 60 __be32 spi; in ipcomp6_err() local 70 spi = htonl(ntohs(ipcomph->cpi)); in ipcomp6_err() 72 spi, IPPROTO_COMP, AF_INET6); in ipcomp6_err() 96 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_create() 97 if (!t->id.spi) in ipcomp6_tunnel_create() 127 __be32 spi; in ipcomp6_tunnel_attach() local 130 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach() 131 if (spi) in ipcomp6_tunnel_attach() 133 spi, IPPROTO_IPV6, AF_INET6); in ipcomp6_tunnel_attach()
|
D | esp6.c | 132 esph->seq_no = esph->spi; in esp_restore_header() 133 esph->spi = *seqhi; in esp_restore_header() 243 *seqhi = esph->spi; in esp6_output() 248 esph->spi = x->id.spi; in esp6_output() 421 *seqhi = esph->spi; in esp6_input() 422 esph->spi = esph->seq_no; in esp6_input() 476 esph->spi, IPPROTO_ESP, AF_INET6); in esp6_err()
|
D | xfrm6_input.c | 24 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi, in xfrm6_rcv_spi() argument 30 return xfrm_input(skb, nexthdr, spi, 0); in xfrm6_rcv_spi()
|
D | mip6.c | 312 if (x->id.spi) { in mip6_destopt_init_state() 313 pr_info("%s: spi is not 0: %u\n", __func__, x->id.spi); in mip6_destopt_init_state() 447 if (x->id.spi) { in mip6_rthdr_init_state() 448 pr_info("%s: spi is not 0: %u\n", __func__, x->id.spi); in mip6_rthdr_init_state()
|
D | ip6_vti.c | 575 __be32 spi; in vti6_err() local 595 spi = esph->spi; in vti6_err() 599 spi = ah->spi; in vti6_err() 603 spi = htonl(ntohs(ipch->cpi)); in vti6_err() 614 spi, protocol, AF_INET6); in vti6_err()
|
D | ah6.c | 422 ah->spi = x->id.spi; in ah6_output() 664 …x = xfrm_state_lookup(net, skb->mark, (xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET6… in ah6_err()
|
/net/ipv6/netfilter/ |
D | ip6t_ah.c | 28 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 33 invert ? '!' : ' ', min, spi, max); in spi_match() 34 r = (spi >= min && spi <= max) ^ invert; in spi_match() 65 pr_debug("SPI %u %08X\n", ntohl(ah->spi), ntohl(ah->spi)); in ah_mt6() 69 ntohl(ah->spi), in ah_mt6() 82 ntohl(ah->spi), in ah_mt6()
|
D | nf_log_ipv6.c | 157 nf_log_buf_add(m, "SPI=0x%x ", ntohl(ah->spi)); in dump_ipv6_packet() 189 ntohl(eh->spi)); in dump_ipv6_packet()
|
/net/ipv4/netfilter/ |
D | ipt_ah.c | 23 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 27 invert ? '!' : ' ', min, spi, max); in spi_match() 28 r = (spi >= min && spi <= max) ^ invert; in spi_match() 54 ntohl(ah->spi), in ah_mt()
|
D | nf_log_ipv4.c | 221 nf_log_buf_add(m, "SPI=0x%x ", ntohl(ah->spi)); in dump_ipv4_packet() 244 nf_log_buf_add(m, "SPI=0x%x ", ntohl(eh->spi)); in dump_ipv4_packet()
|
/net/xfrm/ |
D | xfrm_state.c | 73 __be32 spi, u8 proto, unsigned short family) in xfrm_spi_hash() argument 75 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash() 100 if (x->id.spi) { in xfrm_hash_transfer() 101 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, in xfrm_hash_transfer() 472 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) in xfrm_timer_handler() 543 if (x->id.spi) in __xfrm_state_delete() 674 __be32 spi, u8 proto, in __xfrm_state_lookup() argument 677 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family); in __xfrm_state_lookup() 682 x->id.spi != spi || in __xfrm_state_lookup() 730 x->id.spi, x->id.proto, family); in __xfrm_state_locate() [all …]
|
D | xfrm_input.c | 128 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument 136 offset = offsetof(struct ip_auth_hdr, spi); in xfrm_parse_spi() 141 offset = offsetof(struct ip_esp_hdr, spi); in xfrm_parse_spi() 147 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi() 157 *spi = *(__be32 *)(skb_transport_header(skb) + offset); in xfrm_parse_spi() 182 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 236 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { in xfrm_input() 247 x = xfrm_state_lookup(net, mark, daddr, spi, nexthdr, family); in xfrm_input() 250 xfrm_audit_state_notfound(skb, family, spi, seq); in xfrm_input() 359 err = xfrm_parse_spi(skb, nexthdr, &spi, &seq); in xfrm_input()
|
D | xfrm_hash.h | 119 __xfrm_spi_hash(const xfrm_address_t *daddr, __be32 spi, u8 proto, in __xfrm_spi_hash() argument 122 unsigned int h = (__force u32)spi ^ proto; in __xfrm_spi_hash()
|
/net/netfilter/ |
D | xt_esp.c | 29 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 33 invert ? '!' : ' ', min, spi, max); in spi_match() 34 r = (spi >= min && spi <= max) ^ invert; in spi_match() 59 return spi_match(espinfo->spis[0], espinfo->spis[1], ntohl(eh->spi), in esp_mt()
|
D | xt_ipcomp.c | 34 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 38 invert ? '!' : ' ', min, spi, max); in spi_match() 39 r = (spi >= min && spi <= max) ^ invert; in spi_match()
|
D | xt_policy.c | 50 MATCH(spi, x->id.spi) && in match_xfrm_state()
|
/net/nfc/nci/ |
D | spi.c | 66 return spi_sync(nspi->spi, &m); in __nci_spi_send() 136 struct nci_spi *nci_spi_allocate_spi(struct spi_device *spi, in nci_spi_allocate_spi() argument 142 nspi = devm_kzalloc(&spi->dev, sizeof(struct nci_spi), GFP_KERNEL); in nci_spi_allocate_spi() 150 nspi->spi = spi; in nci_spi_allocate_spi() 212 ret = spi_sync(nspi->spi, &m); in __nci_spi_read() 236 ret = spi_sync(nspi->spi, &m); in __nci_spi_read()
|
D | Makefile | 9 nci_spi-y += spi.o
|
/net/sched/ |
D | cls_rsvp.h | 92 struct tc_rsvp_gpi spi; member 192 !(f->spi.mask & (*(u32 *)(xprt + f->spi.offset) ^ f->spi.key)) in rsvp_classify() 550 f->spi = pinfo->spi; in rsvp_change() 601 __u32 mask = nfp->spi.mask & f->spi.mask; in rsvp_change() 603 if (mask != f->spi.mask) in rsvp_change() 700 pinfo.spi = f->spi; in rsvp_dump()
|
/net/ipv4/ |
D | ip_vti.c | 52 static int vti_input(struct sk_buff *skb, int nexthdr, __be32 spi, in vti_input() argument 68 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input() 278 __be32 spi; in vti4_err() local 300 spi = esph->spi; in vti4_err() 304 spi = ah->spi; in vti4_err() 308 spi = htonl(ntohs(ipch->cpi)); in vti4_err() 325 spi, protocol, AF_INET); in vti4_err()
|
D | ipcomp.c | 29 __be32 spi; in ipcomp4_err() local 44 spi = htonl(ntohs(ipch->cpi)); in ipcomp4_err() 46 spi, IPPROTO_COMP, AF_INET); in ipcomp4_err() 70 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create()
|
D | esp4.c | 110 esph->seq_no = esph->spi; in esp_restore_header() 111 esph->spi = *seqhi; in esp_restore_header() 263 extra->seqhi = esph->spi; in esp_output() 268 esph->spi = x->id.spi; in esp_output() 478 *seqhi = esph->spi; in esp_input() 479 esph->spi = esph->seq_no; in esp_input() 545 esph->spi, IPPROTO_ESP, AF_INET); in esp4_err()
|
D | xfrm4_protocol.c | 66 int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, in xfrm4_rcv_encap() argument 81 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
|
D | ah4.c | 219 ah->spi = x->id.spi; in ah_output() 458 ah->spi, IPPROTO_AH, AF_INET); in ah4_err()
|