[NETFILTER]: nf_conntrack: introduce expectation classes and policies
[deliverable/linux.git] / include / net / netfilter / nf_conntrack.h
index 90b3e7f5df5fdf5fd34cb7469bc45a6957ae98c4..9228771335984dff49ffc4c96d18df937ea756ad 100644 (file)
@@ -75,6 +75,9 @@ do {                                                                  \
 
 struct nf_conntrack_helper;
 
+/* Must be kept in sync with the classes defined by helpers */
+#define NF_CT_MAX_EXPECT_CLASSES       1
+
 /* nf_conn feature for connections that have a helper */
 struct nf_conn_help {
        /* Helper. if any */
@@ -85,7 +88,7 @@ struct nf_conn_help {
        struct hlist_head expectations;
 
        /* Current number of expected connections */
-       unsigned int expecting;
+       u8 expecting[NF_CT_MAX_EXPECT_CLASSES];
 };
 
 
This page took 0.025955 seconds and 5 git commands to generate.