patch-2.4.20 linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack_helper.h
Next file: linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack_irc.h
Previous file: linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack_ftp.h
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/linux/netfilter_ipv4/ip_conntrack_helper.h
- Orig date:
Mon Dec 11 13:31:23 2000
diff -urN linux-2.4.19/include/linux/netfilter_ipv4/ip_conntrack_helper.h linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack_helper.h
@@ -5,10 +5,19 @@
struct module;
+/* Reuse expectation when max_expected reached */
+#define IP_CT_HELPER_F_REUSE_EXPECT 0x01
+
struct ip_conntrack_helper
{
- /* Internal use. */
- struct list_head list;
+ struct list_head list; /* Internal use. */
+
+ const char *name; /* name of the module */
+ unsigned char flags; /* Flags (see above) */
+ struct module *me; /* pointer to self */
+ unsigned int max_expected; /* Maximum number of concurrent
+ * expected connections */
+ unsigned int timeout; /* timeout for expecteds */
/* Mask of things we will help (compared against server response) */
struct ip_conntrack_tuple tuple;
@@ -24,11 +33,13 @@
extern int ip_conntrack_helper_register(struct ip_conntrack_helper *);
extern void ip_conntrack_helper_unregister(struct ip_conntrack_helper *);
-/* Add an expected connection: can only have one per connection */
+extern struct ip_conntrack_helper *ip_ct_find_helper(const struct ip_conntrack_tuple *tuple);
+
+/* Add an expected connection: can have more than one per connection */
extern int ip_conntrack_expect_related(struct ip_conntrack *related_to,
- const struct ip_conntrack_tuple *tuple,
- const struct ip_conntrack_tuple *mask,
- int (*expectfn)(struct ip_conntrack *));
-extern void ip_conntrack_unexpect_related(struct ip_conntrack *related_to);
+ struct ip_conntrack_expect *exp);
+extern int ip_conntrack_change_expect(struct ip_conntrack_expect *expect,
+ struct ip_conntrack_tuple *newtuple);
+extern void ip_conntrack_unexpect_related(struct ip_conntrack_expect *exp);
#endif /*_IP_CONNTRACK_HELPER_H*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)