aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-25 20:31:51 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 20:31:51 -0500
commit5447c5e401c49aba0c36bb1066f2d25b152553b7 (patch)
tree5a5b4e0736368a70a266bd04075d174310aa5f80 /include/net/xfrm.h
parent12604d8aaa38ac4e24299c9803fefdb301a16421 (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.h7
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);
1318extern struct xfrm_state * xfrm_stateonly_find(xfrm_address_t *daddr, 1318extern 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
1364extern struct xfrm_state *xfrm_find_acq_byseq(u32 seq); 1365extern struct xfrm_state *xfrm_find_acq_byseq(struct net *net, u32 seq);
1365extern int xfrm_state_delete(struct xfrm_state *x); 1366extern int xfrm_state_delete(struct xfrm_state *x);
1366extern int xfrm_state_flush(struct net *net, u8 proto, struct xfrm_audit *audit_info); 1367extern int xfrm_state_flush(struct net *net, u8 proto, struct xfrm_audit *audit_info);
1367extern void xfrm_sad_getinfo(struct xfrmk_sadinfo *si); 1368extern 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);
1446int xfrm_policy_flush(u8 type, struct xfrm_audit *audit_info); 1447int xfrm_policy_flush(u8 type, struct xfrm_audit *audit_info);
1447u32 xfrm_get_acqseq(void); 1448u32 xfrm_get_acqseq(void);
1448extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi); 1449extern int xfrm_alloc_spi(struct xfrm_state *x, u32 minspi, u32 maxspi);
1449struct xfrm_state * xfrm_find_acq(u8 mode, u32 reqid, u8 proto, 1450struct 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);
1452extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); 1453extern int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol);