Hi,
I'm writing an application using rtnet 0.9.3 and vulcano CVS (using LXRT) that should send and receive raw ethernet frames from multiple NICs. I've followed the raw-packet Xenomai example to understand how to open the raw socket and how to use it. All works flawlessly when I open a single socket and send/receive frames from the single interface bound to the socket. But if I try to open an additional socket (with the intention of binding it to a second NIC), then the rt_dev_socket() call fails returning -EADDRNOTAVAIL (-99).
The exact call that fails is identical to the first, successful, one:

ret = rt_dev_socket(AF_PACKET, SOCK_DGRAM, htons(PROTOCOL));

Changing PROTOCOL in the second call doesn't help.
I wonder if rtnet allows to open only one raw socket at a time.
(I'm to using RTmac, or anything else, because I don't need the higher-level protocols).

Do you have any explanation or suggestion?

Thank you for your replies!

Cheers,
Marco

--
Marco Pantaleoni
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to