Commit 9aa600889be2f6a6a5fed85a33d4530920662965
1 parent
046860138e
Exists in
master
and in
4 other branches
xfrm: Const'ify xfrm_address_t args to __xfrm_state_lookup{,_byaddr}.
Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 8 additions and 2 deletions Side-by-side Diff
net/xfrm/xfrm_state.c
... | ... | @@ -678,7 +678,10 @@ |
678 | 678 | return 0; |
679 | 679 | } |
680 | 680 | |
681 | -static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family) | |
681 | +static struct xfrm_state *__xfrm_state_lookup(struct net *net, u32 mark, | |
682 | + const xfrm_address_t *daddr, | |
683 | + __be32 spi, u8 proto, | |
684 | + unsigned short family) | |
682 | 685 | { |
683 | 686 | unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family); |
684 | 687 | struct xfrm_state *x; |
... | ... | @@ -700,7 +703,10 @@ |
700 | 703 | return NULL; |
701 | 704 | } |
702 | 705 | |
703 | -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) | |
706 | +static struct xfrm_state *__xfrm_state_lookup_byaddr(struct net *net, u32 mark, | |
707 | + const xfrm_address_t *daddr, | |
708 | + const xfrm_address_t *saddr, | |
709 | + u8 proto, unsigned short family) | |
704 | 710 | { |
705 | 711 | unsigned int h = xfrm_src_hash(net, daddr, saddr, family); |
706 | 712 | struct xfrm_state *x; |