> Possible solutions: leave that context before socket(), set > rtskb_cache_size on rtnet.ko loading, or already open the raw socket > during application startup in non-RT context.
Creating the socket in soft_real_time solved that situation, but now i have a different problem with the UDP socket. The application should respond by the same ethernet interface it receive the request. For that I use the value of struct sockaddr_ll.sll_ifindex But the value I get from that field is 335544330. I'm reading from an UDP socket. Is this a known issue, a bug or something i'm doing wrong? Thank you for your help! Marcelo Seg, 2007-01-15 às 18:11 +0100, Jan Kiszka escreveu: > Marcelo Coelho wrote: > > Hi! > > > > > > I'm developing an application that uses rtai-3.4 (closure version) and > > rtnet 0.9.8 (I've also tested rtnet 0.9.8), that uses two sockets of > > different type: first, when the application is started, an UDP socket is > > opened. Then, when a request of a certain type is received, an RAW > > socket is opened just to send a reply. > > > > When my application tries to open the RAW socket, I get an error: > > "RTnet: rtskb allocation from real-time cache failed." > > > > The error number that my application gets when opening the RAW socket is > > -12 ("Out of memory"). > > > > > > Can't I open two sockets of different type in the same application? > > You can. > > > Where can I change the memory allocation size? > > > > That memory for socket creation comes from the real-time skb cache (see > README.pools) - which is empty by default. RTnet tries to use this pool > instead of plain Linux allocations likely because you create the socket > in hard-RT context. > > Possible solutions: leave that context before socket(), set > rtskb_cache_size on rtnet.ko loading, or already open the raw socket > during application startup in non-RT context. > > Jan > > ------------------------------------------------------------------------- > 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 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 without errors 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. ------------------------------------------------------------------------- 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