[NETFILTER]: nf_conntrack: introduce expectation classes and policies
[linux-2.6-block.git] / net / netfilter / nf_conntrack_helper.c
index b1fd21cc1dbc2e613ea15e6813bb550bcc6ce7cb..e350f56d43c976a699b72cc1e36f3b49abfa9788 100644 (file)
@@ -110,7 +110,8 @@ int nf_conntrack_helper_register(struct nf_conntrack_helper *me)
 {
        unsigned int h = helper_hash(&me->tuple);
 
-       BUG_ON(me->timeout == 0);
+       BUG_ON(me->expect_policy == NULL);
+       BUG_ON(me->expect_class_max >= NF_CT_MAX_EXPECT_CLASSES);
 
        mutex_lock(&nf_ct_helper_mutex);
        hlist_add_head_rcu(&me->hnode, &nf_ct_helper_hash[h]);