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

2018-04-10 Thread Jens Nielsen
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,

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

2018-04-10 Thread antonio
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,

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

2018-04-09 Thread Erik Ekman
Can you record it with wireshark and send a pcap file? /Erik On 9 April 2018 at 10:20, antonio wrote: > HI Simon, > > Let me see if I can be clear. > > I have an application using loopback interface. The goal is to test mDNS > functions and observe queries and responses., > > a)

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

2018-04-09 Thread antonio
HI Simon, Let me see if I can be clear. I have an application using loopback interface. The goal is to test mDNS functions and observe queries and responses., a) My application first tries a DNS_RRTYPE_A query, and I get a response. here there is no problem. b) The problem happens whenever I

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

2018-04-06 Thread Simon Goldschmidt
antonio wrote: > The problem is the function that requires recursion (*mdns_readname*). The > error is related to */Stack Overflow/.. * So this is not related to threads? Then please describe the actual problem you see. I'm getting lost in all the other things you write... Simon

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

2018-04-05 Thread antonio
On 05.04.2018 16:24, antonio wrote: > I have a small application using MDNS, and I use the loopback interface. > At the beginning the Thread1 starts the MDNS process, Q: Wait, why are you talking about threads? You are using the callback API of lwIP, right? There should not be more than one

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

2018-04-05 Thread goldsi...@gmx.de
On 05.04.2018 16:24, antonio wrote: I have a small application using MDNS, and I use the loopback interface. At the beginning the Thread1 starts the MDNS process, Wait, why are you talking about threads? You are using the callback API of lwIP, right? There should not be more than one thread

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

2018-04-05 Thread antonio
Hi all, I have a small problem. I have a small application using MDNS, and I use the loopback interface. At the beginning the Thread1 starts the MDNS process, and I can see that it sends 3 probes and 2 responses. All these messages are correctly received also. After that I call Thread2 Is