diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-28 02:17:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-28 02:17:24 -0500 |
commit | a70486f0e669730bad6713063e3f59e2e870044f (patch) | |
tree | f502826e26c5605bb973c1cc0d7817074330e424 /include/net/xfrm.h | |
parent | 851586218f5d463bbd62af40dfa264c5e3539572 (diff) |
xfrm: Pass const xfrm_address_t objects to xfrm_state_lookup* and xfrm_find_acq.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 15e310fae282..437c289649ca 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -1350,11 +1350,11 @@ extern void xfrm_state_insert(struct xfrm_state *x); | |||
1350 | extern int xfrm_state_add(struct xfrm_state *x); | 1350 | extern int xfrm_state_add(struct xfrm_state *x); |
1351 | extern int xfrm_state_update(struct xfrm_state *x); | 1351 | extern int xfrm_state_update(struct xfrm_state *x); |
1352 | extern struct xfrm_state *xfrm_state_lookup(struct net *net, u32 mark, | 1352 | extern struct xfrm_state *xfrm_state_lookup(struct net *net, u32 mark, |
1353 | xfrm_address_t *daddr, __be32 spi, | 1353 | const xfrm_address_t *daddr, __be32 spi, |
1354 | u8 proto, unsigned short family); | 1354 | u8 proto, unsigned short family); |
1355 | extern struct xfrm_state *xfrm_state_lookup_byaddr(struct net *net, u32 mark, | 1355 | extern struct xfrm_state *xfrm_state_lookup_byaddr(struct net *net, u32 mark, |
1356 | xfrm_address_t *daddr, | 1356 | const xfrm_address_t *daddr, |
1357 | xfrm_address_t *saddr, | 1357 | const xfrm_address_t *saddr, |
1358 | u8 proto, | 1358 | u8 proto, |
1359 | unsigned short family); | 1359 | unsigned short family); |
1360 | #ifdef CONFIG_XFRM_SUB_POLICY | 1360 | #ifdef CONFIG_XFRM_SUB_POLICY |
@@ -1481,8 +1481,8 @@ u32 xfrm_get_acqseq(void); | |||
1481 | extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); | 1481 | extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); |
1482 | struct xfrm_state *xfrm_find_acq(struct net *net, struct xfrm_mark *mark, | 1482 | struct xfrm_state *xfrm_find_acq(struct net *net, struct xfrm_mark *mark, |
1483 | u8 mode, u32 reqid, u8 proto, | 1483 | u8 mode, u32 reqid, u8 proto, |
1484 | xfrm_address_t *daddr, | 1484 | const xfrm_address_t *daddr, |
1485 | xfrm_address_t *saddr, int create, | 1485 | const xfrm_address_t *saddr, int create, |
1486 | unsigned short family); | 1486 | unsigned short family); |
1487 | extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); | 1487 | extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); |
1488 | 1488 | ||