| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | skbuff structure pointers |
| From: | cranium 2003 <cranium.2003@xxxxxxxxx> |
| Date: | Sun, 30 Jan 2005 18:41:06 +0530 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=RUuvSOxAbPi0WSb/Y6t9hjC7ouhdePw+X+q4j7ExbC/TlU7vL6q/3SU3Nv6AtTilvR9ts+UHyt6Ik8Wean68vVwU68Agd0CvTU2AqfsAZwuKJ4Qy4a0RMwEvsgnuGnun2wU8TYSC8Oc1OQj3d5RJ5wTA8SzeFrE+tQk0RLLw8lA= |
| Reply-to: | cranium 2003 <cranium.2003@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | checksum calculation in ip packet forwarding, cranium 2003 |
|---|---|
| Next by Date: | Re: Memory leak in 2.6.11-rc1?, Russell King |
| Previous by Thread: | checksum calculation in ip packet forwarding, cranium 2003 |
| Next by Thread: | ip -6 route shows incorrect route expiry times, Russell King |
| Indexes: | [Date] [Thread] [Top] [All Lists] |