This is the output:

anto...@debian:~/android-sdk-linux_x86/tools$ ./adb -s emulator-5554
shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
anto...@debian:~/android-sdk-linux_x86/tools$ ./adb -s emulator-5554
push ~/iptables/libs/armeabi/iptables /system/bin
502 KB/s (153744 bytes in 0.298s)
anto...@debian:~/android-sdk-linux_x86/tools$ ./adb shell
# iptables
iptables v1.3.7: no command specified
Try `iptables -h' or 'iptables --help' for more information.
# cd data
# insmod xt_HELLO.ko
# lsmod
xt_HELLO 1524 0 - Live 0xbf000000
# iptables -I INPUT -j HELLO
# iptables -L -v
Chain INPUT (policy ACCEPT 661 packets, 188K bytes)
 pkts bytes target     prot opt in     out     source
destination
   62  3239 HELLO      0    --  any    any     anywhere
anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source
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 <cox1...@gmail.com> wrote:
> Because I have to create a separate table.
> However I managed to run my module.
> now everything seems to work.
>
> On Nov 28, 11:07 am, Earlence <earlencefe...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I believe that you can achieve the same effect by building a custom
> > chain for an existing table.
> > why have you built a separate table?
>
> > On Nov 28, 9:48 am, Antonio Conforti <cox1...@gmail.com> 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: Invalid argument
>
> > > I have insert libipt_HELLO.c into /iptables/extensions and recompiled
> > > iptables(I have also modified Android.mk to add the module HELLO) and
> > > recompiled it, then i compiled xt_HELLO.c and i have obtained
> > > xt_HELLO.ko.
> > > I push iptables command into /system/bin and I have insmodded
> > > xt_HELLO.ko.
>
> > > This is my 
> > > libipt_HELLO.chttps://docs.google.com/leaf?id=0B5fuqkGT9Av2Y2E1MjFlNTQtZDI5ZC00MTM3...
>
> > > this is 
> > > xt_HELLO.chttps://docs.google.com/leaf?id=0B5fuqkGT9Av2ZGEyMmEwYjYtMDNjNi00NTM0...
>
> > > and finally the 
> > > makefilehttps://docs.google.com/leaf?id=0B5fuqkGT9Av2ZDBkYzY2ZjQtZjMwZi00ZTEx...
>
> > > What is wrong?- Hide quoted text -
>
> > - Show quoted text -

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to