lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query


From: Jens Nielsen
Subject: Re: [lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query
Date: Tue, 10 Apr 2018 19:17:45 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi

Antonio, didn't you already figure out a couple of mails back that the problem is that your stack is too small so you get a stack overflow in mdns_readname? The recursive function has a max depth check so you shouldn't be in an infinite recursive loop.

BR /Jens

On 2018-04-10 14:14, antonio wrote:
Hi Erik,

I am using a simulation like environment, and since I am using a loopback
interface,  and I am unable to see TX/RX packets through wireshark  on the
*loopback_if *127.0.0.1.

However, I added my own hack functionality
*err_t mdns_resolve(const char* hostname, ip_addr_t *addr,
dns_found_callback fn_callback, void *cb_arg)*{
  gethostbyname(hostname, addr,.....);
}
is able to correctly resolve my own hostname and also neighbor devices.  To
do so, I added an additional function do DNS
to help me resolve my own hostname.
*err_t dns_add_mdns_entry(const char* hostname, const ip_addr_t *addr, u8_t
dns_addrtype)*

So after validating my hostname with MDNS, i.e, after conflict-free
PROBING+ANNOUNCING, I call  dns_add_mdns_entry, which adds my own entry to
the LWIP DNS TABLE.










--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

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




reply via email to

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