]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/flow.h
netns xfrm: lookup in netns
[net-next-2.6.git] / include / net / flow.h
index b45a5e4fcadd83545fb48b5b9a9daec347811f71..809970b7dfee71670ac9a8c1bf753923a96a264e 100644 (file)
@@ -84,12 +84,13 @@ struct flowi {
 #define FLOW_DIR_OUT   1
 #define FLOW_DIR_FWD   2
 
+struct net;
 struct sock;
-typedef int (*flow_resolve_t)(struct flowi *key, u16 family, u8 dir,
-                              void **objp, atomic_t **obj_refp);
+typedef int (*flow_resolve_t)(struct net *net, struct flowi *key, u16 family,
+                             u8 dir, void **objp, atomic_t **obj_refp);
 
-extern void *flow_cache_lookup(struct flowi *key, u16 family, u8 dir,
-                              flow_resolve_t resolver);
+extern void *flow_cache_lookup(struct net *net, struct flowi *key, u16 family,
+                              u8 dir, flow_resolve_t resolver);
 extern void flow_cache_flush(void);
 extern atomic_t flow_cache_genid;