babzog
August 6th, 2010, 09:40 PM
We have existing iptables (works on 2.6.20) code such as:
static int __init init(void)
{
int ret;
/* Register table */
ret = ipt_register_table(&packet_manipulator, &initial_table.repl);
When compiled on Ubuntu LL, it complains that:
expected ‘struct net *’ but argument is of type ‘struct xt_table *’
Looks like ipt_register_table was updated from two to three parameters at some point along the way.
Question... We obviously didn't need a 'struct net*' parameter before, so what do I need to pass in now?
static int __init init(void)
{
int ret;
/* Register table */
ret = ipt_register_table(&packet_manipulator, &initial_table.repl);
When compiled on Ubuntu LL, it complains that:
expected ‘struct net *’ but argument is of type ‘struct xt_table *’
Looks like ipt_register_table was updated from two to three parameters at some point along the way.
Question... We obviously didn't need a 'struct net*' parameter before, so what do I need to pass in now?