On Thu, Oct 21, 2010 at 6:11 PM, Shibu Baby wrote:
> Hi All,
>
> From my virtual tty device, I am pushing data to the TTY layer as
> follows
>
> static int vs_rx_data(u8 *buf, int size, struct dev_info *dev)
> {
What kernel version are you using?
Care to post your whole tty driver?
And also,
Hi All,
>From my virtual tty device, I am pushing data to the TTY layer as
follows
static int vs_rx_data(u8 *buf, int size, struct dev_info *dev)
{
int ret_val = 0;
LOG_INFO("In vs_rx_data \n");
if(dev->vs_dev.tty == NULL)
{
LOG_ERR("tty is null!!\n");
return 0;
Find one of the many online guides to writing a simple linux device
driver.
-or-
Find a driver that has similar structure to one you are interested in
working on and copy and rename it, adapting to fulfill your function
instead of the original. Typically this will involve a few .c and
perhaps .h
Hi there, so... to enable netfilter
cd
make menuconfig
[*] Networking support --->
Networking options --->
[*] Network packet filtering framework (Netfilter) --->
And mark what you need and save the configuration
Finally compile it with make.
I
ok. In my kernel source there are folder you have told me. Now what I
have to do?
I remember to you that I have downloaded my kernel in the follow mode:
git clone git://android.git.kernel.org/kernel/common.git kernel-common
cd kernel-common
git checkout origin/android-goldfish-2.6.29
then I have
First you have to focus on netfilter (kernel) then you focus on
compiling iptables.
Netfilter is standard in mainline kernel, please check it again, look
for something like;
./include/net/netfilter
./include/linux/netfilter
./net/ipv4/netfilter
./net/bridge/netfilter
./net/netfilter
./net/decnet
This is the output:
anto...@debian:~/iptables/jni$ ls
Android.mkextensions ip6tables.8.in ip6tables-save.
8iptables.c iptables-save.8
iptables.xslt NOTICE
CleanSpec.mk includeip6tables.c ip6tables-
save.ciptables-multi.cipt