* skbuff structure pointers
@ 2005-01-30 13:11 cranium 2003
0 siblings, 0 replies; only message in thread
From: cranium 2003 @ 2005-01-30 13:11 UTC (permalink / raw)
To: netdev
Hello,
By looking into skbuff.h it is clear that paket is stored in
skbuff structure which has
also many structures defined for each layer as union.
Can it be possible to retreive any structure by casting skb->data at
any stage once that struct is push to skbuff structure?
e.g. by looking in eth.c following statement tells it works but how???
struct ethhdr *eth = (struct ethhdr *)skb->data;
Also once a structure is assigned values/pushed it in skbuff structure
can it be possible to
change its values at any later stage?
e.g. in above ethernet case does it possible to change eth->h_proto in
ethernet driver file(8390.c)
regards,
cranium
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-30 13:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-30 13:11 skbuff structure pointers cranium 2003
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).