diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-24 01:51:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 23:07:48 -0800 |
commit | 9aa600889be2f6a6a5fed85a33d4530920662965 (patch) | |
tree | fc1ce47221d599902ca1e5238bfcbbf1b7eaf888 /net/xfrm | |
parent | 046860138e3f244d19e59c4fb1ef637803f3abbf (diff) | |
download | linux-stable-9aa600889be2f6a6a5fed85a33d4530920662965.tar.gz linux-stable-9aa600889be2f6a6a5fed85a33d4530920662965.tar.bz2 linux-stable-9aa600889be2f6a6a5fed85a33d4530920662965.zip |
xfrm: Const'ify xfrm_address_t args to __xfrm_state_lookup{,_byaddr}.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_state.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index ac6c48a486e4..8a57a1ee538c 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -678,7 +678,10 @@ xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, return 0; } -static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) +static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, + const xfrm_address_t *daddr, + __be32 spi, u8 proto, + unsigned short family) { unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family); struct xfrm_state *x; @@ -700,7 +703,10 @@ static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, xfrm_ad return NULL; } -static struct xfrm_state *__xfrm_state_lookup_byaddr(struct net *net, u32 mark, xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto, unsigned short family) +static struct xfrm_state *__xfrm_state_lookup_byaddr(struct net *net, u32 mark, + const xfrm_address_t *daddr, + const xfrm_address_t *saddr, + u8 proto, unsigned short family) { unsigned int h = xfrm_src_hash(net, daddr, saddr, family); struct xfrm_state *x; |