Simon Goldschmidt
|
33237419c1
|
Parts of patch #8397 Typos corrected in comments and text outputs
|
2014-09-18 21:15:13 +02:00 |
|
Simon Goldschmidt
|
aa6f6bc3aa
|
patch #8480 Fix handling of dns_seqno wraparound
|
2014-09-17 22:52:58 +02:00 |
|
Simon Goldschmidt
|
56c6301089
|
dns.c: change dns_send/dns_recv to operate on pbuf, not on contiguous buffer -> dns_payload_buffer/DNS_MSG_SIZE can be removed
|
2014-09-16 19:33:20 +02:00 |
|
Simon Goldschmidt
|
9fb46e1206
|
added source port randomization to make the DNS client more robust (see bug #43144)
|
2014-09-15 21:50:41 +02:00 |
|
Simon Goldschmidt
|
8216303524
|
revert accidentally committed test code
|
2014-09-05 21:17:20 +02:00 |
|
Simon Goldschmidt
|
6c7357bbf9
|
DNS: minor coding style fix: pEntry -> entry
|
2014-09-05 21:15:50 +02:00 |
|
Simon Goldschmidt
|
a491aa0f6a
|
DNS: split request callback information from actual DNS table to be able to optimize memory usage for multiple parallel requests (and clean up the code a bit)
|
2014-09-05 21:11:57 +02:00 |
|
goldsimon
|
b0502d1f3b
|
added optional macros PACK_STRUCT_FLD_8() and PACK_STRUCT_FLD_S() to prevent gcc 4 from warning about struct members that do not need packing
|
2014-09-02 13:04:36 +02:00 |
|
Simon Goldschmidt
|
a5e06ed5b7
|
fixed bug #42987 lwIP is vulnerable to DNS cache poisoning due to non-randomized TXIDs
|
2014-08-31 20:29:56 +02:00 |
|
Simon Goldschmidt
|
1efd1ee6ac
|
fixed bug #37705 Possible memory corruption in DNS query
|
2013-01-14 18:04:04 +01:00 |
|
Simon Goldschmidt
|
d12600fba0
|
fixed bug #37705 Possible memory corruption in DNS query
|
2013-01-14 18:03:23 +01:00 |
|
goldsimon
|
556a2126b5
|
Fixed bug #36899 DNS TTL 0 is cached for a long time
|
2012-08-13 21:32:44 +02:00 |
|
goldsimon
|
fa092c47c8
|
Fixed bug #31701: Error return value from dns_gethostbyname() does not match documentation: return ERR_ARG instead of ERR_VAL if not initialized or wrong argument.
|
2010-11-20 16:40:35 +00:00 |
|
goldsimon
|
3833dd86aa
|
Added LWIP_DEBUGF warning if dns_send returns an error
|
2010-05-17 12:29:31 +00:00 |
|
goldsimon
|
dae247809b
|
Add preprocessor-macros for compile-time htonl calculation (and use them throughout the stack where applicable)
|
2010-05-16 15:57:42 +00:00 |
|
goldsimon
|
03bd61c799
|
DNS_LOCAL_HOSTLIST_IS_DYNAMIC uses its own MEMP pool instead of the heap
|
2010-05-16 13:36:51 +00:00 |
|
goldsimon
|
a54bb7205d
|
Added missing casts, use strlen + MEMCPY instead of strcpy (as that might overrun the buffer)
|
2010-03-16 15:14:14 +00:00 |
|
goldsimon
|
68678e21df
|
Fixed compilation for DNS_LOCAL_HOSTLIST==1 and DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1 (bug #28968)
|
2010-02-22 08:36:23 +00:00 |
|
goldsimon
|
b73dcfb8cf
|
task #10140: Remove DNS_USES_STATIC_BUF (keep the implementation of DNS_USES_STATIC_BUF==1)
|
2010-02-21 12:15:01 +00:00 |
|
goldsimon
|
8908055b63
|
Revert my last changes and remove structure packing from struct dns_query and struct dns_answer since they are only used with SMEMCPY
|
2010-02-14 14:02:05 +00:00 |
|
goldsimon
|
10abe8aba2
|
Use pointers instead of using SMEMCPY
|
2010-02-14 12:51:53 +00:00 |
|
goldsimon
|
7b24a6360c
|
Minor speedups: use ip_addr_copy, use SMEMCPY, use htonX on constants instead of variables
|
2010-02-14 12:43:24 +00:00 |
|
goldsimon
|
7c28c66d32
|
Don't use C++ reserved keyword 'class'
|
2010-02-13 14:51:46 +00:00 |
|
goldsimon
|
6af20340dd
|
Minor: Fixed indentation after changing struct ip_addr to ip_addr_t
|
2010-02-09 11:38:59 +00:00 |
|
goldsimon
|
f74cebcbcd
|
Minot: Fixed comments and code style
|
2010-02-08 16:53:47 +00:00 |
|
goldsimon
|
5d360a6711
|
Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier.
|
2010-02-04 18:47:44 +00:00 |
|
goldsimon
|
a23b446ddf
|
Use macros defined in ip_addr.h (some of them new) to work with IP addresses (preparation for bug #27352 - Change ip_addr from struct to typedef (u32_t) - and better code).
|
2010-02-04 17:21:32 +00:00 |
|
goldsimon
|
9ff7d29696
|
Fixed compiler warnings when MEM_SIZE < 64000
|
2010-02-02 20:14:05 +00:00 |
|
goldsimon
|
5fa0347e64
|
Cleanly separate the portability file inet.h and its contents from the stack: moved htonX- functions to def.h (and the new def.c - they are not ipv4 dependent), let inet.h depend on ip_addr.h and not the other way round. This fixes bug #28732.
|
2010-01-29 08:20:32 +00:00 |
|
goldsimon
|
dbcce3a4be
|
bug #26523: Compiler Warnings
|
2010-01-23 17:48:36 +00:00 |
|
goldsimon
|
39717b2d9d
|
Copy hostname for DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1 since string passed to dns_local_addhost() might be volatile
|
2010-01-08 14:42:09 +00:00 |
|
goldsimon
|
8bf57c0e14
|
Fixed bug #26657: DNS, if host name is "localhost", result is error.
|
2009-08-23 13:51:12 +00:00 |
|
goldsimon
|
6d4064799a
|
Corrected structure packing
|
2009-05-20 18:33:45 +00:00 |
|
goldsimon
|
c752e5731c
|
Worked on dns: local host-list can be put into FLASH (by defining storage target/linker section), external function can be defined for lookup, combined dns_local_removehostname/removehostaddr to dns_local_removehost
|
2009-05-07 15:27:02 +00:00 |
|
goldsimon
|
c3f7107e2b
|
Fixed some issues with DNS_LOCAL_HOSTLIST
|
2009-04-23 16:54:30 +00:00 |
|
goldsimon
|
51e02176da
|
task #7507, patch #6786: DNS supports static hosts table. New configuration options DNS_LOCAL_HOSTLIST and DNS_LOCAL_HOSTLIST_IS_DYNAMIC.
|
2009-04-21 18:35:18 +00:00 |
|
jifl
|
ba98bcdc60
|
* dns.c: Hard-code structure sizes, to avoid issues on some compilers where
padding is included.
|
2008-10-02 13:53:16 +00:00 |
|
fbernon
|
7b11fb75d9
|
Minor changes: replace directy call to memcpy by MEMCPY macro.
|
2008-01-26 16:11:39 +00:00 |
|
fbernon
|
e937521014
|
dns.c: Fix bug #22108 "DNS problem" caused by unaligned structures.
|
2008-01-25 13:12:12 +00:00 |
|
fbernon
|
9c4daa312d
|
Minor changes in lwip folder: fix some warnings, coding style, and rename "internal" netconn_alloc function.
|
2008-01-04 23:07:44 +00:00 |
|
fbernon
|
2b54da5070
|
api_msg.c, err.h, err.c, sockets.c, dns.c, dns.h: replace "enum dns_result" by err_t type. Add a new err_t code "ERR_INPROGRESS".
|
2007-12-13 23:06:49 +00:00 |
|
fbernon
|
4653974c2a
|
Minor change: move DNS_MSG_SIZE in opt.h, add comments.
|
2007-12-12 19:22:20 +00:00 |
|
fbernon
|
de11e7fd75
|
dns.h, dns.c, opt.h: move DNS options to the "right" place. Most visibles are the ones which have ram usage.
|
2007-12-12 17:56:03 +00:00 |
|
fbernon
|
dde6ddfd7c
|
process "localhost" name in dns_gethostbyname
|
2007-12-02 17:15:28 +00:00 |
|
fbernon
|
2942157ca4
|
Minor changes: dnsserver initialization with DNS_SERVER_ADDRESS in dns_init
|
2007-11-30 16:40:46 +00:00 |
|
goldsimon
|
92aa004b75
|
connect the UDP pcb to the DNS server (IPaddress and port) to receive faster (unconnected pcbs are very inefficient in udp_input)
|
2007-11-30 12:46:30 +00:00 |
|
fbernon
|
3d9c76a69c
|
Minor change (doxygen tags)
|
2007-11-24 22:13:25 +00:00 |
|
fbernon
|
c31b405af6
|
Minor changes in DNS client.
|
2007-11-20 21:37:04 +00:00 |
|
goldsimon
|
b3c52f574a
|
Added function documentation to dns.c, removed function documentation from dns.h (functions should be documented where they are implemented!), dns_table_entry doesn't have to be packed (slower, bigger code for most machines), converted dns_init to return void, dns_table is implicitly initialized to zero, dns_lookup can be static, dns_send returns correct error values, added some asserts, compacted dns_recv using some (ugly) gotos, compacted dns_gethostbyname by combining the same return value
|
2007-11-20 20:28:01 +00:00 |
|
fbernon
|
f58515b51e
|
api_msg.c, dns.h, dns.c: Implement DNS_DOES_NAME_CHECK option (check if name received match the name query), implement DNS_USES_STATIC_BUF (the place where copy dns payload to parse the response), return an error if there is no place for a new query, and fix some minor problems.
|
2007-11-19 22:42:01 +00:00 |
|