Hi,

>                        /* save information important for NAT in
>                                ct->help.ct_foo_info;   */
>                                ~~~~~~~~~~~~~~~~~~~~here!!
> 
> but in ip_conntrack.help,there is no member ct_foo_info in union help.

The "foo" was an _example_, of course it is not in the real codebase.
It stands for a data structure that is defined anew for each helper.

> how can I do? Fill in ct->nat.info?

Define your own helper specific 'struct ct_XXX_info', and put that into
the definition of the ct->help union type (found somewhere under
include/linux/netfilter_ipv4/ - grep is your friend, as always)

best regards
  Patrick

Reply via email to