[RTnet-developers] Socket RAW
Brought to you by:
bet-frogger,
kiszka
|
From: Jorge A. <j-a...@cr...> - 2006-08-23 15:26:55
|
Jan,
I've looked in the af_packet.c file and i arrive to some conclusions for the RAW packet implementation, but i have some doubts regardind the rtskb struct.
Especialy in:
rtsckb.h - line 194
/* link layer */
union
{
struct ethhdr *ethernet;
unsigned char *raw;
} mac;
i know that "struct ethhdr *ethernet; " keeps the source and destination mac address of the frame, but wath values "unsigned char *raw;" can have?
And another question,
Does not existe any field in the rtskb struct that has all the Ethernet frame inside (Destination Address, Source Address, Protocol, Data)? In the driver everything is divided right?
One thing that i'm thinking is reconstruct a buffer with all this information and return it to the user. This way the user has all the Ethernet frame in user space and can do anything he wants.
Please Comment my ideias.
Thanks
--
Jorge Almeida
j-a...@cr...
DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software, SA.
|