[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: skbuff
--- Lisa & Eric Malkowski <malk@charter.net> wrote:
> A good place to start is in Alessandro Rubini's book
> Linux Device
> Drivers
i will do that
> Paul Russell's book on the kernel API has some nice
> descriptions about
i did that already
>
> Then consider taking a look at some of the simpler
> network device
> drivers. i.e. the loopback device, dummy device. I
> also found the
> tunneling network drivers like ip/ip helped to
> understand the
> manipulation of skbuffs. These are in
> /usr/src/linux/drivers/net and
> /usr/src/linux/net/ipv4 respectively.
i will do that too..
but let me get my problem straight.
i got a module that registers itself and gets a skbuff
pointer. The problem is when a packet arrives and i
try to parse through the data between skb->data and
skb->tail pointers, and i get...im not kidding...whole
of the ASCII in ascending order.
now, i have a doubt weather just copying data between
skb->data and skb->tail pointers gives me a copy of
the packet raw data.
am i correct or have i got it all wrong?
thanx for the help,
Mohan S
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/
- References:
- Re: skbuff
- From: Lisa & Eric Malkowski <malk@charter.net>