You are missing gen_initext.c file, something like this: extern void ipt_ah_init(void); extern void ipt_addrtype_init(void); extern void ipt_comment_init(void); extern void ipt_2connmark_init(void); extern void ipt_conntrack_init(void); extern void ipt_2dscp_init(void); extern void ipt_2ecn_init(void); extern void ipt_esp_init(void); extern void ipt_hashlimit_init(void); extern void ipt_helper_init(void); extern void ipt_icmp_init(void); extern void ipt_iprange_init(void); extern void ipt_length_init(void); extern void ipt_limit_init(void); extern void ipt_mac_init(void); extern void ipt_multiport_init(void); extern void ipt_owner_init(void); extern void ipt_physdev_init(void); extern void ipt_pkttype_init(void); extern void ipt_policy_init(void); extern void ipt_realm_init(void); extern void ipt_sctp_init(void); extern void ipt_standard_init(void); extern void ipt_state_init(void); extern void ipt_tcp_init(void); extern void ipt_2tcpmss_init(void); extern void ipt_2tos_init(void); extern void ipt_2ttl_init(void); extern void ipt_udp_init(void); extern void ipt_unclean_init(void); extern void ipt_CLASSIFY_init(void); extern void ipt_CONNMARK_init(void); extern void ipt_DNAT_init(void); extern void ipt_LOG_init(void); extern void ipt_MASQUERADE_init(void); extern void ipt_MIRROR_init(void); extern void ipt_NETMAP_init(void); extern void ipt_NFQUEUE_init(void); extern void ipt_NOTRACK_init(void); extern void ipt_REDIRECT_init(void); extern void ipt_REJECT_init(void); extern void ipt_SAME_init(void); extern void ipt_SNAT_init(void); extern void ipt_ULOG_init(void); void init_extensions(void) { ipt_ah_init(); ipt_addrtype_init(); ipt_comment_init(); ipt_2connmark_init(); ipt_conntrack_init(); ipt_2dscp_init(); ipt_2ecn_init(); ipt_esp_init(); ipt_hashlimit_init(); ipt_helper_init(); ipt_icmp_init(); ipt_iprange_init(); ipt_length_init(); ipt_limit_init(); ipt_mac_init(); ipt_multiport_init(); ipt_owner_init(); ipt_physdev_init(); ipt_pkttype_init(); ipt_policy_init(); ipt_realm_init(); ipt_sctp_init(); ipt_standard_init(); ipt_state_init(); ipt_tcp_init(); ipt_2tcpmss_init(); ipt_2tos_init(); ipt_2ttl_init(); ipt_udp_init(); ipt_unclean_init(); ipt_CLASSIFY_init(); ipt_CONNMARK_init(); ipt_DNAT_init(); ipt_LOG_init(); ipt_MASQUERADE_init(); ipt_MIRROR_init(); ipt_NETMAP_init(); ipt_NFQUEUE_init(); ipt_NOTRACK_init(); ipt_REDIRECT_init(); ipt_REJECT_init(); ipt_SAME_init(); ipt_SNAT_init(); ipt_ULOG_init(); }
On Wed, Oct 20, 2010 at 1:12 PM, Antonio Conforti <cox1...@gmail.com> wrote: > I have download android-NDK and I have compile my iptables by this > command: > ./ndk-build in the folder of iptables where there is the file > Android.mk. > Now I get an error: extensions/initext.c:1:25: error: gen_initext.c: > No such file or directory > > what does it mean? > Antonio Conforti > > > On 20 Ott, 16:08, Antonio Conforti <cox1...@gmail.com> wrote: >> How I Have to write my Makefile? In the folder of iptables source >> there is a file called Android.mk and other files. >> How can I compile my source? I need more detail >> Thanks >> Antonio Conforti >> >> On 19 Ott, 19:26, Brad Davis <bda...@cove-mtn.com> wrote: >> >> > If you have the Android kernel tree from "git" you can use the "make >> > menuconfig" command to set the kernel compile-time parameters >> > (including netfilter and iptables). Android uses a slightly modified >> > Unix file tree structure where /system is prepended to the standard >> > Unix tree structure. Most of the userspace C/C++ programs are in / >> > system/{bin,lib,xbin}. (While there is /system/usr, there is not a >> > system/usr/{bin,sbin}). >> >> > Your userspace executables should be built like the other userspace >> > executables (they can be dynamically linked against the libraries in >> > the build tree). >> >> > Your executables should probably go in /system/bin, libraries in / >> > system/lib. These directories are protected from writing by normal >> > Android applications. >> >> > On Oct 18, 1:08 pm, cox85 <cox1...@gmail.com> wrote: >> >> > > Thanks Brad. I am doing the thesis on Android kernel. >> > > I have already created a Netfilter module for Linux Kernel, but in >> > > Android is a little more complex. >> > > I have downloaded iptables source from android kernel source, but how >> > > can i compile it? >> > > I have to create only a Makefile?And I have to compile with static >> > > mode? >> > > Where I have to put my userspace program iptables? >> >> > > On Oct 16, 5:02 am, Brad Davis <bda...@cove-mtn.com> wrote: >> >> > > > In the kernel you need to enable Netfilter and all the IP Tables stuff >> > > > under that (you should look at the configuration of a kernel that >> > > > supports iptables). Then you need to port the userspace program >> > > > iptables (including the libraries that aren't part of Android). >> >> > > > If you don't know what you are doing, you should practice first on a >> > > > standard Linux distribution where you have the full support of the OS >> > > > to debug your hacks. Android isn't made to learn kernel hacking on. >> >> > > > On Oct 15, 4:59 am, cox85 <cox1...@gmail.com> wrote: >> >> > > > > Thanks for the answer. But my kernel still not support iptables. I >> > > > > have recompiled the kernel, with, command make menuconfig, adding >> >> > > > > general setup->"kernel-> user space relay support (formerly relayfs) >> > > > > " >> >> > > > > What I have to modify to enable iptables? >> >> > > > > On 13 Ott, 18:49, Brad Davis <bda...@cove-mtn.com> wrote: >> >> > > > > > Android is (simply) a Linux kernel, some (not all) modified BSD >> > > > > > userspace, and the Android Java system. If you want Linux >> > > > > > userspace >> > > > > > you will need to add Linux userspace programs to your build. >> >> > > > > > On Oct 12, 11:17 am, cox85 <cox1...@gmail.com> wrote: >> >> > > > > > > I want to create a netfilter kernel module and I am new in >> > > > > > > android >> > > > > > > world. >> > > > > > > I have downloaded android kernel and I have make my own kernel, >> > > > > > > but I >> > > > > > > can't found in ADB shell iptables command. >> > > > > > > I use android goldfish because i have only the emulator >> > > > > > > What I have to do to enabling iptables command? >> > > > > > > Antonio Conforti- Hide quoted text - >> >> > > > - Show quoted text - > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel -- Hamilton Vera int Administrator (char Network[],char ComputationalSystems[]) http://hvera.wordpress.com -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel