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 |
|
fbernon
|
da4df1f414
|
Fix DNS client TTL processing.
|
2007-11-18 21:30:45 +00:00 |
|
fbernon
|
7f0640b040
|
Minor changes on DNS.
|
2007-11-18 21:04:53 +00:00 |
|
fbernon
|
8c0e6de00a
|
fix DNS problem with pbuf chain.
|
2007-11-18 20:54:44 +00:00 |
|
fbernon
|
8ff1194b6a
|
Changes on DNS client. Add multiples dns servers support.
|
2007-11-18 20:30:12 +00:00 |
|
fbernon
|
4e398e2aa9
|
Minor changes on DNS client. Coding style & add "response" checking
|
2007-11-18 15:51:34 +00:00 |
|
fbernon
|
92401faa72
|
Minor changes on DNS client. Note that "compressed answers are fixed".
|
2007-11-18 15:01:45 +00:00 |
|
fbernon
|
edc46281a4
|
Minor changes on DNS client.
|
2007-11-18 14:19:27 +00:00 |
|
goldsimon
|
7e447c83fb
|
Turned all hostname variables and parameters into (const char*)
|
2007-11-16 17:08:03 +00:00 |
|
fbernon
|
0c0e8d6544
|
opt.h, init.c, tcpip.c, dhcp.c, dns.h, dns.c: add DNS client for simple name requests with RAW api interface. Initialization is done in lwip_init() with build time options. DNS timer is added in tcpip_thread context. DHCP can set DNS server ip addresses when options are received. You need to set LWIP_DNS=1 in your lwipopts.h file (LWIP_DNS=0 in opt.h). DNS_DEBUG can be set to get some traces with LWIP_DEBUGF. Sanity check have been added. There is a "todo" list with points to improve.
|
2007-11-14 23:27:13 +00:00 |
|