lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] mDNS


From: Louis Demers
Subject: Re: [lwip-users] mDNS
Date: Thu, 14 Dec 2017 14:55:24 -0500

Hi,


On Dec 13, 2017, at 16:48, Erik Ekman <address@hidden> wrote:

What do you mean it doesn't work?

Problem 1)

unless i add an arbritrary delay after initializing the netif, it does not work, no broadcast ever appears and it does not responds to computers searching for services. Other protocols are operational like telnet et http, so i know the netif is operational (although the connections are provoked from my computer, thereforem, always after a delay.

So it seems that i have to query some part of lwip to know if i can start configuring mDNS (the 3 calls  mdns_resp_init() ; mdns_resp_add_netif(); mdns_resp_add_service(); )

This is surprising behaviour to me which leads me to believe I'm doing something wrong.


Problem 2)

with a delay, mDNS does broadcast  (once ?)  and then, after TTL seconds, the service is no longer visible and the name lookup for the zynq.local no longer works. I tried to call mdns_resp_add_service() again (form my telnet shell) but that does not work either....


If the initial broadcast is lost because your link is not ready, that should not matter.

That is what I expected, the mDNS module should be rebroadcasting whenever other host are searching for services.

What client do you use? You have to query for the host/service and not just depend on broadcasts from the device.

I use 2 apps on OSX, a small menu le called LocalSites and an application called Bonjour Browser which queries every single services on an network. They both work very well with every single bonjour commercial devices we have on our network (printers, servers, bridges ...)

I'll keep investigating but any clues would be greatly appreciated.




On 8 December 2017 at 19:29, Louis Demers <address@hidden> wrote:
Hi,

I'm new to lwip(coming from uip) and total newbie about mDNS so bare with me.

       I'm trying to get mDNS to work on our microbes eval board (Zynq). I've successfully replaced lip 1.4.1 from xilinx with the latest lwip 2.0.3. Got basic things working (telnet and http). But can't get my head around mDNS.  I followed the instructions and got the following results

1) if i call the

netif_set_up(&netif);
// Delay needed
mdns_resp_init() ;
mdns_resp_add_netif(&netif, "zynq", 60);
mdns_resp_add_service(&netif, "Web", "_http", DNSSD_PROTO_TCP, 80, 60, srv_txt, NULL);

it practically never works. If i insert a delay after netif_set_up(&netif), then it works...

2) During development, i choose a short TTL (60 sec). My bug/problem is that after TTL seconds, the service is no longer visible. I thought i needed to re-add the service but that didn't work either....
Sniffing with wireshark, I only see the 3 packets coming out of the board,

1 after mdns_resp_add_netif()
2 after mdns_resp_add_service()


Thanks for any clue...



Louis Demers eng.
Co-Founder
Obzerv Technologies Inc.
400 blvd. Jean Lesage, suite 201
Quebec, QC, Canada
G1K 8W1
T: 418.524.3522
F: 418.524.6745
C: 418 953-6204



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

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



Louis Demers eng. 
Co-Founder
Obzerv Technologies Inc.
400 blvd. Jean Lesage, suite 201
Quebec, QC, Canada
G1K 8W1
T: 418.524.3522
F: 418.524.6745
C: 418 953-6204



reply via email to

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