aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/xfrm.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-25 20:34:20 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 20:34:20 -0500
commit8d1211a6aaea43ea36151c17b0193eb763ff2d7e (patch)
tree8e58601a897ec0e2afb3b2b1df695560b0d76ed4 /include/net/xfrm.h
parent33ffbbd52c327225a3e28485c39dc5746d81be03 (diff)
netns xfrm: finding policy in netns
Add netns parameter to xfrm_policy_bysel_ctx(), xfrm_policy_byidx(). 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 766cc71e96d4..ec2b7a9b3aa9 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1439,11 +1439,11 @@ extern int xfrm_policy_walk(struct xfrm_policy_walk *walk,
1439 int (*func)(struct xfrm_policy *, int, int, void*), void *); 1439 int (*func)(struct xfrm_policy *, int, int, void*), void *);
1440extern void xfrm_policy_walk_done(struct xfrm_policy_walk *walk); 1440extern void xfrm_policy_walk_done(struct xfrm_policy_walk *walk);
1441int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl); 1441int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl);
1442struct xfrm_policy *xfrm_policy_bysel_ctx(u8 type, int dir, 1442struct xfrm_policy *xfrm_policy_bysel_ctx(struct net *net, u8 type, int dir,
1443 struct xfrm_selector *sel, 1443 struct xfrm_selector *sel,
1444 struct xfrm_sec_ctx *ctx, int delete, 1444 struct xfrm_sec_ctx *ctx, int delete,
1445 int *err); 1445 int *err);
1446struct xfrm_policy *xfrm_policy_byid(u8, int dir, u32 id, int delete, int *err); 1446struct xfrm_policy *xfrm_policy_byid(struct net *net, u8, int dir, u32 id, int delete, int *err);
1447int xfrm_policy_flush(struct net *net, u8 type, struct xfrm_audit *audit_info); 1447int xfrm_policy_flush(struct net *net, u8 type, struct xfrm_audit *audit_info);
1448u32 xfrm_get_acqseq(void); 1448u32 xfrm_get_acqseq(void);
1449extern 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);