Jorge Almeida wrote: > Jan, > [Even /me is sometimes busy - not with answering mails. ;)]
>
> 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?
It's a union, so you could also address the MAC as plain bytes this way.
>
>
> 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?
mac.raw?
>
>
> 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 don't invent something new. Try to follow the existing
interfaces, maybe only skipping (yet) unneeded features.
Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ RTnet-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-developers

