This is the output: anto...@debian:~/iptables/jni$ ls Android.mk extensions ip6tables.8.in ip6tables-save. 8 iptables.c iptables-save.8 iptables.xslt NOTICE CleanSpec.mk include ip6tables.c ip6tables- save.c iptables-multi.c iptables-save.c libipq Rules.make COMMIT_NOTES INCOMPATIBILITIES ip6tables-restore.8 ip6tables- standalone.c iptables-restore.8 iptables-standalone.c libiptc COPYING INSTALL ip6tables-restore.c iptables. 8.in iptables-restore.c iptables-xml.c MODULE_LICENSE_GPL anto...@debian:~/iptables/jni$ ~/android-ndk-r4b/./ndk-build Compile thumb : iptables <= /home/antonio/iptables/jni/iptables.c Compile thumb : iptables <= /home/antonio/iptables/jni/iptables- standalone.c Compile thumb : iptc <= /home/antonio/iptables/jni/libiptc/libip4tc.c StaticLibrary : libiptc.a Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_ah.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_addrtype.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_comment.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_2connmark.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_conntrack.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_2dscp.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_2ecn.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_esp.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_hashlimit.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_helper.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_icmp.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_iprange.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_length.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_limit.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_mac.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_multiport.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_owner.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_physdev.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_pkttype.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_policy.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_realm.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_sctp.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_standard.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_state.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_tcp.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_2tcpmss.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_2tos.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_2ttl.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_udp.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_unclean.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_CLASSIFY.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_CONNMARK.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_DNAT.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_LOG.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_MASQUERADE.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_MIRROR.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_NETMAP.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_NFQUEUE.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_NOTRACK.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_REDIRECT.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_REJECT.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_SAME.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_SNAT.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ libipt_ULOG.c Compile thumb : ext <= /home/antonio/iptables/jni/extensions/ initext.c make: *** No rule to make target `/home/antonio/iptables/obj/local/ armeabi/libc.a', needed by `/home/antonio/iptables/obj/local/armeabi/ libext.a'. Stop.
On 21 Ott, 10:27, Antonio Conforti <[email protected]> wrote: > My goldfish kernel hasn't iptables inside. I try to make new kernel by > make menuconfig , but nothing. > I have to compile my iptables and then load this program. > I try to create a file gen_initext.c but i get another error. > > Thanks > > On 20 Ott, 17:18, Hamilton Vera <[email protected]> wrote: > > > Iptables is just a front end to manipulate netfilter rules. > > > You can enable netfilter in the kernel > > > │ > > > │ > > │ Symbol: NETFILTER [=y] > > > │ > > │ Prompt: Network packet filtering framework (Netfilter) > > > │ > > │ Defined at net/Kconfig:69 > > > │ > > │ Depends on: NET > > > │ > > │ Location: > > > │ > > │ -> Networking support (NET [=y]) > > > │ > > │ -> Networking options > > > │ > > │ > > > Android uses Android.mk files instead of Makefile, but the compilation > > process itself is the same. In my environment the iptables binary is > > built under /system/bin/iptables, check in you FS for this file. > > > []'s > > > Hamilton Vera > > > On Wed, Oct 20, 2010 at 12:08 PM, Antonio Conforti <[email protected]> > > 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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: [email protected] > > > website:http://groups.google.com/group/android-kernel > > > -- > > Hamilton Vera > > int Administrator (char Network[],char > > ComputationalSystems[])http://hvera.wordpress.com -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
