Commit 5b122545 authored by Al Viro's avatar Al Viro Committed by David S. Miller

[IPV6]: File the fingerprints off ah6->spi/esp6->spi

In theory these are opaque 32bit values.  However, we end up
allocating them sequentially in host-endian and stick unchanged
on the wire.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b1736a71
...@@ -135,7 +135,7 @@ u32 xfrm6_tunnel_spi_lookup(xfrm_address_t *saddr) ...@@ -135,7 +135,7 @@ u32 xfrm6_tunnel_spi_lookup(xfrm_address_t *saddr)
x6spi = __xfrm6_tunnel_spi_lookup(saddr); x6spi = __xfrm6_tunnel_spi_lookup(saddr);
spi = x6spi ? x6spi->spi : 0; spi = x6spi ? x6spi->spi : 0;
read_unlock_bh(&xfrm6_tunnel_spi_lock); read_unlock_bh(&xfrm6_tunnel_spi_lock);
return spi; return htonl(spi);
} }
EXPORT_SYMBOL(xfrm6_tunnel_spi_lookup); EXPORT_SYMBOL(xfrm6_tunnel_spi_lookup);
...@@ -210,7 +210,7 @@ u32 xfrm6_tunnel_alloc_spi(xfrm_address_t *saddr) ...@@ -210,7 +210,7 @@ u32 xfrm6_tunnel_alloc_spi(xfrm_address_t *saddr)
spi = __xfrm6_tunnel_alloc_spi(saddr); spi = __xfrm6_tunnel_alloc_spi(saddr);
write_unlock_bh(&xfrm6_tunnel_spi_lock); write_unlock_bh(&xfrm6_tunnel_spi_lock);
return spi; return htonl(spi);
} }
EXPORT_SYMBOL(xfrm6_tunnel_alloc_spi); EXPORT_SYMBOL(xfrm6_tunnel_alloc_spi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment