PDA

View Full Version : IPTables/Xtables/New Netfilter



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?

babzog
August 9th, 2010, 01:51 PM
Any ideas?