Hi Jan

I need to port a linux application that uses raw sockets 
(socket( PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));)
to a RTAI based aplication and for that i want to use RTnet.
My aplication uses the Sorce and Destination Address, and Protocol, to 
identify the several frames that are in the network, and only care about some 
of them. This application is to replace a very old system that uses an 
Ethernet Network, in the link layer. That why i need all the frame returned, 
and not only the paylod of each frame.

I've readed the thread in the development that you indicate me, and i 
understand that there are some dificulties implementing, not the SOCK_RAW but 
the ETH_P_ALL (correct me if i'm wrong!).

I'm available to spend some time trying to implement the ETH_P_ALL and the 
SOCKET_RAW features in Rtnet, if i have some help from you, especially 
regarding the protocol specificities and some other issues that might appear 
during the implementation phase.


Thanks and i'm waitting for a reply.



Em Terça, 22 de Agosto de 2006 22:47, o Jan Kiszka escreveu:
> 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
> 
> 

-- 
Jorge Almeida
[EMAIL PROTECTED]
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.

-------------------------------------------------------------------------
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

Reply via email to