Commit Graph

59 Commits

Author SHA1 Message Date
Gregory Nutt
56e8f480f5 Remove dangling whitespace at the end of some lines. 2017-06-28 10:39:54 -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
ee7217be63 gethostbyname_r: Fix check for space in buffer. 2017-06-12 06:47:43 -06:00
Gregory Nutt
e6a8476382 Add some REVISIT comments. 2017-06-11 18:56:38 -06:00
Jim Paris
4504ca7c82 Whoops -- that #include <cxxabi.h> wasn't supposed to sneak in there. If present, it may already define a __cxxabiv1::__guard that we could use, but that file comes from libstdc++, and I don't think the NuttX buildroot-based toolchain would have that, which is why we need libxx in the first place. 2017-06-09 07:40:31 -06:00
Masayuki Ishikawa
6ccc01ad46 netdb: Fix bugs in lib_gethostbynamer.c
This fix sets h_name in struct hostent returned by gethostbyname()

Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-25 10:59:10 +09:00
Masayuki Ishikawa
2b028bc4e5 netdb: Fix time info in lib_dnscache.c
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-23 16:02:41 +09: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
1b6630ee75 6loWPAN: Fix compile errors and warnings when building the complete 6loWPAN configuration. 2017-04-02 17:46:22 -06:00
Gregory Nutt
67feda60b2 libc/Kconfig: Use menus vs. comments to better organize the C library menus 2017-02-10 10:04:56 -06:00
Gregory Nutt
de1b68dc4e libc/Kconfig: Break big Kconfig up into separate Kconfig files in each libc subdirectory. 2017-02-10 09:32:55 -06:00
Gregory Nutt
43eb04bb8f Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info(). 2016-06-20 11:59:15 -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
9008308b64 Remove some block comments before empty code sections 2016-04-11 18:16:04 -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
2a5c7e9a92 resolv.conf: Add support for OpenBSD style resolv.conf syntax where a non-standard DNS server port can be specified using a backet syntax. 2016-01-14 17:55:53 -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
Gregory Nutt
62f04d98c1 netdb: Move DNS initialization and cache logic to separate files 2016-01-14 10:17:15 -06:00
Gregory Nutt
0889963b50 resolv.conf: Fix some basic compilation issues. Logic still not complete. 2016-01-14 08:32:20 -06:00
Gregory Nutt
a7acb45ca6 Add logic misssing from dns_add_server 2016-01-13 16:29:50 -06:00
Gregory Nutt
b112d8fddc DNS: A little more resolv.conf logic. Still not complete. 2016-01-13 16:02:23 -06:00
Gregory Nutt
8e9f884eb7 Step 1 in /etc/resolv.conf support 2016-01-13 15:06:44 -06:00
Gregory Nutt
1608b7c33f Some networking logic was used helpers from apps/netutils. Not good. Quick fix is to duplicate logic 2016-01-09 15:56:08 -06:00
Gregory Nutt
b682190f52 Rename all head files in main NuttX repository with names like *internal.h, removing the internal 2015-12-29 17:31:17 -06:00
Gregory Nutt
e9bd8bceb4 nuttx/libc: Fix some spacing and alignment issues 2015-10-12 07:45:02 -06:00
Gregory Nutt
0b12dbf95d Fix some spacing problems 2015-10-04 15:04:00 -06:00
OrbitalFox
381c587770 Fix typo but should be buf. From OrbitalFox 2015-09-03 07:35:32 -06:00
Gregory Nutt
6158086dd4 Update some comments 2015-08-24 15:41:45 -06:00
Gregory Nutt
933d74e5c1 Networking: With these changes, I can ping the local loopback device from the simulator 2015-08-24 13:49:12 -06:00
Gregory Nutt
0b012c7978 Fix some initial loop back device compilation errors; mark configuration as EXPERIMENTAL 2015-08-24 11:29:54 -06:00
Gregory Nutt
07bdff9ef7 Networking: Add NetDB support for the local loopback device 2015-08-24 10:08:26 -06:00
Pavel Pisa
23035ca68d [PATCH] gethostbyname(): correct returned address format when DNS is used. The hostent.h_addr_list should point to raw in_addr or in6_addr as defined in the standard. Original implementation used that
for numeric addresses but for DNS lookup returned pointer to whole sockaddr_in or sockaddr_in6.

getaddrinfo() should be preferred in a long term perspective. Return of complete addresses from the lookup would be better in such case but it requires significant changes anyway - multiple addresses support and most probably dynamic memory allocation which is bad for many RT applications. So gethostbyname() is sufficient for most applications now.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2015-08-21 18:33:03 -06:00
Librae
dce921c1cd Check if DNS server has been initialized before trying to lookup the server address in the cache. From Librae 2015-07-27 14:16:45 -06:00
Gregory Nutt
ab37a759d8 Eliminate a warning detected by nuttx/tools/testbuild.sh 2015-07-22 14:11:25 -06:00
Gregory Nutt
ccd3ec0f52 STM32 F7 Ethernet: Add logic to align all DMA memory to the D-Cache line size 2015-07-19 16:35:25 -06:00
Gregory Nutt
8b9cafe70a Another FIX for gethostbyname if CONFIG_NETDB_DNSCLIENT is not defined 2015-07-19 14:45:34 -06:00
Gregory Nutt
a314561474 STM32F746G-DISCO: Getting closer to a build 2015-07-17 11:47:16 -06:00
Sebastien Lorquet
b5016f3a7f gethostbyname() and gethostbyname_r() should be built even if there is no host file support. From Sebastien Lorquet 2015-07-17 09:43:28 -06:00
Sebastien Lorquet
4eec7041fc Move definition of h_errno from lib_parsehostfile.c to lib_netdb. h_errno should still be defined even if there is no host file support. From Sebastien Lorquet. 2015-07-17 09:39:45 -06:00
Gregory Nutt
2a2e9fa56a gethostbyname_r: Fix test of return value from inet_pton(). Zero does not mean success 2015-07-17 08:24:21 -06:00
Gregory Nutt
95424d9ef3 NETDB: Add support for caching DNS name resultion mappings 2015-07-13 10:41:32 -06:00
Gregory Nutt
fcaac468b1 NETDB: Make sure that we have a valid DNS server address before attempting DNS queuries; Provide an optional default DNS server address in the configuration 2015-07-13 08:19:31 -06:00
Gregory Nutt
9a6cf5724e DNS: Finish off low-level DNS IPv6 request processing. Untested on initial commit 2015-07-12 16:23:08 -06:00
Gregory Nutt
835878b003 This completes all interface level support for IPv6 DNS. Still some missing logic at the lowest protocol levels 2015-07-12 13:45:52 -06:00