* Making changes to 3c90X.c
@ 2001-03-05 19:44 Marcus Ramos
0 siblings, 0 replies; only message in thread
From: Marcus Ramos @ 2001-03-05 19:44 UTC (permalink / raw)
To: linux-kernel
Hello,
I am developing an application for which I need to make small changes to
the source code of 3c90x.c (3com ethernet driver). Indeed, I need to
access - and modify - the contents of the packets right before they are
sent on the wire. After examining sk_buff.h, function NICSendPacket of
3c90x.c and reading chapter 14 (Network Drivers) of the book Linux
Device Drivers, I concluded that SocketBuffer->data points to the first
octet of data in the packet.
My question is: can I access the contents of the buffer simply by
*(SocketBuffer->data)
*(SocketBuffer->data+1)
*(SocketBuffer->data+2) etc ?
What is the layout of the octets starting at data ? Eth header, IP
header, TCP header etc ,or ?
Can I write new contents back to the buffer the same way ?
Thanks in advance,
Marcus.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-05 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-05 19:44 Making changes to 3c90X.c Marcus Ramos
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.