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 found on the web that it return a struct protoent*.
struct protoent *getprotobyname(const char *name);
The protoent structure is defined in <netdb.h> as follows:
struct protoent {
char *p_name; /* official protocol name */
char **p_aliases; /* alias list */
int p_proto; /* protocol number */
}
The members of the protoent structure are:
p_name
-The official name of the protocol.
p_aliases
-A zero terminated list of alternative names for the protocol.
p_proto
-The protocol number.
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel