/net/ipv6/ |
H A D | xfrm6_tunnel.c | 45 u32 spi; member in struct:xfrm6_tunnel_net 55 * xfrm_tunnel_spi things are for allocating unique id ("spi") 62 u32 spi; member in struct:xfrm6_tunnel_spi 83 static inline unsigned int xfrm6_tunnel_spi_hash_byspi(u32 spi) argument 85 return spi % XFRM6_TUNNEL_SPI_BYSPI_HSIZE; 106 u32 spi; local 110 spi = x6spi ? x6spi->spi : 0; 112 return htonl(spi); 117 static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi) argument 135 u32 spi; local 178 u32 spi; local 239 __be32 spi; local [all...] |
H A D | ipcomp6.c | 61 __be32 spi; local 72 spi = htonl(ntohs(ipcomph->cpi)); 74 spi, IPPROTO_COMP, AF_INET6); 95 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); 96 if (!t->id.spi) 126 __be32 spi; local 129 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); 130 if (spi) 132 spi, IPPROTO_IPV6, AF_INET6);
|
H A D | xfrm6_input.c | 24 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi) argument 28 return xfrm_input(skb, nexthdr, spi, 0);
|
H A D | mip6.c | 313 if (x->id.spi) { 314 pr_info("%s: spi is not 0: %u\n", __func__, x->id.spi); 448 if (x->id.spi) { 449 pr_info("%s: spi is not 0: %u\n", __func__, x->id.spi);
|
H A D | esp6.c | 234 esph->spi = x->id.spi; 244 sg_set_buf(asg, &esph->spi, sizeof(__be32)); 394 sg_set_buf(asg, &esph->spi, sizeof(__be32)); 445 esph->spi, IPPROTO_ESP, AF_INET6);
|
H A D | ah6.c | 412 ah->spi = x->id.spi; 626 x = xfrm_state_lookup(net, skb->mark, (xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET6);
|
/net/ipv6/netfilter/ |
H A D | ip6t_ah.c | 26 /* Returns 1 if the spi is matched by the range, 0 otherwise */ 28 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument 33 invert ? '!' : ' ', min, spi, max); 34 r = (spi >= min && spi <= max) ^ invert; 65 pr_debug("SPI %u %08X\n", ntohl(ah->spi), ntohl(ah->spi)); 67 pr_debug("IPv6 AH spi %02X ", 69 ntohl(ah->spi), 82 ntohl(ah->spi), [all...] |
/net/ipv4/netfilter/ |
H A D | ipt_ah.c | 21 /* Returns 1 if the spi is matched by the range, 0 otherwise */ 23 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument 27 invert ? '!' : ' ', min, spi, max); 28 r=(spi >= min && spi <= max) ^ invert; 54 ntohl(ah->spi),
|
/net/netfilter/ |
H A D | xt_esp.c | 27 /* Returns 1 if the spi is matched by the range, 0 otherwise */ 29 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) argument 33 invert ? '!' : ' ', min, spi, max); 34 r = (spi >= min && spi <= max) ^ invert; 59 return spi_match(espinfo->spis[0], espinfo->spis[1], ntohl(eh->spi),
|
H A D | xt_policy.c | 50 MATCH(spi, x->id.spi) &&
|
H A D | xt_LOG.c | 347 sb_add(m, "SPI=0x%x ", ntohl(ah->spi)); 370 sb_add(m, "SPI=0x%x ", ntohl(eh->spi)); 618 sb_add(m, "SPI=0x%x ", ntohl(ah->spi)); 649 sb_add(m, "SPI=0x%x )", ntohl(eh->spi));
|
/net/xfrm/ |
H A D | xfrm_input.c | 49 /* Fetch spi and seq from ipsec header */ 51 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) argument 59 offset = offsetof(struct ip_auth_hdr, spi); 64 offset = offsetof(struct ip_esp_hdr, spi); 70 *spi = htonl(ntohs(*(__be16*)(skb_transport_header(skb) + 2))); 80 *spi = *(__be32*)(skb_transport_header(skb) + offset); 105 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) argument 145 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { 156 x = xfrm_state_lookup(net, skb->mark, daddr, spi, nexthd [all...] |
H A D | xfrm_state.c | 33 1. Hash table by (spi,daddr,ah/esp) to find SA by SPI. (input,ctl) 64 __be32 spi, u8 proto, unsigned short family) 66 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); 91 if (x->id.spi) { 92 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, 466 if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0) { 474 if (!err && x->id.spi) 544 if (x->id.spi) 681 __be32 spi, u8 proto, 684 unsigned int h = xfrm_spi_hash(net, daddr, spi, prot 63 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 679 __xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 1375 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) argument 1527 u32 spi = 0; local 2067 u32 spi = ntohl(x->id.spi); local 2145 u32 spi; local 2163 u32 spi; local 2192 u32 spi; local 2217 u32 spi = ntohl(net_spi); local [all...] |
H A D | xfrm_hash.h | 66 __xfrm_spi_hash(const xfrm_address_t *daddr, __be32 spi, u8 proto, argument 69 unsigned int h = (__force u32)spi ^ proto;
|
H A D | xfrm_ipcomp.c | 195 ipch->cpi = htons((u16 )ntohl(x->id.spi));
|
H A D | xfrm_user.c | 650 x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family); 1084 /* IPCOMP spi is 16-bits. */ 1743 id->sa_id.spi = x->id.spi; 1801 x = xfrm_state_lookup(net, mark, &id->daddr, id->spi, id->proto, id->family); 1852 x = xfrm_state_lookup(net, mark, &p->sa_id.daddr, p->sa_id.spi, p->sa_id.proto, p->sa_id.family); 1990 x = xfrm_state_lookup(net, mark, &p->id.daddr, p->id.spi, p->id.proto, p->family); 2553 id->spi = x->id.spi; 2955 um->id.spi [all...] |
H A D | xfrm_policy.c | 2233 (x->id.spi == tmpl->id.spi || !tmpl->id.spi) &&
|
/net/sched/ |
H A D | cls_rsvp.h | 90 struct tc_rsvp_gpi spi; member in struct:rsvp_filter 191 !(f->spi.mask & (*(u32 *)(xprt + f->spi.offset) ^ f->spi.key)) 481 f->spi = pinfo->spi; 528 if (((*fp)->spi.mask & f->spi.mask) != f->spi.mask) 622 pinfo.spi [all...] |
/net/ipv4/ |
H A D | ipcomp.c | 29 __be32 spi; local 44 spi = htonl(ntohs(ipch->cpi)); 46 spi, IPPROTO_COMP, AF_INET); 71 t->id.spi = x->props.saddr.a4;
|
H A D | xfrm4_input.c | 40 int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, argument 45 return xfrm_input(skb, nexthdr, spi, encap_type);
|
H A D | esp4.c | 242 esph->spi = x->id.spi; 252 sg_set_buf(asg, &esph->spi, sizeof(__be32)); 439 sg_set_buf(asg, &esph->spi, sizeof(__be32)); 501 esph->spi, IPPROTO_ESP, AF_INET);
|
H A D | ah4.c | 210 ah->spi = x->id.spi; 418 ah->spi, IPPROTO_AH, AF_INET);
|
/net/key/ |
H A D | af_key.c | 800 sa->sadb_sa_spi = x->id.spi; 1100 x->id.spi = sa->sadb_sa_spi; 3307 sa->sadb_sa_spi = x->id.spi;
|