diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-25 20:31:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 20:31:51 -0500 |
commit | 5447c5e401c49aba0c36bb1066f2d25b152553b7 (patch) | |
tree | 5a5b4e0736368a70a266bd04075d174310aa5f80 /include/net/xfrm.h | |
parent | 12604d8aaa38ac4e24299c9803fefdb301a16421 (diff) |
netns xfrm: finding states in netns
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 15136c5e2622..4cbd0557c698 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -1315,7 +1315,8 @@ extern struct xfrm_state *xfrm_state_find(xfrm_address_t *daddr, xfrm_address_t | |||
1315 | struct flowi *fl, struct xfrm_tmpl *tmpl, | 1315 | struct flowi *fl, struct xfrm_tmpl *tmpl, |
1316 | struct xfrm_policy *pol, int *err, | 1316 | struct xfrm_policy *pol, int *err, |
1317 | unsigned short family); | 1317 | unsigned short family); |
1318 | extern struct xfrm_state * xfrm_stateonly_find(xfrm_address_t *daddr, | 1318 | extern struct xfrm_state * xfrm_stateonly_find(struct net *net, |
1319 | xfrm_address_t *daddr, | ||
1319 | xfrm_address_t *saddr, | 1320 | xfrm_address_t *saddr, |
1320 | unsigned short family, | 1321 | unsigned short family, |
1321 | u8 mode, u8 proto, u32 reqid); | 1322 | u8 mode, u8 proto, u32 reqid); |
@@ -1361,7 +1362,7 @@ struct xfrmk_spdinfo { | |||
1361 | u32 spdhmcnt; | 1362 | u32 spdhmcnt; |
1362 | }; | 1363 | }; |
1363 | 1364 | ||
1364 | extern struct xfrm_state *xfrm_find_acq_byseq(u32 seq); | 1365 | extern struct xfrm_state *xfrm_find_acq_byseq(struct net *net, u32 seq); |
1365 | extern int xfrm_state_delete(struct xfrm_state *x); | 1366 | extern int xfrm_state_delete(struct xfrm_state *x); |
1366 | extern int xfrm_state_flush(struct net *net, u8 proto, struct xfrm_audit *audit_info); | 1367 | extern int xfrm_state_flush(struct net *net, u8 proto, struct xfrm_audit *audit_info); |
1367 | extern void xfrm_sad_getinfo(struct xfrmk_sadinfo *si); | 1368 | extern void xfrm_sad_getinfo(struct xfrmk_sadinfo *si); |
@@ -1446,7 +1447,7 @@ struct xfrm_policy *xfrm_policy_byid(u8, int dir, u32 id, int delete, int *err); | |||
1446 | int xfrm_policy_flush(u8 type, struct xfrm_audit *audit_info); | 1447 | int xfrm_policy_flush(u8 type, struct xfrm_audit *audit_info); |
1447 | u32 xfrm_get_acqseq(void); | 1448 | u32 xfrm_get_acqseq(void); |
1448 | extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); | 1449 | extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); |
1449 | struct xfrm_state * xfrm_find_acq(u8 mode, u32 reqid, u8 proto, | 1450 | struct xfrm_state * xfrm_find_acq(struct net *net, u8 mode, u32 reqid, u8 proto, |
1450 | xfrm_address_t *daddr, xfrm_address_t *saddr, | 1451 | xfrm_address_t *daddr, xfrm_address_t *saddr, |
1451 | int create, unsigned short family); | 1452 | int create, unsigned short family); |
1452 | extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); | 1453 | extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); |