AOSP = android open source project.
I built a complete release version. all packages included (for HTC
sapphire)

I think you should refer to this:
http://www.linuxquestions.org/questions/linux-kernel-70/kernel-iptables-problem-520723/

Also, use the make menuconfig option when building the kernel. See if
you have missed anything there.

The iptables user space command was not compiled separately.

Also, I would take a look at stubs.c and see where getprotobyname is
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 <[email protected]> wrote:
> 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 ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378
> # iptables -L
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination
> FIX ME! implement getprotobynumber() bionic/libc/bionic/stubs.c:384
> ACCEPT     tcp  --  anywhere             anywhere            tcp
> dpt:www
>
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination
>
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
> #
>
> Any suggestions?
> What is the full AOSP???
> do you have compiled your iptables out of the kernel?
>
> THANKS
>
> On 8 Nov, 09:08, Earlence <[email protected]> wrote:
>
> > HTC phone: I have not tried it yet.
> > As I said, I have used goldfish, which is the emulator.
>
> > On Nov 8, 9:07 am, Earlence <[email protected]> wrote:
>
> > > that option is needed if you want the owner match extension.
> > > to compile: google a bit! there are lots of good resources. you will
> > > find previous threads on this forum itself
>
> > > On Nov 7, 3:35 pm, billmeteor chen <[email protected]> wrote:
>
> > > > Is that need to compile the kernel?
>
> > > > How to do that by your steps?
>
> > > > Can I work it on the HTC phone?
>
> > > > On 11月6日, 下午7時12分, Earlence <[email protected]> wrote:
>
> > > > > correct.
> > > > > that option should be configured, along with other extensions you may
> > > > > need.
>
> > > > > Cheers,
> > > > > Earlence
>
> > > > > On Nov 6, 6:04 am, "[email protected]" <[email protected]>
> > > > > wrote:
>
> > > > > > Is that because the linux kernel was not compiled with
> > > > > > CONFIG_NETFILTER_XT_MATCH_OWNER option so that the netfilter cannot 
> > > > > > do
> > > > > > anything with OWNER option ?
>
> > > > > > Wilson
>
> > > > > > 2010/11/6 billmeteor chen <[email protected]>
>
> > > > > > > Can you tell me how to solve this problem?
>
> > > > > > > FIX ME! implement getprotobynumber() 
> > > > > > > bionic/libc/bionic/stubs.c:384
>
> > > > > > > I have the same problem like this.
>
> > > > > > > On 11月6日, 上午3時00分, Earlence <[email protected]> wrote:
> > > > > > > > I got it!
>
> > > > > > > > a crucial netfilter config was missing
>
> > > > > > > > CONFIG_NETFILTER_XT_MATCH_OWNER=m
>
> > > > > > > > Once that was in, everything worked like a charm!
>
> > > > > > > > Cheers,
> > > > > > > > Earlence
>
> > > > > > > > On Nov 4, 8:03 pm, Earlence <[email protected]> wrote:
>
> > > > > > > > > Hi,
>
> > > > > > > > > I modified the goldfish defconfig to allow netfilter support.
> > > > > > > > > I also built the full AOSP.
> > > > > > > > > The emulator boots with the new kernel and system image.
>
> > > > > > > > > when I run "iptables -L", I get a 2 entires (input, output, 
> > > > > > > > > forward)
> > > > > > > > > with no rules configured.
>
> > > > > > > > > So, the compilation was okay.
> > > > > > > > > when I run this:
>
> > > > > > > > > iptables -A OUTPUT -m owner --uid-owner 10001
>
> > > > > > > > > I get the message "No chain/target/match by that name"
> > > > > > > > > Why is this so?
>
> > > > > > > > > also, when I run something like:
> > > > > > > > > iptables -A INPUT -p tcp --dport 80 -j ACCEPT
>
> > > > > > > > > the output is:
> > > > > > > > > FIX ME! implement getprotobynumber() 
> > > > > > > > > bionic/libc/bionic/stubs.c:384
>
> > > > > > > > > but the rule gets added and iptables -L returns:
>
> > > > > > > > > Chain INPUT (policy ACCEPT)
> > > > > > > > > target     prot opt source               destination
> > > > > > > > > FIX ME! implement getprotobynumber() 
> > > > > > > > > bionic/libc/bionic/stubs.c:384
> > > > > > > > > ACCEPT     tcp  --  anywhere             anywhere            
> > > > > > > > > tcp
> > > > > > > > > dpt:www
>
> > > > > > > > > Chain FORWARD (policy ACCEPT)
> > > > > > > > > target     prot opt source               destination
>
> > > > > > > > > Chain OUTPUT (policy ACCEPT)
> > > > > > > > > target     prot opt source               destination
>
> > > > > > > > > Help me out with this!
>
> > > > > > > > > Cheers,
> > > > > > > > > Earlence- 隱藏被引用文字 -
>
> > > > > > > > - 顯示被引用文字 -
>
> > > > > > > --
> > > > > > > unsubscribe: 
> > > > > > > [email protected]<android-kernel%[email protected]>
> > > > > > > website:http://groups.google.com/group/android-kernel-隱藏被引用文字 -
>
> > > > > - 顯示被引用文字 -

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to