Lines Matching refs:saddr
74 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr)
80 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)],
82 if (xfrm6_addr_equal(&x6spi->addr, saddr))
89 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr)
95 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr);
117 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr)
151 memcpy(&x6spi->addr, saddr, sizeof(x6spi->addr));
157 index = xfrm6_tunnel_spi_hash_byaddr(saddr);
163 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr)
169 x6spi = __xfrm6_tunnel_spi_lookup(net, saddr);
174 spi = __xfrm6_tunnel_alloc_spi(net, saddr);
187 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr)
196 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)],
199 if (xfrm6_addr_equal(&x6spi->addr, saddr)) {
228 spi = xfrm6_tunnel_spi_lookup(net, (const xfrm_address_t *)&iph->saddr);
290 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr);