Frederik Bayart wrote:
Hallo,Is it possible to run 2 processes opening an AF_PACKET socket to listen on the same device for the same protocol (but to another sender) ? I'm trying to run a process based on the raw-socket example but rt_dev_recvmsg returns -110 if I start a second process.
Right now, RTnet is not prepared to handle multiple listeners, basically because RTnet lacks a resource accounting mechanism for for shared input buffers. The same issue applies to UDP ports as well.
There is one exception: one ETH_P_ALL listener can be registered in parallel to other users. Resource accounting is then realized by duplicating (copying) the packets for this listener.
One can imagine approaches to overcome this limitation, but so far the need for them was simply not urgent enough.
Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ RTnet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-users

