Re: [RTnet-developers] multicast support
Brought to you by:
bet-frogger,
kiszka
|
From: Amine El h. <am...@an...> - 2005-06-14 13:29:59
|
Hi jan; > What about rt_ip_route_output()? Doesn't it exactly do what you need? It > fills a dest_route structure which then contains a pointer to the output > rtdev. Take a look at rt_udp_sendmsg() for a usage example. That's ok, rt_ip_route_output() give a pointer to the output rtdev , but only in the case when we add the multicast adress to route table : # rtroute add 239.0.0.2 01:00:5e:00:00:01 dev rteth0 , that work well, But in the case of multicat, we can calculate the mac address from the IP address without using routing table. So i have added a conditions test before the call of the "rt_ip_route_output()" in udp_sendmsg function if the dist address is multicast i calculate the mac adresse and i locate the rtdev by the local address (saddr). So nowday Im able to recive and send mulicast packets with rtnet .Im testing it now and i will send you a first realise of my patch soon. PS : i have only enabled the multicast support for the two NICs ,8139too et e100. Amine > Hi Amine, > > sorry for the late reply. > > >>What are you actually planning? Likely there is a different way to > >>achieve it > > > > TO send an IGMP request to join a multicast goup ,the only information i > > had is the rt_socket ,and i need to send directly the igmp packet without > > passing by the ip level , that mean to use directly the xmit_start > > function ,to use it i need rtnet_device pointer. you see the problem i > > had ? > > So I have resolved the problem by adding a new function in "rtdev.c", its > > role is to get rtnet_device by local_ip adress.it work well. The only > > constrain that we must specify the local ip adress when using multicast. > > > Jan > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput a projector? How fast can you ride your desk chair down the office > luge track? If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > RTnet-developers mailing list > RTn...@li... > https://lists.sourceforge.net/lists/listinfo/rtnet-developers |