Jorge Almeida wrote: > OPS Sorry :) > > There it goes :) > > > JAN, > > In attach goes the patches for the SOCKET_RAW and ETH_P_ALL functionalities > for RTnet. > The only thing that was not done was the configurable option for the > ETH_P_ALL. >
Thanks, will have a look at them later. > > After some tests in the same computer, with two different cards, i find > something interesting that i need to talk with you (or anybody that that > wants to participate in the discution). Both NICs attached to the same network? > I have two small test programs, one for sending, and another one to receive > the message. In both there's one socket opened with the ETH_P_ALL feature. > Making two different filedescriptors in the same machine. > After i send the message it is sended for both sockets (REmenber that we are > in the same machine), but i only read from one. > This means, after some time the queue for the opened socket used to write > only (not read) will fill. > Wath is the behaviour for this problem? Buffers for TX and RX are taken from the same pool. Thus, once incoming unhandled packets consumed all of them, TX will fail. > > This queue should fill and start to give errors when no more memory is > available? > Or we should not send the message to one sockt thas is only writing? How can > we know if the socket is only writting? > Or we can set a maximum value to the queued message in one determined queue? > (I think this is the best option) Simple solution: if you have a send-only socket, don't open it with ETH_P_ALL. Use some arbitrary unused protocol instead. This also helps to reduce the system load due to unnecessary packet delivery via costly cloning. 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

