Searched refs:spi (Results 1 - 23 of 23) sorted by relevance

/net/ipv6/
H A Dxfrm6_tunnel.c45 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 Dipcomp6.c61 __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 Dxfrm6_input.c24 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi) argument
28 return xfrm_input(skb, nexthdr, spi, 0);
H A Dmip6.c313 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 Desp6.c234 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 Dah6.c412 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 Dip6t_ah.c26 /* 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 Dipt_ah.c21 /* 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 Dxt_esp.c27 /* 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 Dxt_policy.c50 MATCH(spi, x->id.spi) &&
H A Dxt_LOG.c347 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 Dxfrm_input.c49 /* 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 Dxfrm_state.c33 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 Dxfrm_hash.h66 __xfrm_spi_hash(const xfrm_address_t *daddr, __be32 spi, u8 proto, argument
69 unsigned int h = (__force u32)spi ^ proto;
H A Dxfrm_ipcomp.c195 ipch->cpi = htons((u16 )ntohl(x->id.spi));
H A Dxfrm_user.c650 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 Dxfrm_policy.c2233 (x->id.spi == tmpl->id.spi || !tmpl->id.spi) &&
/net/sched/
H A Dcls_rsvp.h90 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 Dipcomp.c29 __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 Dxfrm4_input.c40 int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, argument
45 return xfrm_input(skb, nexthdr, spi, encap_type);
H A Desp4.c242 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 Dah4.c210 ah->spi = x->id.spi;
418 ah->spi, IPPROTO_AH, AF_INET);
/net/key/
H A Daf_key.c800 sa->sadb_sa_spi = x->id.spi;
1100 x->id.spi = sa->sadb_sa_spi;
3307 sa->sadb_sa_spi = x->id.spi;

Completed in 386 milliseconds