Jorge Almeida wrote: > Hello to all. > > Can anyone tell me if there is a way of getting all the ethernet frame in the > same buffer, using a raw socket? > > I have a similar example of the raw packets, but in user space and i'm trying > to get all the frame information in the same buffer, like in linux mode. For > that i need a buffer with the following structure: > > Destination Address | Source Address | protocol | data > 6 bytes 6 bytes 2 bytes message bytes > (46 to MTU) > > RTnet is able of given us this kind of information in the same buffer or i > need to build the buffer from the diferent structures used? If not, how can i > receive frames intended for a multicast address? Or a broadcast frame?
These are two topic: first, RTnet provides "cooked" access to Ethernet frames via the packet socket interface (SOCK_DGRAM, see also "man packet"), raw mode is not yet supported (SOCK_RAW). Second, broadcast frames can be received and detected just like unicast, multicast frames only if you switch your NIC to promisc mode. There were some multicast support patches floating around a longer time ago (driver support only for 8139 IIRC), but they were unfortunately lacking the final revision round, thus were never applied. See the mailing list archives on this. Regarding the various ways to access frames, there was also recently an ARCNET-related thread on rtnet-developers: http://sourceforge.net/mailarchive/forum.php?thread_id=25489884&forum_id=42765 (BTW, Chris, any news on this?) In the end it all depends on what kind of traffic you want to receive. RTnet is not yet able to handle every pattern smoothly or even at all, often because of its strict resource accounting. Can you elaborate on your scenario? 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-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users