1255 Commits (7e447c83fba5e0d6ca582f37b454ab517fbefa6d)
 

Author SHA1 Message Date
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
goldsimon b1a4b00091 Preprocessor statements have to start at the beginning of a line for old compilers! 19 years ago
goldsimon c1c9983cfe Removed <warning: potential uninitialized reference to 19 years ago
goldsimon 8980c3f74e Typo in chain_frag_into_packet_and_validate (but obviously worked anyway...) 19 years ago
goldsimon 418f57dd6a Removed type conversion warning in debug statement. 19 years ago
goldsimon 9ef005454a lfree was not updated in mem_realloc! 19 years ago
fbernon afad35a8ac Minor change (add a default value to tune for MEMP_NUM_REASSDATA in opt.h) 19 years ago
goldsimon 2ca113a218 Fixed UDPLite SENDING: Checksum was always generated too short and also was generated wrong if checksum coverage != tot_len. 19 years ago
fbernon 911ee4d9f9 Minor change (coding style) 19 years ago
fbernon 9804b25acc Fix CHANGELOG entry 19 years ago
fbernon 87e16a8f47 sockets.c, api.h, api_lib.c: First step to fix "bug #20900 : Potential crash error problem with netconn_peer & netconn_addr". VERY IMPORTANT: this change cause an API breakage for netconn_peer, since a parameter type change. Any compiler should cause an error without any changes in yours netconn_peer calls (so, it can't be a "silent change"). It also reduce a little bit the footprint for socket layer (lwip_getpeername & lwip_getsockname use now a common lwip_getaddrname function since netconn_peer & netconn_addr have the same parameters). 19 years ago
goldsimon e561c7b49d Added check for overlapping or duplicate fragments. ip_reass_init() is not needed any more (the check is done in chain_frag_into_packet_and_validate()). 19 years ago
goldsimon 8cd65eaf46 Check for TCP_SND_QUEUELEN overflow. 19 years ago
goldsimon b7ef6077df Changed IP_REASSEMBLY to enqueue the received pbufs so that multiple packets can be reassembled simultaneously and no static reassembly buffer is needed. 19 years ago
goldsimon cb71d6d393 Moved ethernet_input from tcpip.c to etharp.c so all netifs (or ports) can use it. 19 years ago
fbernon 79c00be516 netifapi.h, netifapi.c: add function netifapi_netif_set_default. Change the common function to reduce a little bit the footprint (for all functions using only the "netif" parameter). 19 years ago