Re: searching tuples in conntrack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 2012-10-07 07:51, Miguel Alejandro González wrote:
>
>I'm having some problems creating a function like count_them and the hash
>table it uses. My module is a target extension and connlimit is a match
>extension.

And why would that be a problem?

>So correct me if I'm wrong... basically connlimit creates the hash table
>with struct xt_connlimit_info *info = par->matchinfo as a parameter, but I
>don't have such info because i'm making a target extension...

par->targinfo is the block of parameters received from userspace
for targets.

>How can I initialize the hash table like in connlimit_mt_check() if I don't
>work with const struct xt_mtchk_param *par?

    →   info->data = kmalloc(sizeof(myprivatestuff), GFP_KERNEL);     

Note how this does not have much to do with matchinfo.
It's simply an assignment.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux