lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] DNS with latest GIT version


From: Sandra Gilge
Subject: [lwip-users] DNS with latest GIT version
Date: Fri, 1 Jul 2016 12:56:21 +0200

Hallo,

 

I updated from lwip v1.4.1 to the latest GIT version.

 

Now I have a problem with DNS in line 791:

    err = udp_sendto(dns_pcbs[pcb_idx], p, &dns_servers[entry->server_idx], DNS_SERVER_PORT);

 

the problem is, that pcb_idx equals DNS_MAX_SOURCE_PORTS. This value is set in dns_call_found()

 

    if (dns_table[idx].pcb_idx < DNS_MAX_SOURCE_PORTS) {

    /* if we come here, the pcb is not used any more and can be removed */

    udp_remove(dns_pcbs[dns_table[idx].pcb_idx]);

    dns_pcbs[dns_table[idx].pcb_idx] = NULL;

    dns_table[idx].pcb_idx = DNS_MAX_SOURCE_PORTS;

 

Best regards,

Sandra


reply via email to

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