lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE : [lwip-users] Multi-cast UDP messages?


From: Robert Morse
Subject: Re: RE : [lwip-users] Multi-cast UDP messages?
Date: Mon, 14 May 2007 17:03:04 -0400

Hi,
After fixing a issue with a library, that was doing a disable_preemption, when sending out Multi-cast UDP packets, I finally have Multi-Cast UDP packets at least getting to the TCP thread. But still have a problem where they are not getting out on the network. (I use the standard lwip_sendto()).

Turning on UDP debugging I am seeing the following:

        udp_connect: connected to 239.192.254.60 port 2222
        udp_send
        udp_send: No route to [239.192.254.60]  // It just displays the long.

Now, my units IP address is 89.89.200.201 with a netmask of 255.0.0.0, So yes the 239 address is not in my network. Looking where it is trying to figure out the correct netif to use, it does just compare the IP Addresses against the netmask for a match. I do not even see where it would take into an account a gateway, to
route the packet through, (Though that might be at a higher level??)

I do see that it looks like multi-cast input is supported (Though I don't know how much),
along with IGMP. I cannot figure out how to do the Multi-cast output.

Any help on where to look, or any other suggestions.

Thanks
        Robert


On May 11, 2007, at 10:33 AM, Robert Morse wrote:

Ya,
        That what I would of thought.
I get no other messages after the lwip_sendto(). I am looking at if something is wrong with the mailbox going to the TCP thread, as that is all that I can see it should be doing is posting a message after that log. I have traced to never returning from netconn_connect(..).

Thanks, at least I know that the stack supports it so I will keep looking.

Robert

On May 11, 2007, at 10:24 AM, Frédéric BERNON wrote:

Hi,

I know that even before 1.1.0, we could send UDP on multicast address (when I start with lwIP, that was one of first tests I did). From memory, nothing was necessary to patch. Recv multicast was a little bit difficult (because IGMP wasn't available), but if you get last CVS release, IGMP is now supported.

Can you add some traces after :

lwip_sendto(2, data=007A977E, size=22, flags=0x0 to=239.192.26.32 port=2222

Before netconn_connect, and before lwip_send, to see where the stack hang ?


====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement



-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Robert Morse
Envoyé : vendredi 11 mai 2007 15:52
À : Mailing list for lwIP users
Objet : [lwip-users] Multi-cast UDP messages?


Hi,
I am trying to get version 1.2 of the lwip stack going, and while I am having no problems with Webservers, an normal upd traffice. But I have the need to send multi-cast UDP packets and running into the whole stack locking up, and causing a reboot.

        My question, is does the stack support sending out Multi-cast UDP
packets.
I see comments in the code about receiving, and I would think sending
would
be easier.

        I have attached a detailed log starting where the lwip gets the
lwip_sendto
call.  I have every debug item turned on except a few dealing with ppp
and slip.

        The strange part is after the lwip_sendto(...)
        I never see a tcpip_thread: API message
        then a udp_connect: connected message.



<Frédéric BERNON.vcf>_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]