1420 Commits (c93cfb2c74eef8765e65566c63ebb8241f2191ae)
 

Author SHA1 Message Date
goldsimon 9a524dac86 Adopted lwip_gethostbyname and lwip_gethostbyname_r to the new return values of dns_gethostbyname/netconn_gethostbyname 19 years ago
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 19 years ago
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. 19 years ago
fbernon da4df1f414 Fix DNS client TTL processing. 19 years ago
fbernon 7f0640b040 Minor changes on DNS. 19 years ago
fbernon 8c0e6de00a fix DNS problem with pbuf chain. 19 years ago
fbernon 8ff1194b6a Changes on DNS client. Add multiples dns servers support. 19 years ago
goldsimon 9dd4ad6c1f Added thread-safe function gethostbyname_r (as in glibc) 19 years ago
fbernon 4e398e2aa9 Minor changes on DNS client. Coding style & add "response" checking 19 years ago
fbernon 92401faa72 Minor changes on DNS client. Note that "compressed answers are fixed". 19 years ago
fbernon edc46281a4 Minor changes on DNS client. 19 years ago
goldsimon 6c8b3e3b58 Deleted old inet.c/inet6.c files 19 years ago
goldsimon 1faf0ab9e3 Moved inet files into ipv4/ipv6 directory; splitted inet.c/inet.h into inet and chksum part; changed includes in all lwIP files as appropriate 19 years ago
goldsimon e6ec23d7cc Added sequential (socket API) function gethostbyname and the struct hostent it uses 19 years ago
goldsimon e2cd201f6a Added sequential dns resolver function for netconn api (netconn_gethostbyname) 19 years ago
goldsimon 7e447c83fb Turned all hostname variables and parameters into (const char*) 19 years ago
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. 19 years ago
fbernon a4d14722f3 sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c: Fixed bug #20900. Now, most of the netconn_peer and netconn_addr processing is done inside tcpip_thread context in do_getaddr. 19 years ago
goldsimon 8020ba2dc5 tcp_send_ctrl(): call tcp_enqueue with the new flag TCP_WRITE_FLAG_COPY instead of 1 19 years ago
goldsimon 21bbc9a81a Fixed bug: assert fired when MEMP_ARP_QUEUE was empty (which can happen any time). Now the packet simply isn't enqueued when out of memory. 19 years ago
goldsimon bfe24b138d Patch #6215: added ifAdminStatus write support (if explicitly enabled by defining SNMP_SAFE_REQUESTS to 0); added code to check link status for ifOperStatus if LWIP_NETIF_LINK_CALLBACK is defined. 19 years ago
goldsimon f3dbd986cb Task #7410: Removed the need to include core header files in api.h (ip/tcp/udp/raw.h) to hide the internal implementation from netconn api applications. 19 years ago
fbernon ecce865cfe api.h, api_lib.c, api_msg.c, sockets.c, opt.h: add SO_RCVBUF option for UDP & RAW netconn. You need to set LWIP_SO_RCVBUF=1 in your lwipopts.h (it's disabled by default). Netconn API users can use the netconn_recv_bufsize macro to access it. This is a first release which have to be improve for TCP. Note it used the netconn::recv_avail which need to be more "thread-safe" (note there is already the problem for FIONREAD with lwip_ioctl/ioctlsocket). 19 years ago
fbernon 4a6f60937a Minor change, add comment for "apiflags" parameters. 19 years ago
fbernon cbe9b050a9 sockets.h, sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c, tcp.h, tcp_out.c: Integrate "patch #6250 : MSG_MORE flag for send". MSG_MORE is used at socket api layer, NETCONN_MORE at netconn api layer, and TCP_WRITE_FLAG_MORE at raw api layer. This option enable to delayed TCP PUSH flag on multiple "write" calls. Note that previous "copy" parameter for "write" APIs is now called "apiflags". 19 years ago
goldsimon 2d5908f4de Fixed bug #21494: The send mss (pcb->mss) is set to 536 (or TCP_MSS if that is smaller) as long as no MSS option is received from the remote host. 19 years ago
goldsimon 298d5cf042 Fixed bug #21491: The MSS option sent (with SYN) is now based on TCP_MSS instead of pcb->mss (on passive open now effectively sending our configured TCP_MSS instead of the one received). 19 years ago
goldsimon 853765954e Fixed bug #21181: On active open, the initial congestion window was calculated based on the configured TCP_MSS, not on the MSS option received with SYN+ACK. 19 years ago
goldsimon 7a99d73092 Added some explaining comments. 19 years ago
fbernon 7077d51f1f api.h, api_lib.c, api_msg.c: Add macro API_EVENT in the same spirit than TCP_EVENT_xxx macros to get a code more readable. It could also help to remove some code (like we have talk in "patch #5919 : Create compile switch to remove select code"), but it could be done later. 19 years ago
goldsimon 270c7c1110 Removed check for conn->err for functions whose counterparts in api_msg.c also do the check (1. remove redundant code, 2. check is better done in tcpip thread context) 19 years ago
goldsimon 2d3a64815f Minor coding style fixes, added comment 19 years ago
fbernon 86dc53b72a Minor change (coding style, #if/#endif to include icmp.h is not necessary) 19 years ago
fbernon 649d43c2c5 Minor change (define DHCP_COARSE_TIMER_MSECS - using DHCP_COARSE_TIMER_SECS - to use milliseconds like all others timers) 19 years ago
goldsimon 6d9b44e243 IP_REASSEMBLY: send ICMP time exceeded when discarding datagrams for which the first fragment was received; try to keep the header of the first (octet 0) fragment; combined code to make it smaller; fixed bug in timer: when freeing packets, counter was not updated correctly 19 years ago
goldsimon e864ba6c91 IP_REASSEMBLY: Changed 'packet' to 'datagram' to match the names used in the RFCs 19 years ago
goldsimon 0686380302 Removed bug on memory failure introduced 3 months ago in rev 1.34 (input pbuf was freed on puf_alloc failure) 19 years ago
fbernon 282e9ead17 Minor change (sanity check for MEMP_NUM_REASSDATA only done if IP_REASSEMBLY=1) 19 years ago
goldsimon 1f08a5e5f5 Added code to free the oldest packets if the IP_REASS_MAX_PBUFS limit is reached or MEMP_REASSDATA is empty. 19 years ago
goldsimon c41508cc8d Added check that MEMP_NUM_REASSDATA is bigger than IP_REASS_MAX_PBUFS (because each MEMP_NUM_REASSDATA has one pbuf at least!) 19 years ago
goldsimon 187df4464e Added description for MEMP_NUM_REASSDATA and changed the default value to 5. 19 years ago
goldsimon c94d640e2a Gave the parameters of pbuf_cat() and pbuf_chain() better names to make the use more clear. 19 years ago
fbernon cf998b7bf8 Minor fix (remove warning) 19 years ago
fbernon 1a104762ea Update documentation for the SNMP uptime timestamp. 19 years ago
fbernon 2a5209bb5a Update documentation for the SNMP uptime timestamp. 19 years ago
fbernon ebd167b658 Add sanity checking on TCP_MAXRTX and TCP_SYNMAXRTX 19 years ago
goldsimon c13ec867c9 Forgot two explicit initializations... 19 years ago
goldsimon 199648ff37 Changed initialization: many init functions are not needed any more since we now rely on the compiler initializing global and static variables to zero! 19 years ago
goldsimon 536f2e42d2 Fixed UDPLite receive: checksum was calculated wrong if checksum coverage != tot_len 19 years ago
goldsimon 0f9799d7e0 Added todo: free the oldest entry when the MEMP_REASSDATA pool is empty or the IP_REASS_MAX_PBUFS limit is reached 19 years ago