Marcelo Coelho wrote:
>> 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.

Err, sockaddr_ll and UDP socket? That doesn't really match, does it?

UDP sockets are not aware of the underlying network device, they only
know IP addresses and ports (sockaddr_in). If you want to find out where
the packet arrived, check the sender's IP address and match it with the
current routing setup.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

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