[XPERIA X8 Original Android Development] der_mart:
hi doixanh,

i'm trying to build the netfilter module(s).

I downloaded your source and merged it with the 2.1.A.0.435 source released by se (x10_x10mini_X10minipro_x8_eclair_2.1.A.0.435.tar.gz).

So far it compiles all the modules with no error but running your insmodnet script some of the modules cannot be insmodded.

There are a lot of unknown symbol errors.

dmesg output:

<4>[ 6207.229542] x8netfilter: initializing netfilter
<4>[ 6207.229748] x8netfilter: locating function
<4>[ 6207.229793] x8netfilter: getting offsets
<4>[ 6207.759061] x8netfilter: hijacking calls
<4>[ 6207.799038] x8netfilter: patching done.
<4>[ 6207.853850] xt_NFLOG: Unknown symbol nfulnl_log_packet
<4>[ 6207.904893] xt_connbytes: Unknown symbol nf_ct_l3proto_module_put
<4>[ 6207.906425] xt_connbytes: Unknown symbol nf_ct_l3proto_try_module_get
<4>[ 6207.925148] xt_connlimit: Unknown symbol nf_ct_l3proto_module_put
<4>[ 6207.927648] xt_connlimit: Unknown symbol __nf_conntrack_find
<4>[ 6207.928186] xt_connlimit: Unknown symbol nf_ct_l3proto_try_module_get
<4>[ 6207.928703] xt_connlimit: Unknown symbol nf_ct_get_tuplepr
<4>[ 6207.936368] xt_conntrack: Unknown symbol nf_conntrack_untracked
<4>[ 6207.937458] xt_conntrack: Unknown symbol nf_ct_l3proto_module_put
<4>[ 6207.938694] xt_conntrack: Unknown symbol nf_ct_l3proto_try_module_get
<4>[ 6208.142838] xt_string: Unknown symbol textsearch_destroy
<4>[ 6208.144438] xt_string: Unknown symbol textsearch_prepare
<6>[ 6208.168159] xt_time: kernel timezone is +0200
<4>[ 6208.193483] x8netfilter: init and registering afinfo
<4>[ 6208.269875] nf_conntrack version 0.5.0 (3440 buckets, 13760 max)
<4>[ 6208.270567] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
<4>[ 6208.277705] nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
<4>[ 6208.285569] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
<4>[ 6208.319996] nf_conntrack_ipv4: Unknown symbol nf_defrag_ipv4_enable
<4>[ 6208.390145] nf_nat: Unknown symbol nf_nat_seq_adjust_hook
<4>[ 6208.399385] nf_nat: Unknown symbol need_ipv4_conntrack
<4>[ 6208.408895] nf_nat_ftp: Unknown symbol nf_nat_follow_master
<4>[ 6208.410738] nf_nat_ftp: Unknown symbol nf_nat_mangle_tcp_packet
<4>[ 6208.424636] nf_nat_irc: Unknown symbol nf_nat_follow_master
<4>[ 6208.426921] nf_nat_irc: Unknown symbol nf_nat_mangle_tcp_packet
<4>[ 6208.451661] nf_nat_tftp: Unknown symbol nf_nat_follow_master
<6>[ 6208.466245] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
<6>[ 6208.467589] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
<4>[ 6208.488670] Netfilter messages via NETLINK v0.30.
<6>[ 6208.536578] ip_tables: (C) 2000-2006 Netfilter Core Team
<4>[ 6208.562107] ipt_MASQUERADE: Unknown symbol nf_nat_setup_info
<4>[ 6208.573389] ipt_NETMAP: Unknown symbol nf_nat_setup_info
<4>[ 6208.585424] ipt_REDIRECT: Unknown symbol nf_nat_setup_info

can you help me out whats wrong here?

EDIT:

Managed to resolve missing symbols by changing insmod order in insmodnet.

All those xt_ modules need to be loaded after nf_, nf_defrag_ipv4.ko needs to be loaded before nf_conntrack.ko. Added insmod of iptable_nat.ko at the end.

Now i got all modules except xt_string loaded, but as soon as i access inet (load some page in browser) i got kernel panic at ip_route_output_flow.