Commit Graph
15 Commits
Author SHA1 Message Date
Gregory Nutt b901f08d90 Trivial changes from review of last PR. 2018-02-26 11:48:57 -06:00
Dmitriy Linikov 39ef04353c Merged in hardlulz/modem-3.0-nuttx/fix-parsing-dns-response (pull request #605)
Fixed parsing of DNS response packets having compressed names ending with pointer.

There were troubles parsing response packets which have compression of
QNAME/NAME field when only trailing part of the name (not the whole name)
is replaced with pointer to another part of the packet.
This commit fixes parsing of such packets.

Also I added checks to keep parsing only in bounds of the read part
of DNS response packet.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-02-26 17:43:37 +00:00
Gregory Nutt a00d8e16a1 Adds OS internal function nx_write() which is functionally equivalent to write() except that it does not set the errno variable and do not cause cancellation points. 2017-10-11 10:18:30 -06:00
Gregory Nutt af072d52bc Adds OS internal functions nx_send(), ns_recv(), and nx_recvfrom() which are functionally equivalent to send(), recv(), and recvfrom() except that they do not set the errno variable and do not cause cancellation points. 2017-10-11 09:25:43 -06:00
Ritjaina 3e3729d35f netdb: Fixed buffer size used for sending DNS queries should depend on the configured DNS name size. 2017-06-23 06:30:33 -06:00
Gregory Nutt 0de294a586 Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they. 2017-05-11 13:35:56 -06:00
Ritajina eab139a539 libc/netdb: in dns_query_callback, ret != -EADDRNOTAVAIL condition consumes error returns including EAGAIN in this case, dns query retransmission doesn't work 2017-04-12 06:41:08 -06:00
Gregory Nutt 4f97f15b5e graphics/, libc/: Change some err() ERRORS to warn() WARNINGS or info() 2016-06-12 11:11:57 -06:00
Gregory Nutt a1469a3e95 Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err() 2016-06-11 15:50:49 -06:00
Gregory Nutt fc3540cffe Replace all occurrences of vdbg with vinfo 2016-06-11 11:59:51 -06:00
Gregory Nutt 5ef3e3e215 Replace confusing references to uIP with just 'the network' 2016-05-30 11:52:07 -06:00
Gregory Nutt 6af9b23df5 libc/netdb: Fix some compile issues when IPv6 is enabled 2016-02-25 13:59:42 -06:00
Gregory Nutt 300d34f029 netdb: resolv.conf logic is functional 2016-01-14 15:12:42 -06:00
Gregory Nutt 1a8531c951 netdb: Extend dns_query so that it can handle multiple nameserver addresses 2016-01-14 14:18:19 -06:00
Gregory Nutt 9097425203 netdb: Separate lib_dnsclient.c into lib_dnsbind.c and lib_dnsquery.c 2016-01-14 10:30:47 -06:00