[android-kernel] NF_QUEUE

2010-12-04 Thread Antonio Conforti
I have tried to use this command of iptables on android emulator from adb shell: "iptables -I INPUT -j QUEUE" But my shell hungs. Where is the problem? If i try to put the protocol by option -p tcp I get error FIXME getprotobyname(). anyone knows how to implement getprotobyname() function? I fo

[android-kernel] Re: Load new netfilter module (TARGET)

2010-11-29 Thread Antonio Conforti
rce destination Chain OUTPUT (policy ACCEPT 599 packets, 31860 bytes) pkts bytes target prot opt in out source destination On 29 Nov, 16:04, Antonio Conforti wrote: > Because I have to create a separate table. > However I managed to run my module. > now everything seems to wo

[android-kernel] Re: Load new netfilter module (TARGET)

2010-11-29 Thread Antonio Conforti
e? > > On Nov 28, 9:48 am, Antonio Conforti wrote: > > > > > After compile my iptables i try to insert my simple netfilter target. > > All goes right, but when i try to start my module iptables says : > > > # iptables -I INPUT -j HELLO > > iptables: Inval

[android-kernel] Load new netfilter module (TARGET)

2010-11-28 Thread Antonio Conforti
After compile my iptables i try to insert my simple netfilter target. All goes right, but when i try to start my module iptables says : # iptables -I INPUT -j HELLO iptables: Invalid argument I have insert libipt_HELLO.c into /iptables/extensions and recompiled iptables(I have also modified Andro

Re: [android-kernel] Re: iptables

2010-11-26 Thread Antonio Conforti
ically. > Just make sure that all necessary modules are insmodded in the right > order. > > On Nov 25, 4:22 pm, Antonio Conforti wrote: > > I still have the same error ... I do not understand one thing: when I > > download into a folder and there is a file Android.mk, how do I

[android-kernel] Re: iptables

2010-11-25 Thread Antonio Conforti
ts were > > dropping the ADB packets as well! > > Must use it carefully :) > > > Cheers, > > Earlence > > > On Nov 9, 2:16 pm, Antonio Conforti wrote: > >> Thanks for you quickly answer...but did you download your source using > >> re

[android-kernel] Re: iptables

2010-11-09 Thread Antonio Conforti
ly when I try to reject all packets that were > > sent out. > > eg: iptables -A OUTPUT -j DROP > > also hangs. > > Any idea why? > > > Cheers, > > Earlence > > > On Nov 9, 10:29 am, Antonio Conforti wrote: > > > > I h

[android-kernel] Re: iptables

2010-11-09 Thread Antonio Conforti
gt; used. > My guess is that its a simple conversion from a protocol name to an > internal number used to identify the protocol. Again, just > speculation, but worth checking out. > > Cheers, > Earlence > > On Nov 8, 3:42 pm, Antonio Conforti wrote: > > > >

[android-kernel] Re: iptables

2010-11-08 Thread Antonio Conforti
Good work Earlence. I got your same problem. I have tried to compile kernel with CONFIG_NETFILTER_XT_MATCH_OWNER, but didn't happen nothing. I get this error: FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378 this is the command: # iptables -A INPUT -p tcp --dport 80 -j ACCEPT FIX

[android-kernel] Re: How to build a customized 2.6.32 kernel for Android 2.2 emulator

2010-10-29 Thread Antonio Conforti
that the emulator was offline. > > So I think there is some problem with my customized 2.6.32 kernel, and > it is incompatible with the emulator which originally runs the > goldfish 2.6.29 kernel. > > Any suggestions on getting 2.6.32 kernel running on emulator? > > Thanks! &

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-28 Thread Antonio Conforti
e iptables via NDK-build, I had to create a folder "jni" and move into it all the files of iptables. Is this procedure correct? On Oct 26, 9:22 pm, Antonio Conforti wrote: > I change permission of /system from ro to rw as follow: > ./adb shell > #su > #mount or #cat /proc

[android-kernel] Re: How to build a customized 2.6.32 kernel for Android 2.2 emulator

2010-10-27 Thread Antonio Conforti
If you want to use adb shell first you have to start server for adb as follow: ./adb start-server The you can start shell : ./adb shell PS. First to execute "adb shell" you have already started the emulator On Oct 26, 7:56 pm, Yudong wrote: > I used: > > emulator -avd Android2.2avd -kernel /p

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-26 Thread Antonio Conforti
t; Hamilton Vera > > > > On Tue, Oct 26, 2010 at 7:40 AM, Antonio Conforti wrote: > > Thanks Brad and Hamilton for your answers. I have lunched iptables. > > But I have other doubts: > > I have compiled my iptables source obtaining two folder(one called > > libs a

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-26 Thread Antonio Conforti
ill need to add Linux userspace programs to your build. > > > > > > On Oct 12, 11:17 am, cox85 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

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-22 Thread Antonio Conforti
r > ./net/ipv4/netfilter > ./net/bridge/netfilter > ./net/netfilter > ./net/decnet/netfilter > ./net/ipv6/netfilter > > > > On Thu, Oct 21, 2010 at 6:27 AM, Antonio Conforti wrote: > > My goldfish kernel hasn't iptables inside. I try to make new kernel

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-22 Thread Antonio Conforti
ni/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 Conf

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-21 Thread Antonio Conforti
droid 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,

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-20 Thread Antonio Conforti
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

[android-kernel] Re: Enabling NETFILTER and iptables command

2010-10-20 Thread Antonio Conforti
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 wrote: > If you have the Android kernel tree from "git" you can