1195972f6Sopenharmony_ciHISTORY 2195972f6Sopenharmony_ci * These are only the most important changes. For a full list, use git log: 3195972f6Sopenharmony_ci http://git.savannah.nongnu.org/cgit/lwip.git 4195972f6Sopenharmony_ci 5195972f6Sopenharmony_ci(git master) 6195972f6Sopenharmony_ci 7195972f6Sopenharmony_ci * [Enter new changes just after this line - do not remove this line] 8195972f6Sopenharmony_ci 9195972f6Sopenharmony_ci(STABLE-2.1.2): 10195972f6Sopenharmony_ci 11195972f6Sopenharmony_ci ++ Bugfixes: 12195972f6Sopenharmony_ci 13195972f6Sopenharmony_ci 2018-11-21: Jens Nielsen 14195972f6Sopenharmony_ci * netbiosns.c: fix expecting too large packet (bug #55069) 15195972f6Sopenharmony_ci 16195972f6Sopenharmony_ci 2018-11-19: Dirk Ziegelmeier 17195972f6Sopenharmony_ci * smtp.c: fix compiling with strict C compatibility because of strnlen (bug #55034) 18195972f6Sopenharmony_ci 19195972f6Sopenharmony_ci 2018-11-12: Simon Goldschmidt 20195972f6Sopenharmony_ci * tcp.c: fix overflow check in tcp_recved triggering invalid assertion (bug #55015) 21195972f6Sopenharmony_ci 22195972f6Sopenharmony_ci 2018-11-12: Simon Goldschmidt 23195972f6Sopenharmony_ci * tcp.c: fix a bug in sending RST segments (sent from port 0) 24195972f6Sopenharmony_ci 25195972f6Sopenharmony_ci(STABLE-2.1.1): 26195972f6Sopenharmony_ci 27195972f6Sopenharmony_ci ++ Bugfixes: 28195972f6Sopenharmony_ci 29195972f6Sopenharmony_ci 2018-11-01: Joan Lledó 30195972f6Sopenharmony_ci * sockets.c: fix bad assertion in lwip_poll_dec_sockets_used() (bug #54933) 31195972f6Sopenharmony_ci 32195972f6Sopenharmony_ci 2018-11-01: Dirk Ziegelmeier 33195972f6Sopenharmony_ci * ip4.c: don't send 127.* to default netif (bug #54670) 34195972f6Sopenharmony_ci 35195972f6Sopenharmony_ci 2018-10-23: David Girault 36195972f6Sopenharmony_ci * altcp_tls_mbedtls.c: fix use-after free (bug #54774) 37195972f6Sopenharmony_ci 38195972f6Sopenharmony_ci 2018-10-23: Ognjen Bjelica, Dirk Ziegelmeier 39195972f6Sopenharmony_ci * snmp_scalar.c: Avoid NULL pointer dereference (bug #54886) 40195972f6Sopenharmony_ci 41195972f6Sopenharmony_ci 2018-10-23: Simon Goldschmidt 42195972f6Sopenharmony_ci * Fix missing standard includes in multiple files 43195972f6Sopenharmony_ci 44195972f6Sopenharmony_ci 2018-10-17: Ivan Warren 45195972f6Sopenharmony_ci * def.h: fix casting htonX and ntohX to u16_t (bug #54850) 46195972f6Sopenharmony_ci 47195972f6Sopenharmony_ci 2018-10-12: Simon Goldschmidt 48195972f6Sopenharmony_ci * Revert "tcp_abandon: no need to buffer pcb->local_port" (fix that source port was 0 for RST 49195972f6Sopenharmony_ci called when aborting a connection) 50195972f6Sopenharmony_ci 51195972f6Sopenharmony_ci 2018-10-11: Jonas Rabenstein 52195972f6Sopenharmony_ci * tcp.c: tcp_recved: check for overflow and warn about too big values (patch #9699) 53195972f6Sopenharmony_ci 54195972f6Sopenharmony_ci 2018-10-06: Joan Lledó 55195972f6Sopenharmony_ci * sockets.c: alloc_socket(): Check for LWIP_SOCKET_POLL when setting select- 56195972f6Sopenharmony_ci related variables (patch #9696) 57195972f6Sopenharmony_ci 58195972f6Sopenharmony_ci 2018-10-04: Spencer 59195972f6Sopenharmony_ci * tcp.c: Update prev pointer when skipping entries in tcp_slowtmr (patch #9694) 60195972f6Sopenharmony_ci 61195972f6Sopenharmony_ci 2018-09-27: Martine Lenders 62195972f6Sopenharmony_ci * lowpan6.c: Fix IEEE 802.15.4 address setting (bug #54749) 63195972f6Sopenharmony_ci 64195972f6Sopenharmony_ci(STABLE-2.1.0): 65195972f6Sopenharmony_ci 66195972f6Sopenharmony_ci ++ New features: 67195972f6Sopenharmony_ci 68195972f6Sopenharmony_ci 2018-06-17: Simon Goldschmidt 69195972f6Sopenharmony_ci * lwiperf: implemented iPerf client mode 70195972f6Sopenharmony_ci 71195972f6Sopenharmony_ci 2018-04-23: Dirk Ziegelmeier 72195972f6Sopenharmony_ci * added cmake build files 73195972f6Sopenharmony_ci 74195972f6Sopenharmony_ci 2018-03-04: Ray Abram 75195972f6Sopenharmony_ci * netbios responder: respond to '*' queries 76195972f6Sopenharmony_ci 77195972f6Sopenharmony_ci 2018-02-23: Benjamin Aigner 78195972f6Sopenharmony_ci * 6lowpan: add 6lowpan-over-BLE netif (based on existing 6lowpan netif) 79195972f6Sopenharmony_ci 80195972f6Sopenharmony_ci 2018-02-22: Simon Goldschmidt 81195972f6Sopenharmony_ci * ipv6: add support for stateless DHCPv6 (to get DNS servers in SLAAC nets) 82195972f6Sopenharmony_ci 83195972f6Sopenharmony_ci 2018-02-16: Simon Goldschmidt 84195972f6Sopenharmony_ci * add raw API http(s) client (with proxy support) 85195972f6Sopenharmony_ci 86195972f6Sopenharmony_ci 2018-02-01: Simon Goldschmidt 87195972f6Sopenharmony_ci * tcp: add hooks to implement additional socket options 88195972f6Sopenharmony_ci 89195972f6Sopenharmony_ci 2018-02-01: Simon Goldschmidt 90195972f6Sopenharmony_ci * tcp: add hooks to implement tcp md5 signatures or similar (see contrib/addons for an example) 91195972f6Sopenharmony_ci 92195972f6Sopenharmony_ci 2018-01-05: Simon Goldschmidt 93195972f6Sopenharmony_ci * Added sys_mbox_trypost_fromisr() and tcpip_callbackmsg_trycallback_fromisr() 94195972f6Sopenharmony_ci These can be used to post preallocated messages from an ISR to the tcpip thread 95195972f6Sopenharmony_ci (e.g. when using FreeRTOS) 96195972f6Sopenharmony_ci 97195972f6Sopenharmony_ci 2018-01-02: Dirk Ziegelmeier 98195972f6Sopenharmony_ci * task #14780: Add debug helper asserts to ensure threading/locking requirements are met 99195972f6Sopenharmony_ci 100195972f6Sopenharmony_ci 2017-11-21: Simon Goldschmidt 101195972f6Sopenharmony_ci * task #14600: tcp_alloc(): kill TF_CLOSEPEND connections before other ESTABLISHED 102195972f6Sopenharmony_ci 103195972f6Sopenharmony_ci 2017-11-21: Simon Goldschmidt 104195972f6Sopenharmony_ci * makefsdata: added option "-ssi:<filename>" to control SSI tag checking/insertion 105195972f6Sopenharmony_ci through a list of filenames, not by checking the file extension at runtime 106195972f6Sopenharmony_ci 107195972f6Sopenharmony_ci 2017-11-20: Joel Cunningham 108195972f6Sopenharmony_ci * netconn: add LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE to use external DNS resolver (patch #9427) 109195972f6Sopenharmony_ci 110195972f6Sopenharmony_ci 2017-11-14: Joel Cunningham 111195972f6Sopenharmony_ci * netifapi: Add thread safe ARP cache APIs (task #14724) 112195972f6Sopenharmony_ci 113195972f6Sopenharmony_ci 2017-11-06: Axel Lin 114195972f6Sopenharmony_ci * TCP: kill existing connections with a LOWER priority than the one currently being opened. 115195972f6Sopenharmony_ci Previous implementations also kill existing connections of the SAME priority. 116195972f6Sopenharmony_ci 117195972f6Sopenharmony_ci 2017-09-21: Kalle Olavi Niemitalo 118195972f6Sopenharmony_ci * sockets: add poll() implementation (patch #9450) 119195972f6Sopenharmony_ci 120195972f6Sopenharmony_ci 2017-09-10: Joel Cunningham 121195972f6Sopenharmony_ci * sockets: add readv() implementation (task #14610) 122195972f6Sopenharmony_ci 123195972f6Sopenharmony_ci 2017-08-04: Simon Goldschmidt 124195972f6Sopenharmony_ci * Clean up DHCP a bit: no need keep msg_out and msg_in as members in struct 125195972f6Sopenharmony_ci dhcp - they are used in a call stack only (p_out and options_out_len as well) 126195972f6Sopenharmony_ci 127195972f6Sopenharmony_ci 2017-08-04: Simon Goldschmidt 128195972f6Sopenharmony_ci * pbuf: split pbuf_header(s16_t) into pbuf_add_header(size_t) and 129195972f6Sopenharmony_ci pbuf_remove_header(size_t) 130195972f6Sopenharmony_ci 131195972f6Sopenharmony_ci 2017-07-20: Douglas 132195972f6Sopenharmony_ci * sys: deprecate sys_arch_sem_wait and sys_arch_mbox_fetch returning the 133195972f6Sopenharmony_ci time waited rather they are now defined to return != SYS_ARCH_TIMEOUT 134195972f6Sopenharmony_ci on success. 135195972f6Sopenharmony_ci 136195972f6Sopenharmony_ci 2017-07-03: Jakub Schmidtke 137195972f6Sopenharmony_ci * tcp: added support for sending TCP SACKs 138195972f6Sopenharmony_ci 139195972f6Sopenharmony_ci 2017-06-20: Joel Cunningham 140195972f6Sopenharmony_ci * netconn/netdb: added core locking support to netconn_gethostbyname (task #14523) 141195972f6Sopenharmony_ci 142195972f6Sopenharmony_ci 2017-04-25: Simon Goldschmidt 143195972f6Sopenharmony_ci * dhcp: added two hooks for adding and parsing user defined DHCP options 144195972f6Sopenharmony_ci 145195972f6Sopenharmony_ci 2017-04-25: Joel Cunningham 146195972f6Sopenharmony_ci * sockets: added recvmsg for UDP (together with CMSG and IP_PKTINFO) (task #14247) 147195972f6Sopenharmony_ci 148195972f6Sopenharmony_ci 2017-04-20: Joel Cunningham 149195972f6Sopenharmony_ci * tcp: added Appropriate Byte Counting support (task #14128) 150195972f6Sopenharmony_ci 151195972f6Sopenharmony_ci 2017-04-11: Simon Goldschmidt 152195972f6Sopenharmony_ci * netconn/sockets: remove fatal error handling, fix asynchronous error handling, 153195972f6Sopenharmony_ci ensure data before RST can be received 154195972f6Sopenharmony_ci 155195972f6Sopenharmony_ci 2017-03-30: Simon Goldschmidt 156195972f6Sopenharmony_ci * added "application layered TCP" connection API (altcp) for seamless integration 157195972f6Sopenharmony_ci of TLS or proxy connections 158195972f6Sopenharmony_ci 159195972f6Sopenharmony_ci 2017-03-09: Simon Goldschmidt 160195972f6Sopenharmony_ci * sockets: add recvmsg for TCP 161195972f6Sopenharmony_ci 162195972f6Sopenharmony_ci 2017-03-02: Joel Cunningham 163195972f6Sopenharmony_ci * netconn/sockets: vectorize netconn_write for TCP, treating a vectored I/O write 164195972f6Sopenharmony_ci atomically in regards to TCP segmentation (patch #8882) 165195972f6Sopenharmony_ci 166195972f6Sopenharmony_ci 2017-03-02: Simon Goldschmidt 167195972f6Sopenharmony_ci * netconn: added nonblocking accept/recv to netconn API (task #14396) 168195972f6Sopenharmony_ci 169195972f6Sopenharmony_ci 2017-02-28: Simon Goldschmidt 170195972f6Sopenharmony_ci * Added LWIP_SINGLE_NETIF for small targets with only one netif 171195972f6Sopenharmony_ci 172195972f6Sopenharmony_ci 2017-02-10: David van Moolenbroek 173195972f6Sopenharmony_ci * Implement UDP and RAW multicast support for IPv6 (core API, not netconn/sockets) 174195972f6Sopenharmony_ci 175195972f6Sopenharmony_ci 2017-02-04: David van Moolenbroek 176195972f6Sopenharmony_ci * IPv6 scopes support 177195972f6Sopenharmony_ci 178195972f6Sopenharmony_ci 2017-01-20: Joel Cunningham 179195972f6Sopenharmony_ci * sockets: add interface name/index APIs (task #14314) 180195972f6Sopenharmony_ci 181195972f6Sopenharmony_ci 2017-01-08: David van Moolenbroek 182195972f6Sopenharmony_ci * Extensions to RAW API (patch #9208) 183195972f6Sopenharmony_ci - Connected RAW PCBs 184195972f6Sopenharmony_ci - Add raw_sendto_if_src() 185195972f6Sopenharmony_ci - Support IP_HDRINCL socket option 186195972f6Sopenharmony_ci 187195972f6Sopenharmony_ci ++ Bugfixes: 188195972f6Sopenharmony_ci 189195972f6Sopenharmony_ci 2018-06-19: Simon Goldschmidt 190195972f6Sopenharmony_ci * tcp: fix RTO timer not working if link is down 191195972f6Sopenharmony_ci 192195972f6Sopenharmony_ci 2018-06-15: Sylvain Rochet 193195972f6Sopenharmony_ci * ppp: multiple smaller bugfixes 194195972f6Sopenharmony_ci 195195972f6Sopenharmony_ci 2018-05-17: Simon Goldschmidt 196195972f6Sopenharmony_ci * etharp: arp table can now be bigger than 127 entries 197195972f6Sopenharmony_ci 198195972f6Sopenharmony_ci 2018-04-25: Jens Nielsen 199195972f6Sopenharmony_ci * tftp server: correctly handle retransmissions 200195972f6Sopenharmony_ci 201195972f6Sopenharmony_ci 2018-04-18: Simon Goldschmidt 202195972f6Sopenharmony_ci sockets: fix race conditions when closing full-duplex sockets 203195972f6Sopenharmony_ci 204195972f6Sopenharmony_ci 2018-03-09: Simon Goldschmidt 205195972f6Sopenharmony_ci * 6lowpan: fix to work against contiki; added ZigBee encapsulation netif for tests 206195972f6Sopenharmony_ci 207195972f6Sopenharmony_ci 2018-02-04: Simon Goldschmidt 208195972f6Sopenharmony_ci * sockets: fix inconsistencies on close (inconsistent error codes, double FIN) 209195972f6Sopenharmony_ci 210195972f6Sopenharmony_ci 2018-01-05: Dirk Ziegelmeier 211195972f6Sopenharmony_ci * Fix bug #52748: the bug in timeouts.c by reimplementing timer logic to use 212195972f6Sopenharmony_ci absolute instead of relative timeout values 213195972f6Sopenharmony_ci 214195972f6Sopenharmony_ci 2017-12-31: Dirk Ziegelmeier 215195972f6Sopenharmony_ci * Fix bug #52704: DHCP and bad OFFER: Stop timeout only if offer is accepted 216195972f6Sopenharmony_ci 217195972f6Sopenharmony_ci 2017-11-08: Joel Cunningham 218195972f6Sopenharmony_ci * netif: ensure link and admin states are up in issue reports (bug #52353) 219195972f6Sopenharmony_ci 220195972f6Sopenharmony_ci 2017-09-12: David Lockyer 221195972f6Sopenharmony_ci * select: allocate select_cb from memp for LWIP_MPU_COMPATIBLE = 1 (bug #51990) 222195972f6Sopenharmony_ci 223195972f6Sopenharmony_ci 2017-09-11: Simon Goldschmidt 224195972f6Sopenharmony_ci * tcp_in.c: fix bug #51937 (leaking tcp_pcbs on passive close with unacked data) 225195972f6Sopenharmony_ci 226195972f6Sopenharmony_ci 2017-08-11: Joel Cunningham 227195972f6Sopenharmony_ci * lwip_itoa: fix converting the number 0 (previously converted to '\0') (bug #51729) 228195972f6Sopenharmony_ci 229195972f6Sopenharmony_ci 2017-08-08: Dirk Ziegelmeier 230195972f6Sopenharmony_ci * ip4_route_src: parameter order is reversed: ip4_route_src(dest, src) -> ip4_route_src(src, dest) 231195972f6Sopenharmony_ci to make parameter order consistent with other ip*_route*() functions 232195972f6Sopenharmony_ci Same also applies to LWIP_HOOK_IP4_ROUTE_SRC() parameter order. 233195972f6Sopenharmony_ci 234195972f6Sopenharmony_ci 2017-08-04: Joel Cunningham 235195972f6Sopenharmony_ci * tcp: re-work persist timer to fully close window (details in bug #50837) 236195972f6Sopenharmony_ci 237195972f6Sopenharmony_ci 2017-07-26: Simon Goldschmidt 238195972f6Sopenharmony_ci * snmp_msg.c: fix bug #51578 (SNMP failed to decode some values on non 32bit platforms) 239195972f6Sopenharmony_ci 240195972f6Sopenharmony_ci 2017-07-20: Simon Goldschmidt 241195972f6Sopenharmony_ci * compatibility headers: moved from 'src/include/posix' to 'src/include/compat/posix', 242195972f6Sopenharmony_ci 'src/include/compat/stdc' etc. 243195972f6Sopenharmony_ci 244195972f6Sopenharmony_ci 2017-05-09: Joel Cunningham 245195972f6Sopenharmony_ci * tcp: add zero-window probe timeout (bug #50837) 246195972f6Sopenharmony_ci 247195972f6Sopenharmony_ci 2017-04-11: Simon Goldschmidt 248195972f6Sopenharmony_ci * sockets.c: task #14420 (Remove sys_sem_signal from inside SYS_ARCH_PROTECT 249195972f6Sopenharmony_ci crit section) done for LWIP_TCPIP_CORE_LOCKING==1 250195972f6Sopenharmony_ci 251195972f6Sopenharmony_ci 2017-02-24: Simon Goldschmidt 252195972f6Sopenharmony_ci * sockets.c: fixed close race conditions in lwip_select (for LWIP_NETCONN_FULLDUPLEX) 253195972f6Sopenharmony_ci 254195972f6Sopenharmony_ci 2017-02-24: Simon Goldschmidt 255195972f6Sopenharmony_ci * sockets.c: fixed that select ignored invalid/not open sockets in the fd_sets (bug #50392) 256195972f6Sopenharmony_ci 257195972f6Sopenharmony_ci 2017-01-11: David van Moolenbroek 258195972f6Sopenharmony_ci * Lots of IPv6 related fixes and improvements 259195972f6Sopenharmony_ci 260195972f6Sopenharmony_ci(STABLE-2.0.3) 261195972f6Sopenharmony_ci 262195972f6Sopenharmony_ci ++ Bugfixes: 263195972f6Sopenharmony_ci 264195972f6Sopenharmony_ci 2017-09-11: Simon Goldschmidt 265195972f6Sopenharmony_ci * tcp_in.c: fix bug #51937 (leaking tcp_pcbs on passive close with unacked data) 266195972f6Sopenharmony_ci 267195972f6Sopenharmony_ci 2017-08-02: Abroz Bizjak/Simon Goldschmidt 268195972f6Sopenharmony_ci * multiple fixes in IPv4 reassembly (leading to corrupted datagrams received) 269195972f6Sopenharmony_ci 270195972f6Sopenharmony_ci 2017-03-30: Simon Goldschmidt 271195972f6Sopenharmony_ci * dhcp.c: return ERR_VAL instead of asserting on offset-out-of-pbuf 272195972f6Sopenharmony_ci 273195972f6Sopenharmony_ci 2017-03-23: Dirk Ziegelmeier 274195972f6Sopenharmony_ci * dhcp.h: fix bug #50618 (dhcp_remove_struct() macro does not work) 275195972f6Sopenharmony_ci 276195972f6Sopenharmony_ci(STABLE-2.0.2) 277195972f6Sopenharmony_ci 278195972f6Sopenharmony_ci ++ New features: 279195972f6Sopenharmony_ci 280195972f6Sopenharmony_ci 2017-02-10: Dirk Ziegelmeier 281195972f6Sopenharmony_ci * Implement task #14367: Hooks need a better place to be defined: 282195972f6Sopenharmony_ci We now have a #define for a header file name that is #included in every .c 283195972f6Sopenharmony_ci file that provides hooks. 284195972f6Sopenharmony_ci 285195972f6Sopenharmony_ci 2017-02-10: Simon Goldschmidt 286195972f6Sopenharmony_ci * tcp_close does not fail on memory error (instead, FIN is sent from tcp_tmr) 287195972f6Sopenharmony_ci 288195972f6Sopenharmony_ci ++ Bugfixes: 289195972f6Sopenharmony_ci 290195972f6Sopenharmony_ci 2017-03-08 291195972f6Sopenharmony_ci * tcp: do not keep sending SYNs when getting ACKs 292195972f6Sopenharmony_ci 293195972f6Sopenharmony_ci 2017-03-08: Joel Cunningham 294195972f6Sopenharmony_ci * tcp: Initialize ssthresh to TCP_SND_BUF (bug #50476) 295195972f6Sopenharmony_ci 296195972f6Sopenharmony_ci 2017-03-01: Simon Goldschmidt 297195972f6Sopenharmony_ci * httpd: LWIP_HTTPD_POST_MANUAL_WND: fixed double-free when httpd_post_data_recved 298195972f6Sopenharmony_ci is called nested from httpd_post_receive_data() (bug #50424) 299195972f6Sopenharmony_ci 300195972f6Sopenharmony_ci 2017-02-28: David van Moolenbroek/Simon Goldschmidt 301195972f6Sopenharmony_ci * tcp: fixed bug #50418: LWIP_EVENT_API: fix invalid calbacks for SYN_RCVD pcb 302195972f6Sopenharmony_ci 303195972f6Sopenharmony_ci 2017-02-17: Simon Goldschmidt 304195972f6Sopenharmony_ci * dns: Improved DNS_LOCAL_HOSTLIST interface (bug #50325) 305195972f6Sopenharmony_ci 306195972f6Sopenharmony_ci 2017-02-16: Simon Goldschmidt 307195972f6Sopenharmony_ci * LWIP_NETCONN_FULLDUPLEX: fixed shutdown during write (bug #50274) 308195972f6Sopenharmony_ci 309195972f6Sopenharmony_ci 2017-02-13: Simon Goldschmidt/Dirk Ziegelmeier 310195972f6Sopenharmony_ci * For tiny targtes, LWIP_RAND is optional (fix compile time checks) 311195972f6Sopenharmony_ci 312195972f6Sopenharmony_ci 2017-02-10: Simon Goldschmidt 313195972f6Sopenharmony_ci * tcp: Fixed bug #47485 (tcp_close() should not fail on memory error) by retrying 314195972f6Sopenharmony_ci to send FIN from tcp_fasttmr 315195972f6Sopenharmony_ci 316195972f6Sopenharmony_ci 2017-02-09: Simon Goldschmidt 317195972f6Sopenharmony_ci * sockets: Fixed bug #44032 (LWIP_NETCONN_FULLDUPLEX: select might work on 318195972f6Sopenharmony_ci invalid/reused socket) by not allowing to reallocate a socket that has 319195972f6Sopenharmony_ci "select_waiting != 0" 320195972f6Sopenharmony_ci 321195972f6Sopenharmony_ci 2017-02-09: Simon Goldschmidt 322195972f6Sopenharmony_ci * httpd: Fixed bug #50059 (httpd LWIP_HTTPD_SUPPORT_11_KEEPALIVE vs. 323195972f6Sopenharmony_ci LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED) 324195972f6Sopenharmony_ci 325195972f6Sopenharmony_ci 2017-02-08: Dirk Ziegelmeier 326195972f6Sopenharmony_ci * Rename "IPv6 mapped IPv4 addresses" to their correct name from RFC4191: 327195972f6Sopenharmony_ci "IPv4-mapped IPv6 address" 328195972f6Sopenharmony_ci 329195972f6Sopenharmony_ci 2017-02-08: Luc Revardel 330195972f6Sopenharmony_ci * mld6.c: Fix bug #50220 (mld6_leavegroup does not send ICMP6_TYPE_MLD, even 331195972f6Sopenharmony_ci if last reporter) 332195972f6Sopenharmony_ci 333195972f6Sopenharmony_ci 2017-02-08: David van Moolenbroek 334195972f6Sopenharmony_ci * ip6.c: Patch #9250: fix source substitution in ip6_output_if() 335195972f6Sopenharmony_ci 336195972f6Sopenharmony_ci 2017-02-08: Simon Goldschmidt 337195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #50090 (last_unsent->oversize_left can become wrong value 338195972f6Sopenharmony_ci in tcp_write error path) 339195972f6Sopenharmony_ci 340195972f6Sopenharmony_ci 2017-02-02: Dirk Ziegelmeier 341195972f6Sopenharmony_ci * Fix bug #50206: UDP Netconn bind to IP6_ADDR_ANY fails 342195972f6Sopenharmony_ci 343195972f6Sopenharmony_ci 2017-01-18: Dirk Ziegelmeier 344195972f6Sopenharmony_ci * Fix zero-copy RX, see bug bug #50064. PBUF_REFs were not supported as ARP requests. 345195972f6Sopenharmony_ci 346195972f6Sopenharmony_ci 2017-01-15: Axel Lin, Dirk Ziegelmeier 347195972f6Sopenharmony_ci * minor bug fixes in mqtt 348195972f6Sopenharmony_ci 349195972f6Sopenharmony_ci 2017-01-11: Knut Andre Tidemann 350195972f6Sopenharmony_ci * sockets/netconn: fix broken default ICMPv6 handling of checksums 351195972f6Sopenharmony_ci 352195972f6Sopenharmony_ci(STABLE-2.0.1) 353195972f6Sopenharmony_ci 354195972f6Sopenharmony_ci ++ New features: 355195972f6Sopenharmony_ci 356195972f6Sopenharmony_ci 2016-12-31: Simon Goldschmidt 357195972f6Sopenharmony_ci * tcp.h/.c: added function tcp_listen_with_backlog_and_err() to get the error 358195972f6Sopenharmony_ci reason when listening fails (bug #49861) 359195972f6Sopenharmony_ci 360195972f6Sopenharmony_ci 2016-12-20: Erik Andersen 361195972f6Sopenharmony_ci * Add MQTT client 362195972f6Sopenharmony_ci 363195972f6Sopenharmony_ci 2016-12-14: Jan Breuer: 364195972f6Sopenharmony_ci * opt.h, ndc.h/.c: add support for RDNSS option (as per RFC 6106) 365195972f6Sopenharmony_ci 366195972f6Sopenharmony_ci 2016-12-14: David van Moolenbroek 367195972f6Sopenharmony_ci * opt.h, nd6.c: Added LWIP_HOOK_ND6_GET_GW() 368195972f6Sopenharmony_ci 369195972f6Sopenharmony_ci 2016-12-09: Dirk Ziegelmeier 370195972f6Sopenharmony_ci * ip6_frag.c: Implemented support for LWIP_NETIF_TX_SINGLE_PBUF 371195972f6Sopenharmony_ci 372195972f6Sopenharmony_ci 2016-12-09: Simon Goldschmidt 373195972f6Sopenharmony_ci * dns.c: added one-shot multicast DNS queries 374195972f6Sopenharmony_ci 375195972f6Sopenharmony_ci 2016-11-24: Ambroz Bizjak, David van Moolenbroek 376195972f6Sopenharmony_ci * tcp_out.c: Optimize passing contiguous nocopy buffers to tcp_write (bug #46290) 377195972f6Sopenharmony_ci 378195972f6Sopenharmony_ci 2016-11-16: Dirk Ziegelmeier 379195972f6Sopenharmony_ci * sockets.c: added support for IPv6 mapped IPv4 addresses 380195972f6Sopenharmony_ci 381195972f6Sopenharmony_ci ++ Bugfixes: 382195972f6Sopenharmony_ci 383195972f6Sopenharmony_ci 2016-12-16: Thomas Mueller 384195972f6Sopenharmony_ci * api_lib.c: fixed race condition in return value of netconn_gethostbyname() 385195972f6Sopenharmony_ci (and thus also lwip_gethostbyname/_r() and lwip_getaddrinfo()) 386195972f6Sopenharmony_ci 387195972f6Sopenharmony_ci 2016-12-15: David van Moolenbroek 388195972f6Sopenharmony_ci * opt.h, tcp: added LWIP_HOOK_TCP_ISN() to implement less predictable initial 389195972f6Sopenharmony_ci sequence numbers (see contrib/addons/tcp_isn for an example implementation) 390195972f6Sopenharmony_ci 391195972f6Sopenharmony_ci 2016-12-05: Dirk Ziegelmeier 392195972f6Sopenharmony_ci * fixed compiling with IPv4 disabled (IPv6 only case) 393195972f6Sopenharmony_ci 394195972f6Sopenharmony_ci 2016-11-28: Simon Goldschmidt 395195972f6Sopenharmony_ci * api_lib.c: fixed bug #49725 (send-timeout: netconn_write() can return 396195972f6Sopenharmony_ci ERR_OK without all bytes being written) 397195972f6Sopenharmony_ci 398195972f6Sopenharmony_ci 2016-11-28: Ambroz Bizjak 399195972f6Sopenharmony_ci * tcpi_in.c: fixed bug #49717 (window size in received SYN and SYN-ACK 400195972f6Sopenharmony_ci assumed scaled) 401195972f6Sopenharmony_ci 402195972f6Sopenharmony_ci 2016-11-25: Simon Goldschmidt 403195972f6Sopenharmony_ci * dhcp.c: fixed bug #49676 (Possible endless loop when parsing dhcp options) 404195972f6Sopenharmony_ci 405195972f6Sopenharmony_ci 2016-11-23: Dirk Ziegelmeier 406195972f6Sopenharmony_ci * udp.c: fixed bug #49662: multicast traffic is now only received on a UDP PCB 407195972f6Sopenharmony_ci (and therefore on a UDP socket/netconn) when the PCB is bound to IP_ADDR_ANY 408195972f6Sopenharmony_ci 409195972f6Sopenharmony_ci 2016-11-16: Dirk Ziegelmeier 410195972f6Sopenharmony_ci * *: Fixed dual-stack behaviour, IPv6 mapped IPv4 support in socket API 411195972f6Sopenharmony_ci 412195972f6Sopenharmony_ci 2016-11-14: Joel Cunningham 413195972f6Sopenharmony_ci * tcp_out.c: fixed bug #49533 (start persist timer when unsent seg can't fit 414195972f6Sopenharmony_ci in window) 415195972f6Sopenharmony_ci 416195972f6Sopenharmony_ci 2016-11-16: Roberto Barbieri Carrera 417195972f6Sopenharmony_ci * autoip.c: fixed bug #49610 (sometimes AutoIP fails to reuse the same address) 418195972f6Sopenharmony_ci 419195972f6Sopenharmony_ci 2016-11-11: Dirk Ziegelmeier 420195972f6Sopenharmony_ci * sockets.c: fixed bug #49578 (dropping multicast membership does not work 421195972f6Sopenharmony_ci with LWIP_SOCKET_OFFSET) 422195972f6Sopenharmony_ci 423195972f6Sopenharmony_ci(STABLE-2.0.0) 424195972f6Sopenharmony_ci 425195972f6Sopenharmony_ci ++ New features: 426195972f6Sopenharmony_ci 427195972f6Sopenharmony_ci 2016-07-27: Simon Goldschmidt 428195972f6Sopenharmony_ci * opt.h, timeouts.h/.c: added LWIP_TIMERS_CUSTOM to override the default 429195972f6Sopenharmony_ci implementation of timeouts 430195972f6Sopenharmony_ci 431195972f6Sopenharmony_ci 2016-07-xx: Dirk Ziegelmeier 432195972f6Sopenharmony_ci * Large overhaul of doxygen documentation 433195972f6Sopenharmony_ci 434195972f6Sopenharmony_ci 2016-04-05: Simon Goldschmidt 435195972f6Sopenharmony_ci * timers.h/.c: prepare for overriding current timeout implementation: all 436195972f6Sopenharmony_ci stack-internal caclic timers are avaliable in the lwip_cyclic_timers array 437195972f6Sopenharmony_ci 438195972f6Sopenharmony_ci 2016-03-23: Simon Goldschmidt 439195972f6Sopenharmony_ci * tcp: call accept-callback with ERR_MEM when allocating a pcb fails on 440195972f6Sopenharmony_ci passive open to inform the application about this error 441195972f6Sopenharmony_ci ATTENTION: applications have to handle NULL pcb in accept callback! 442195972f6Sopenharmony_ci 443195972f6Sopenharmony_ci 2016-02-22: Ivan Delamer 444195972f6Sopenharmony_ci * Initial 6LoWPAN support 445195972f6Sopenharmony_ci 446195972f6Sopenharmony_ci 2016-02-XX to 2016-03-XX: Dirk Ziegelmeier 447195972f6Sopenharmony_ci * Cleanup TCPIP thread sync methods in a way that it is possibe to use them 448195972f6Sopenharmony_ci in arbitrary code that needs things to be done in TCPIP thread. Used to 449195972f6Sopenharmony_ci decouple netconn, netif, ppp and 6LoWPAN from LWIP core. 450195972f6Sopenharmony_ci 451195972f6Sopenharmony_ci 2016-02-XX: Dirk Ziegelmeier 452195972f6Sopenharmony_ci * Implement dual-stack support in RAW, UDP and TCP. Add new IP address 453195972f6Sopenharmony_ci type IPADDR_ANY_TYPE for this. Netconn/Socket API: Dual-stack is 454195972f6Sopenharmony_ci automatically supported when an IPv6 netconn/socket is created. 455195972f6Sopenharmony_ci 456195972f6Sopenharmony_ci 2015-12-26: Martin Hentschel and Dirk Ziegelmeier 457195972f6Sopenharmony_ci * Rewrite SNMP agent. SNMPv2c + MIB compiler. 458195972f6Sopenharmony_ci 459195972f6Sopenharmony_ci 2015-11-12: Dirk Ziegelmeier 460195972f6Sopenharmony_ci * Decouple SNMP stack from lwIP core and move stack to apps/ directory. 461195972f6Sopenharmony_ci Breaking change: Users have to call snmp_init() now! 462195972f6Sopenharmony_ci 463195972f6Sopenharmony_ci 2015-11-12: Dirk Ziegelmeier 464195972f6Sopenharmony_ci * Implement possibility to declare private memory pools. This is useful to 465195972f6Sopenharmony_ci decouple some apps from the core (SNMP stack) or make contrib app usage 466195972f6Sopenharmony_ci simpler (httpserver_raw) 467195972f6Sopenharmony_ci 468195972f6Sopenharmony_ci 2015-10-09: Simon Goldschmidt 469195972f6Sopenharmony_ci * started to move "private" header files containing implementation details to 470195972f6Sopenharmony_ci "lwip/priv/" include directory to seperate the API from the implementation. 471195972f6Sopenharmony_ci 472195972f6Sopenharmony_ci 2015-10-07: Simon Goldschmidt 473195972f6Sopenharmony_ci * added sntp client as first "supported" application layer protocol implementation 474195972f6Sopenharmony_ci added 'apps' folder 475195972f6Sopenharmony_ci 476195972f6Sopenharmony_ci 2015-09-30: Dirk Ziegelmeier 477195972f6Sopenharmony_ci * snmp_structs.h, mib_structs.c, mib2.c: snmp: fixed ugly inheritance 478195972f6Sopenharmony_ci implementation by aggregating the "base class" (struct mib_node) in all 479195972f6Sopenharmony_ci derived node classes to get more type-safe code 480195972f6Sopenharmony_ci 481195972f6Sopenharmony_ci 2015-09-23: Simon Goldschmidt 482195972f6Sopenharmony_ci * netif.h/.c, nd6.c: task #13729: Convert netif addresses (IPv4 & IPv6) to 483195972f6Sopenharmony_ci ip_addr_t (so they can be used without conversion/temporary storage) 484195972f6Sopenharmony_ci 485195972f6Sopenharmony_ci 2015-09-08: Dirk Ziegelmeier 486195972f6Sopenharmony_ci * snmp: Separate mib2 counter/table callbacks from snmp agent. This both cleans 487195972f6Sopenharmony_ci up the code and should allow integration of a 3rd party agent/mib2. Simple 488195972f6Sopenharmony_ci counters are kept in MIB2_STATS, tree/table change function prototypes moved to 489195972f6Sopenharmony_ci snmp_mib2.h. 490195972f6Sopenharmony_ci 491195972f6Sopenharmony_ci 2015-09-03: Simon Goldschmidt 492195972f6Sopenharmony_ci * opt.h, dns.h/.c: DNS/IPv6: added support for AAAA records 493195972f6Sopenharmony_ci 494195972f6Sopenharmony_ci 2015-09-01: Simon Goldschmidt 495195972f6Sopenharmony_ci * task #12178: hardware checksum capabilities can be configured per netif 496195972f6Sopenharmony_ci (use NETIF_SET_CHECKSUM_CTRL() in your netif's init function) 497195972f6Sopenharmony_ci 498195972f6Sopenharmony_ci 2015-08-30: Simon Goldschmidt 499195972f6Sopenharmony_ci * PBUF_REF with "custom" pbufs is now supported for RX pbufs (see pcapif in 500195972f6Sopenharmony_ci contrib for an example, LWIP_SUPPORT_CUSTOM_PBUF is required) 501195972f6Sopenharmony_ci 502195972f6Sopenharmony_ci 2015-08-30: Simon Goldschmidt 503195972f6Sopenharmony_ci * support IPv4 source based routing: define LWIP_HOOK_IP4_ROUTE_SRC to point 504195972f6Sopenharmony_ci to a routing function 505195972f6Sopenharmony_ci 506195972f6Sopenharmony_ci 2015-08-05: Simon Goldschmidt 507195972f6Sopenharmony_ci * many files: allow multicast socket options IP_MULTICAST_TTL, IP_MULTICAST_IF 508195972f6Sopenharmony_ci and IP_MULTICAST_LOOP to be used without IGMP 509195972f6Sopenharmony_ci 510195972f6Sopenharmony_ci 2015-04-24: Simon Goldschmidt 511195972f6Sopenharmony_ci * dhcp.h/c, autoip.h/.c: added functions dhcp/autoip_supplied_address() to 512195972f6Sopenharmony_ci check for the source of address assignment (replacement for NETIF_FLAG_DHCP) 513195972f6Sopenharmony_ci 514195972f6Sopenharmony_ci 2015-04-10: Simon Goldschmidt 515195972f6Sopenharmony_ci * many files: task #13480: added LWIP_IPV4 define - IPv4 can be disabled, 516195972f6Sopenharmony_ci leaving an IPv6-only stack 517195972f6Sopenharmony_ci 518195972f6Sopenharmony_ci 2015-04-09: Simon Goldschmidt 519195972f6Sopenharmony_ci * nearly all files: task #12722 (improve IPv4/v6 address handling): renamed 520195972f6Sopenharmony_ci ip_addr_t to ip4_addr_t, renamed ipX_addr_t to ip_addr_t and added IP 521195972f6Sopenharmony_ci version; ip_addr_t is used for all generic IP addresses for the API, 522195972f6Sopenharmony_ci ip(4/6)_addr_t are only used internally or when initializing netifs or when 523195972f6Sopenharmony_ci calling version-related functions 524195972f6Sopenharmony_ci 525195972f6Sopenharmony_ci 2015-03-24: Simon Goldschmidt 526195972f6Sopenharmony_ci * opt.h, ip4_addr.h, ip4.c, ip6.c: loopif is not required for loopback traffic 527195972f6Sopenharmony_ci any more but passed through any netif (ENABLE_LOOPBACK has to be enabled) 528195972f6Sopenharmony_ci 529195972f6Sopenharmony_ci 2015-03-23: Simon Goldschmidt 530195972f6Sopenharmony_ci * opt.h, etharp.c: with ETHARP_TABLE_MATCH_NETIF== 1, duplicate (Auto)-IP 531195972f6Sopenharmony_ci addresses on multiple netifs should now be working correctly (if correctly 532195972f6Sopenharmony_ci addressed by routing, that is) 533195972f6Sopenharmony_ci 534195972f6Sopenharmony_ci 2015-03-23: Simon Goldschmidt 535195972f6Sopenharmony_ci * etharp.c: Stable etharp entries that are about to expire are now refreshed 536195972f6Sopenharmony_ci using unicast to prevent unnecessary broadcast. Only if no answer is received 537195972f6Sopenharmony_ci after 15 seconds, broadcast is used. 538195972f6Sopenharmony_ci 539195972f6Sopenharmony_ci 2015-03-06: Philip Gladstone 540195972f6Sopenharmony_ci * netif.h/.c: patch #8359 (Provide utility function to add an IPv6 address to 541195972f6Sopenharmony_ci an interface) 542195972f6Sopenharmony_ci 543195972f6Sopenharmony_ci 2015-03-05: Simon Goldschmidt 544195972f6Sopenharmony_ci * netif.c, ip4.c, dhcp.c, autoip.c: fixed bug #37068 (netif up/down handling 545195972f6Sopenharmony_ci is unclear): correclty separated administrative status of a netif (up/down) 546195972f6Sopenharmony_ci from 'valid address' status 547195972f6Sopenharmony_ci ATTENTION: netif_set_up() now always has to be called, even when dhcp/autoip 548195972f6Sopenharmony_ci is used! 549195972f6Sopenharmony_ci 550195972f6Sopenharmony_ci 2015-02-26: patch by TabascoEye 551195972f6Sopenharmony_ci * netif.c, udp.h/.c: fixed bug #40753 (re-bind UDP pcbs on change of IP address) 552195972f6Sopenharmony_ci 553195972f6Sopenharmony_ci 2015-02-22: chrysn, Simon Goldschmidt 554195972f6Sopenharmony_ci * *.*: Changed nearly all functions taking 'ip(X)_addr_t' pointer to take 555195972f6Sopenharmony_ci const pointers (changed user callbacks: raw_recv_fn, udp_recv_fn; changed 556195972f6Sopenharmony_ci port callbacks: netif_output_fn, netif_igmp_mac_filter_fn) 557195972f6Sopenharmony_ci 558195972f6Sopenharmony_ci 2015-02-19: Ivan Delamer 559195972f6Sopenharmony_ci * netif.h, dhcp.c: Removed unused netif flag for DHCP. The preferred way to evaluate 560195972f6Sopenharmony_ci if DHCP is active is through netif->dhcp field. 561195972f6Sopenharmony_ci 562195972f6Sopenharmony_ci 2015-02-19: Ivan Delamer 563195972f6Sopenharmony_ci * netif.h, slipif.c, ppp.c: Removed unused netif flag for point to point connections 564195972f6Sopenharmony_ci 565195972f6Sopenharmony_ci 2015-02-18: Simon Goldschmidt 566195972f6Sopenharmony_ci * api_lib.c: fixed bug #37958 "netconn API doesn't handle correctly 567195972f6Sopenharmony_ci connections half-closed by peer" 568195972f6Sopenharmony_ci 569195972f6Sopenharmony_ci 2015-02-18: Simon Goldschmidt 570195972f6Sopenharmony_ci * tcp.c: tcp_alloc() prefers killing CLOSING/LAST_ACK over active connections 571195972f6Sopenharmony_ci (see bug #39565) 572195972f6Sopenharmony_ci 573195972f6Sopenharmony_ci 2015-02-16: Claudius Zingerli, Sergio Caprile 574195972f6Sopenharmony_ci * opt.h, dhcp.h/.c: patch #8361 "Add support for NTP option in DHCP" 575195972f6Sopenharmony_ci 576195972f6Sopenharmony_ci 2015-02-14: Simon Goldschmidt 577195972f6Sopenharmony_ci * opt.h, snmp*: added support for write-access community and dedicated 578195972f6Sopenharmony_ci community for sending traps 579195972f6Sopenharmony_ci 580195972f6Sopenharmony_ci 2015-02-13: Simon Goldschmidt 581195972f6Sopenharmony_ci * opt.h, memp.c: added hook LWIP_HOOK_MEMP_AVAILABLE() to get informed when 582195972f6Sopenharmony_ci a memp pool was empty and an item is now available 583195972f6Sopenharmony_ci 584195972f6Sopenharmony_ci 2015-02-13: Simon Goldschmidt 585195972f6Sopenharmony_ci * opt.h, pbuf.h/.c, etharp.c: Added the option PBUF_LINK_ENCAPSULATION_HLEN to 586195972f6Sopenharmony_ci allocate additional header space for TX on netifs requiring additional headers 587195972f6Sopenharmony_ci 588195972f6Sopenharmony_ci 2015-02-12: chrysn 589195972f6Sopenharmony_ci * timers.h/.c: introduce sys_timeouts_sleeptime (returns the time left before 590195972f6Sopenharmony_ci the next timeout is due, for NO_SYS==1) 591195972f6Sopenharmony_ci 592195972f6Sopenharmony_ci 2015-02-11: Nick van Ijzendoorn 593195972f6Sopenharmony_ci * opt.h, sockets.h/c: patch #7702 "Include ability to increase the socket number 594195972f6Sopenharmony_ci with defined offset" 595195972f6Sopenharmony_ci 596195972f6Sopenharmony_ci 2015-02-11: Frederick Baksik 597195972f6Sopenharmony_ci * opt.h, def.h, others: patch #8423 "arch/perf.h" should be made an optional item 598195972f6Sopenharmony_ci 599195972f6Sopenharmony_ci 2015-02-11: Simon Goldschmidt 600195972f6Sopenharmony_ci * api_msg.c, opt.h: started to implement fullduplex sockets/netconns 601195972f6Sopenharmony_ci (note that this is highly unstable yet!) 602195972f6Sopenharmony_ci 603195972f6Sopenharmony_ci 2015-01-17: Simon Goldschmidt 604195972f6Sopenharmony_ci * api: allow enabling socket API without (public) netconn API - netconn API is 605195972f6Sopenharmony_ci still used by sockets, but keeping it private (static) should allow better 606195972f6Sopenharmony_ci compiler optimizations 607195972f6Sopenharmony_ci 608195972f6Sopenharmony_ci 2015-01-16: Simon Goldschmidt 609195972f6Sopenharmony_ci * tcp_in.c: fixed bug #20506 "Initial congestion window is very small" again 610195972f6Sopenharmony_ci by implementing the calculation formula from RFC3390 611195972f6Sopenharmony_ci 612195972f6Sopenharmony_ci 2014-12-10: Simon Goldschmidt 613195972f6Sopenharmony_ci * api: added option LWIP_NETCONN_SEM_PER_THREAD to use a semaphore per thread 614195972f6Sopenharmony_ci instead of using one per netconn and per select call 615195972f6Sopenharmony_ci 616195972f6Sopenharmony_ci 2014-12-08: Simon Goldschmidt 617195972f6Sopenharmony_ci * ip6.h: fixed bug #43778: IPv6 header version not set on 16-bit platform 618195972f6Sopenharmony_ci (macro IP6H_VTCFL_SET()) 619195972f6Sopenharmony_ci 620195972f6Sopenharmony_ci 2014-12-08: Simon Goldschmidt 621195972f6Sopenharmony_ci * icmp.c, ip4.c, pbuf.c, udp.c, pbuf.h: task #11472 Support PBUF_REF for RX 622195972f6Sopenharmony_ci (IPv6 and IPv4/v6 reassembly might not work yet) 623195972f6Sopenharmony_ci 624195972f6Sopenharmony_ci 2014-11-06: Simon Goldschmidt 625195972f6Sopenharmony_ci * sockets.c/.h, init.c: lwip_socket_init() is not needed any more 626195972f6Sopenharmony_ci -> compatibility define 627195972f6Sopenharmony_ci 628195972f6Sopenharmony_ci 2014-09-16: Simon Goldschmidt 629195972f6Sopenharmony_ci * dns.c, opt.h: reduced ram usage by parsing DNS responses in place 630195972f6Sopenharmony_ci 631195972f6Sopenharmony_ci 2014-09-16: Simon Goldschmidt 632195972f6Sopenharmony_ci * pbuf.h/.c: added pbuf_take_at() and pbuf_put_at() 633195972f6Sopenharmony_ci 634195972f6Sopenharmony_ci 2014-09-15: Simon Goldschmidt 635195972f6Sopenharmony_ci * dns.c: added source port randomization to make the DNS client more robust 636195972f6Sopenharmony_ci (see bug #43144) 637195972f6Sopenharmony_ci 638195972f6Sopenharmony_ci 2013-09-02: Simon Goldschmidt 639195972f6Sopenharmony_ci * arch.h and many other files: added optional macros PACK_STRUCT_FLD_8() and 640195972f6Sopenharmony_ci PACK_STRUCT_FLD_S() to prevent gcc 4 from warning about struct members that 641195972f6Sopenharmony_ci do not need packing 642195972f6Sopenharmony_ci 643195972f6Sopenharmony_ci 2013-08-19: Simon Goldschmidt 644195972f6Sopenharmony_ci * netif.h: bug #42998: made NETIF_MAX_HWADDR_LEN overridable for some special 645195972f6Sopenharmony_ci networks 646195972f6Sopenharmony_ci 647195972f6Sopenharmony_ci 2013-03-17: Simon Goldschmidt (patch by Ghobad Emadi) 648195972f6Sopenharmony_ci * opt.h, etharp.c: Added LWIP_HOOK_ETHARP_GET_GW to implement IPv4 routing with 649195972f6Sopenharmony_ci multiple gateways 650195972f6Sopenharmony_ci 651195972f6Sopenharmony_ci 2013-04-20: Fatih Asici 652195972f6Sopenharmony_ci * opt.h, etharp.h/.c: patch #7993: Added support for transmitting packets 653195972f6Sopenharmony_ci with VLAN headers via hook function LWIP_HOOK_VLAN_SET and to check them 654195972f6Sopenharmony_ci via hook function LWIP_HOOK_VLAN_CHECK 655195972f6Sopenharmony_ci 656195972f6Sopenharmony_ci 2014-02-20: Simon Goldschmidt (based on patch by Artem Pisarenko) 657195972f6Sopenharmony_ci * patch #7885: modification of api modules to support FreeRTOS-MPU 658195972f6Sopenharmony_ci (don't pass stack-pointers to other threads) 659195972f6Sopenharmony_ci 660195972f6Sopenharmony_ci 2014-02-05: Simon Goldschmidt (patch by "xtian" and "alex_ab") 661195972f6Sopenharmony_ci * patch #6537/#7858: TCP window scaling support 662195972f6Sopenharmony_ci 663195972f6Sopenharmony_ci 2014-01-17: Jiri Engelthaler 664195972f6Sopenharmony_ci * icmp, icmp6, opt.h: patch #8027: Completed HW checksuming for IPv4 and 665195972f6Sopenharmony_ci IPv6 ICMP's 666195972f6Sopenharmony_ci 667195972f6Sopenharmony_ci 2012-08-22: Sylvain Rochet 668195972f6Sopenharmony_ci * New PPP stack for lwIP, developed in ppp-new branch. 669195972f6Sopenharmony_ci Based from pppd 2.4.5, released 2009-11-17, with huge changes to match 670195972f6Sopenharmony_ci code size and memory requirements for embedded devices, including: 671195972f6Sopenharmony_ci - Gluing together the previous low-level PPP code in lwIP to pppd 2.4.5, which 672195972f6Sopenharmony_ci is more or less what pppd sys-* files are, so that we get something working 673195972f6Sopenharmony_ci using the unix port. 674195972f6Sopenharmony_ci - Merged some patchs from lwIP Git repository which add interesting features 675195972f6Sopenharmony_ci or fix bugs. 676195972f6Sopenharmony_ci - Merged some patchs from Debian pppd package which add interesting features 677195972f6Sopenharmony_ci or fix bugs. 678195972f6Sopenharmony_ci - Ported PPP timeout handling to the lwIP timers system 679195972f6Sopenharmony_ci - Disabled all the PPP code using filesystem access, replaced in necessary cases 680195972f6Sopenharmony_ci to configuration variables. 681195972f6Sopenharmony_ci - Disabled all the PPP code forking processes. 682195972f6Sopenharmony_ci - Removed IPX support, lwIP does not support IPX. 683195972f6Sopenharmony_ci - Ported and improved random module from the previous PPP port. 684195972f6Sopenharmony_ci - Removed samba TDB (file-driven database) usage, because it needs a filesystem. 685195972f6Sopenharmony_ci - MS-CHAP required a DES implementation, we added the latest PolarSSL DES 686195972f6Sopenharmony_ci implementation which is under a BSD-ish license. 687195972f6Sopenharmony_ci - Also switched to PolarSSL MD4,MD5,SHA1 implementations, which are meant to be 688195972f6Sopenharmony_ci used in embedded devices with reduced memory footprint. 689195972f6Sopenharmony_ci - Removed PPP configuration file parsing support. 690195972f6Sopenharmony_ci - Added macro definition EAP_SUPPORT to make EAP support optional. 691195972f6Sopenharmony_ci - Added macro definition CHAP_SUPPORT to make CHAP support optional. 692195972f6Sopenharmony_ci - Added macro definition MSCHAP_SUPPORT to make MSCHAP support optional. 693195972f6Sopenharmony_ci - Added macro definition PAP_SUPPORT to make PAP support optional. 694195972f6Sopenharmony_ci - Cleared all Linux syscall calls. 695195972f6Sopenharmony_ci - Disabled demand support using a macro, so that it can be ported later. 696195972f6Sopenharmony_ci - Disabled ECP support using a macro, so that it can be ported later. 697195972f6Sopenharmony_ci - Disabled CCP support using a macro, so that it can be ported later. 698195972f6Sopenharmony_ci - Disabled CBCP support using a macro, so that it can be ported later. 699195972f6Sopenharmony_ci - Disabled LQR support using a macro, so that it can be ported later. 700195972f6Sopenharmony_ci - Print packet debug feature optional, through PRINTPKT_SUPPORT 701195972f6Sopenharmony_ci - Removed POSIX signal usage. 702195972f6Sopenharmony_ci - Fully ported PPPoS code from the previous port. 703195972f6Sopenharmony_ci - Fully ported PPPoE code from the previous port. 704195972f6Sopenharmony_ci - Fully ported VJ compression protocol code from the previous port. 705195972f6Sopenharmony_ci - Removed all malloc()/free() use from PPP, replaced by stack usage or PBUF. 706195972f6Sopenharmony_ci - Disabled PPP server support using a macro, so that it can be ported later. 707195972f6Sopenharmony_ci - Switched all PPP debug to lwIP debug system. 708195972f6Sopenharmony_ci - Created PPP Control Block (PPP PCB), removed PPP unit integer everywhere, 709195972f6Sopenharmony_ci removed all global variables everywhere, did everything necessary for 710195972f6Sopenharmony_ci the PPP stack to support more than one PPP session (pppd only support 711195972f6Sopenharmony_ci one session per process). 712195972f6Sopenharmony_ci - Removed the statically allocated output buffer, now using PBUF. 713195972f6Sopenharmony_ci - Improved structure size of all PPP modules, deep analyze of code to reduce 714195972f6Sopenharmony_ci variables size to the bare minimum. Switched all boolean type (char type in 715195972f6Sopenharmony_ci most architecture) to compiler generated bitfields. 716195972f6Sopenharmony_ci - Added PPP IPv6 support, glued lwIP IPv6 support to PPP. 717195972f6Sopenharmony_ci - Now using a persistent netif interface which can then be used in lwIP 718195972f6Sopenharmony_ci functions requiring a netif. 719195972f6Sopenharmony_ci - Now initializing PPP in lwip_init() function. 720195972f6Sopenharmony_ci - Reworked completely the PPP state machine, so that we don't end up in 721195972f6Sopenharmony_ci anymore in inconsistent state, especially with PPPoE. 722195972f6Sopenharmony_ci - Improved the way we handle PPP reconnection after disconnect, cleaning 723195972f6Sopenharmony_ci everything required so that we start the PPP connection again from a 724195972f6Sopenharmony_ci clean state. 725195972f6Sopenharmony_ci - Added PPP holdoff support, allow the lwIP user to wait a little bit before 726195972f6Sopenharmony_ci reconnecting, prevents connection flood, especially when using PPPoL2TP. 727195972f6Sopenharmony_ci - Added PPPoL2TP LAC support (a.k.a. UDP tunnels), adding a VPN client 728195972f6Sopenharmony_ci feature to lwIP, L2TP being a widely used tunnel protocol. 729195972f6Sopenharmony_ci - Switched all used PPP types to lwIP types (u8t, u16t, u32t, ...) 730195972f6Sopenharmony_ci - Added PPP API "sequential" thread-safe API, based from NETIFAPI. 731195972f6Sopenharmony_ci 732195972f6Sopenharmony_ci 2011-07-21: Simon Goldschmidt 733195972f6Sopenharmony_ci * sockets.c, opt.h: (bug #30185): added LWIP_FIONREAD_LINUXMODE that makes 734195972f6Sopenharmony_ci ioctl/FIONREAD return the size of the next pending datagram. 735195972f6Sopenharmony_ci 736195972f6Sopenharmony_ci 2011-05-25: Simon Goldschmidt 737195972f6Sopenharmony_ci * again nearly the whole stack, renamed ip.c to ip4.c, ip_addr.c to ip4_addr.c, 738195972f6Sopenharmony_ci combined ipv4/ipv6 inet_chksum.c, added ip.h, ip_addr.h: Combined IPv4 739195972f6Sopenharmony_ci and IPv6 code where possible, added defines to access IPv4/IPv6 in non-IP 740195972f6Sopenharmony_ci code so that the code is more readable. 741195972f6Sopenharmony_ci 742195972f6Sopenharmony_ci 2011-05-17: Patch by Ivan Delamer (only checked in by Simon Goldschmidt) 743195972f6Sopenharmony_ci * nearly the whole stack: Finally, we got decent IPv6 support, big thanks to 744195972f6Sopenharmony_ci Ivan! (this is work in progress: we're just post release anyway :-) 745195972f6Sopenharmony_ci 746195972f6Sopenharmony_ci 747195972f6Sopenharmony_ci ++ Bugfixes: 748195972f6Sopenharmony_ci 749195972f6Sopenharmony_ci 2016-08-23: Simon Goldschmidt 750195972f6Sopenharmony_ci * etharp: removed ETHARP_TRUST_IP_MAC since it is insecure and we don't need 751195972f6Sopenharmony_ci it any more after implementing unicast ARP renewal towards arp entry timeout 752195972f6Sopenharmony_ci 753195972f6Sopenharmony_ci 2016-07-20: Simon Goldschmidt 754195972f6Sopenharmony_ci * memp.h/.c: fixed bug #48442 (memp stats don't work for MEMP_MEM_MALLOC) 755195972f6Sopenharmony_ci 756195972f6Sopenharmony_ci 2016-07-21: Simon Goldschmidt (patch by Ambroz Bizjak) 757195972f6Sopenharmony_ci * tcp_in.c, tcp_out.c: fixed bug #48543 (TCP sent callback may prematurely 758195972f6Sopenharmony_ci report sent data when only part of a segment is acked) and don't include 759195972f6Sopenharmony_ci SYN/FIN in snd_buf counter 760195972f6Sopenharmony_ci 761195972f6Sopenharmony_ci 2016-07-19: Simon Goldschmidt 762195972f6Sopenharmony_ci * etharp.c: fixed bug #48477 (ARP input packet might update static entry) 763195972f6Sopenharmony_ci 764195972f6Sopenharmony_ci 2016-07-11: Simon Goldschmidt 765195972f6Sopenharmony_ci * tcp_in.c: fixed bug #48476 (TCP sent callback called wrongly due to picking 766195972f6Sopenharmony_ci up old pcb->acked 767195972f6Sopenharmony_ci 768195972f6Sopenharmony_ci 2016-06-30: Simon Goldschmidt (original patch by Fabian Koch) 769195972f6Sopenharmony_ci * tcp_in.c: fixed bug #48170 (Vulnerable to TCP RST spoofing) 770195972f6Sopenharmony_ci 771195972f6Sopenharmony_ci 2016-05-20: Dirk Ziegelmeier 772195972f6Sopenharmony_ci * sntp.h/.c: Fix return value of sntp_getserver() call to return a pointer 773195972f6Sopenharmony_ci 774195972f6Sopenharmony_ci 2016-04-05: Simon Goldschmidt (patch by Philip Gladstone) 775195972f6Sopenharmony_ci * udp.c: patch #8358: allow more combinations of listening PCB for IPv6 776195972f6Sopenharmony_ci 777195972f6Sopenharmony_ci 2016-04-05: Simon Goldschmidt 778195972f6Sopenharmony_ci * netconn/socket API: fixed bug# 43739 (Accept not reporting errors about 779195972f6Sopenharmony_ci aborted connections): netconn_accept() returns ERR_ABRT (sockets: ECONNABORTED) 780195972f6Sopenharmony_ci for aborted connections, ERR_CLSD (sockets: EINVAL) if the listening netconn 781195972f6Sopenharmony_ci is closed, which better seems to follow the standard. 782195972f6Sopenharmony_ci 783195972f6Sopenharmony_ci 2016-03-23: Florent Matignon 784195972f6Sopenharmony_ci * dhcp.c: fixed bug #38203: DHCP options are not recorded in all DHCP ack messages 785195972f6Sopenharmony_ci 786195972f6Sopenharmony_ci 2016-03-22: Simon Goldschmidt 787195972f6Sopenharmony_ci * tcp: changed accept handling to be done internally: the application does not 788195972f6Sopenharmony_ci have to call tcp_accepted() any more. Instead, when delaying accept (e.g. sockets 789195972f6Sopenharmony_ci do), call tcp_backlog_delayed()/tcp_backlog_accepted() (fixes bug #46696) 790195972f6Sopenharmony_ci 791195972f6Sopenharmony_ci 2016-03-22: Simon Goldschmidt 792195972f6Sopenharmony_ci * dns.c: ignore dns response parsing errors, only abort resolving for correct 793195972f6Sopenharmony_ci responses or error responses from correct server (bug #47459) 794195972f6Sopenharmony_ci 795195972f6Sopenharmony_ci 2016-03-17: Simon Goldschmidt 796195972f6Sopenharmony_ci * api_msg.c: fixed bug #47448 (netconn/socket leak if RST is received during close) 797195972f6Sopenharmony_ci 798195972f6Sopenharmony_ci 2016-03-17: Joel Cunningham 799195972f6Sopenharmony_ci * api_msg.c: don't fail closing a socket/netconn when failing to allocate the 800195972f6Sopenharmony_ci FIN segment; blocking the calling thread for a while is better than risking 801195972f6Sopenharmony_ci leaking a netconn/socket (see bug #46701) 802195972f6Sopenharmony_ci 803195972f6Sopenharmony_ci 2016-03-16: Joel Cunningham 804195972f6Sopenharmony_ci * tcp_out.c: reset rto timer on fast retransmission 805195972f6Sopenharmony_ci 806195972f6Sopenharmony_ci 2016-03-16: Deomid Ryabkov 807195972f6Sopenharmony_ci * tcp_out.c: fixed bug #46384 Segment size calculation bug with MSS != TCP_MSS 808195972f6Sopenharmony_ci 809195972f6Sopenharmony_ci 2016-03-05: Simon Goldschmidt 810195972f6Sopenharmony_ci * err.h/.c, sockets.c: ERR_IF is not necessarily a fatal error 811195972f6Sopenharmony_ci 812195972f6Sopenharmony_ci 2015-11-19: fix by Kerem Hadimli 813195972f6Sopenharmony_ci * sockets.c: fixed bug #46471: lwip_accept() leaks socket descriptors if new 814195972f6Sopenharmony_ci netconn was already closed because of peer behavior 815195972f6Sopenharmony_ci 816195972f6Sopenharmony_ci 2015-11-12: fix by Valery Ushakov 817195972f6Sopenharmony_ci * tcp_in.c: fixed bug #46365 tcp_accept_null() should call tcp_abort() 818195972f6Sopenharmony_ci 819195972f6Sopenharmony_ci 2015-10-02: Dirk Ziegelmeier/Simon Goldschmidt 820195972f6Sopenharmony_ci * snmp: cleaned up snmp structs API (fixed race conditions from bug #46089, 821195972f6Sopenharmony_ci reduce ram/rom usage of tables): incompatible change for private MIBs 822195972f6Sopenharmony_ci 823195972f6Sopenharmony_ci 2015-09-30: Simon Goldschmidt 824195972f6Sopenharmony_ci * ip4_addr.c: fixed bug #46072: ip4addr_aton() does not check the number range 825195972f6Sopenharmony_ci of all address parts 826195972f6Sopenharmony_ci 827195972f6Sopenharmony_ci 2015-08-28: Simon Goldschmidt 828195972f6Sopenharmony_ci * tcp.c, tcp_in.c: fixed bug #44023: TCP ssthresh value is unclear: ssthresh 829195972f6Sopenharmony_ci is set to the full send window for active open, too, and is updated once 830195972f6Sopenharmony_ci after SYN to ensure the correct send window is used 831195972f6Sopenharmony_ci 832195972f6Sopenharmony_ci 2015-08-28: Simon Goldschmidt 833195972f6Sopenharmony_ci * tcp: fixed bug #45559: Window scaling casts u32_t to u16_t without checks 834195972f6Sopenharmony_ci 835195972f6Sopenharmony_ci 2015-08-26: Simon Goldschmidt 836195972f6Sopenharmony_ci * ip6_frag.h/.c: fixed bug bug #41009: IPv6 reassembly broken on 64-bit platforms: 837195972f6Sopenharmony_ci define IPV6_FRAG_COPYHEADER==1 on these platforms to copy the IPv6 header 838195972f6Sopenharmony_ci instead of referencing it, which gives more room for struct ip6_reass_helper 839195972f6Sopenharmony_ci 840195972f6Sopenharmony_ci 2015-08-25: Simon Goldschmidt 841195972f6Sopenharmony_ci * sockets.c: fixed bug #45827: recvfrom: TCP window is updated with MSG_PEEK 842195972f6Sopenharmony_ci 843195972f6Sopenharmony_ci 2015-08-20: Manoj Kumar 844195972f6Sopenharmony_ci * snmp_msg.h, msg_in.c: fixed bug #43790: Sending octet string of Length >255 845195972f6Sopenharmony_ci from SNMP agent 846195972f6Sopenharmony_ci 847195972f6Sopenharmony_ci 2015-08-19: Jens Nielsen 848195972f6Sopenharmony_ci * icmp.c, ip4.c, tcp_in.c, udp.c, raw.c: fixed bug #45120: Broadcast & multiple 849195972f6Sopenharmony_ci interfaces handling 850195972f6Sopenharmony_ci 851195972f6Sopenharmony_ci 2015-08-19: Simon Goldschmidt (patch by "Sandra") 852195972f6Sopenharmony_ci * dns.c: fixed bug #45004: dns response without answer might be discarded 853195972f6Sopenharmony_ci 854195972f6Sopenharmony_ci 2015-08-18: Chrysn 855195972f6Sopenharmony_ci * timers.c: patch #8704 fix sys_timeouts_sleeptime function 856195972f6Sopenharmony_ci 857195972f6Sopenharmony_ci 2015-07-01: Erik Ekman 858195972f6Sopenharmony_ci * puf.c: fixed bug #45454 (pbuf_take_at() skips write and returns OK if offset 859195972f6Sopenharmony_ci is at start of pbuf in chain) 860195972f6Sopenharmony_ci 861195972f6Sopenharmony_ci 2015-05-19: Simon Goldschmidt 862195972f6Sopenharmony_ci * dhcp.h/.c: fixed bugs #45140 and #45141 (dhcp was not stopped correctly after 863195972f6Sopenharmony_ci fixing bug #38204) 864195972f6Sopenharmony_ci 865195972f6Sopenharmony_ci 2015-03-21: Simon Goldschmidt (patch by Homyak) 866195972f6Sopenharmony_ci * tcp_in.c: fixed bug #44766 (LWIP_WND_SCALE: tcphdr->wnd was not scaled in 867195972f6Sopenharmony_ci two places) 868195972f6Sopenharmony_ci 869195972f6Sopenharmony_ci 2015-03-21: Simon Goldschmidt 870195972f6Sopenharmony_ci * tcp_impl.h, tcp.c, tcp_in.c: fixed bug #41318 (Bad memory ref in tcp_input() 871195972f6Sopenharmony_ci after tcp_close()) 872195972f6Sopenharmony_ci 873195972f6Sopenharmony_ci 2015-03-21: Simon Goldschmidt 874195972f6Sopenharmony_ci * tcp_in.c: fixed bug #38468 (tcp_sent() not called on half-open connection for 875195972f6Sopenharmony_ci data ACKed with the same ack as FIN) 876195972f6Sopenharmony_ci 877195972f6Sopenharmony_ci 2015-03-21: Simon Goldschmidt (patch by Christoffer Lind) 878195972f6Sopenharmony_ci * dhcp.h/.c: fixed bug #38204 (DHCP lease time not handled correctly) 879195972f6Sopenharmony_ci 880195972f6Sopenharmony_ci 2015-03-20: Simon Goldschmidt 881195972f6Sopenharmony_ci * dhcp.c: fixed bug #38714 (Missing option and client address in DHCPRELEASE message) 882195972f6Sopenharmony_ci 883195972f6Sopenharmony_ci 2015-03-19: Simon Goldschmidt 884195972f6Sopenharmony_ci * api.h, tcpip.h, api_lib.c, api_msg.c: fixed race conditions in assigning 885195972f6Sopenharmony_ci netconn->last_err (fixed bugs #38121 and #37676) 886195972f6Sopenharmony_ci 887195972f6Sopenharmony_ci 2015-03-09: Simon Goldschmidt 888195972f6Sopenharmony_ci * ip4.c: fixed the IPv4 part of bug #43904 (ip_route() must detect linkup status) 889195972f6Sopenharmony_ci 890195972f6Sopenharmony_ci 2015-03-04: Simon Goldschmidt 891195972f6Sopenharmony_ci * nd6.c: fixed bug #43784 (a host should send at least one Router Solicitation) 892195972f6Sopenharmony_ci 893195972f6Sopenharmony_ci 2015-03-04: Valery Ushakov 894195972f6Sopenharmony_ci * ip6.c: fixed bug #41094 (Byte-order bug in IPv6 fragmentation header test) 895195972f6Sopenharmony_ci 896195972f6Sopenharmony_ci 2015-03-04: Zach Smith 897195972f6Sopenharmony_ci * nd6.c: fixed bug #38153 (nd6_input() byte order issues) 898195972f6Sopenharmony_ci 899195972f6Sopenharmony_ci 2015-02-26: Simon Goldschmidt 900195972f6Sopenharmony_ci * netif.c, tcp.h/.c: fixed bug #44378 (TCP connections are not aborted on netif 901195972f6Sopenharmony_ci remove) 902195972f6Sopenharmony_ci 903195972f6Sopenharmony_ci 2015-02-25: Simon Goldschmidt 904195972f6Sopenharmony_ci * ip4.c, etharp.c: fixed bug #40177 (System hangs when dealing with corrupted 905195972f6Sopenharmony_ci packets), implemented task #12357 (Ensure that malicious packets don't 906195972f6Sopenharmony_ci assert-fail): improved some pbuf_header calls to not assert-fail. 907195972f6Sopenharmony_ci 908195972f6Sopenharmony_ci 2015-02-25: patch by Joel Cunningham 909195972f6Sopenharmony_ci * udp.h/.c, sockets.c: fixed bug #43028 (IP_MULTICAST_TTL affects unicast 910195972f6Sopenharmony_ci datagrams) 911195972f6Sopenharmony_ci 912195972f6Sopenharmony_ci 2015-02-25: patch by Greg Renda 913195972f6Sopenharmony_ci * ip4_frag.c: fixed bug #38210 (ip reassembly while remove oldest datagram) 914195972f6Sopenharmony_ci 915195972f6Sopenharmony_ci 2015-02-25: Simon Goldschmidt 916195972f6Sopenharmony_ci * sockets.c: fixed bug #38165 (socket with mulicast): ensure igmp membership 917195972f6Sopenharmony_ci are dropped when socket (not netconn!) is closed. 918195972f6Sopenharmony_ci 919195972f6Sopenharmony_ci 2015-02-25: Simon Goldschmidt 920195972f6Sopenharmony_ci * ip4.h/.c, udp.c: fixed bug #38061 (wrong multicast routing in IPv4) by 921195972f6Sopenharmony_ci adding an optional default netif for multicast routing 922195972f6Sopenharmony_ci 923195972f6Sopenharmony_ci 2015-02-25: Simon Goldschmidt 924195972f6Sopenharmony_ci * netconn API: fixed that netconn_connect still used message passing for 925195972f6Sopenharmony_ci LWIP_TCPIP_CORE_LOCKING==1 926195972f6Sopenharmony_ci 927195972f6Sopenharmony_ci 2015-02-22: patch by Jens Nielsen 928195972f6Sopenharmony_ci * icmp.c: fixed bug #38803 (Source address in broadcast ping reply) 929195972f6Sopenharmony_ci 930195972f6Sopenharmony_ci 2015-02-22: Simon Goldschmidt 931195972f6Sopenharmony_ci * udp.h, sockets.c: added proper accessor functions for pcb->multicast_ip 932195972f6Sopenharmony_ci (previously used by get/setsockopt only) 933195972f6Sopenharmony_ci 934195972f6Sopenharmony_ci 2015-02-18: Simon Goldschmidt 935195972f6Sopenharmony_ci * sockets.c: Fixed select not reporting received FIN as 'readable' in certain 936195972f6Sopenharmony_ci rare cases (bug #43779: select(), close(), and TCP retransmission error) 937195972f6Sopenharmony_ci 938195972f6Sopenharmony_ci 2015-02-17: Simon Goldschmidt 939195972f6Sopenharmony_ci * err.h, sockets.c, api_msg.c: fixed bug #38853 "connect() use a wrong errno": 940195972f6Sopenharmony_ci return ERR_ALREADY/EALRADY during connect, ERR_ISCONN/EISCONN when already 941195972f6Sopenharmony_ci connected 942195972f6Sopenharmony_ci 943195972f6Sopenharmony_ci 2015-02-17: Simon Goldschmidt 944195972f6Sopenharmony_ci * tcp_impl.h, tcp_out.c, tcp.c, api_msg.c: fixed bug #37614 "Errors from 945195972f6Sopenharmony_ci ipX_output are not processed". Now tcp_output(_segment) checks for the return 946195972f6Sopenharmony_ci value of ipX_output and does not try to send more on error. A netif driver 947195972f6Sopenharmony_ci can call tcp_txnow() (from tcpip_thread!) to try to send again if TX buffers 948195972f6Sopenharmony_ci are available again. 949195972f6Sopenharmony_ci 950195972f6Sopenharmony_ci 2015-02-14: patches by Freddie Chopin 951195972f6Sopenharmony_ci * snmp*: made community writable, fixed some const pointers 952195972f6Sopenharmony_ci 953195972f6Sopenharmony_ci 2015-02-13: Simon Goldschmidt 954195972f6Sopenharmony_ci * msg_in.c: fixed bug #22070 "MIB_OBJECT_WRITE_ONLY not implemented in SNMP" 955195972f6Sopenharmony_ci 956195972f6Sopenharmony_ci 2015-02-12: Simon Goldschmidt 957195972f6Sopenharmony_ci * ip.h, ip4.c, ip6.c: fixed bug #36403 "ip4_input() and ip6_input() always pass 958195972f6Sopenharmony_ci inp to higher layers": now the accepting netif is passed up, but the input 959195972f6Sopenharmony_ci netif is available through ip_current_input_netif() if required. 960195972f6Sopenharmony_ci 961195972f6Sopenharmony_ci 2015-02-11: patch by hichard 962195972f6Sopenharmony_ci * tcpip.c: fixed bug #43094 "The function tcpip_input() forget to handle IPv6" 963195972f6Sopenharmony_ci 964195972f6Sopenharmony_ci 2015-02-10: Simon Goldschmidt 965195972f6Sopenharmony_ci * netconn API: fixed that netconn_close/netconn_delete still used message passing 966195972f6Sopenharmony_ci for LWIP_TCPIP_CORE_LOCKING==1 967195972f6Sopenharmony_ci 968195972f6Sopenharmony_ci 2015-02-10: Simon Goldschmidt 969195972f6Sopenharmony_ci * netconn/socket api: fixed bug #44225 "closing TCP socket should time out 970195972f6Sopenharmony_ci eventually", implemented task #6930 "Implement SO_LINGER": closing TCP sockets 971195972f6Sopenharmony_ci times out after 20 seconds or after the configured SND_TIMEOUT or depending 972195972f6Sopenharmony_ci on the linger settings. 973195972f6Sopenharmony_ci 974195972f6Sopenharmony_ci 2015-01-27: Simon Goldschmidt 975195972f6Sopenharmony_ci * api_msg.c: fixed that SHUT_RD followed by SHUT_WR was different to SHUT_RDWR, 976195972f6Sopenharmony_ci fixed return value of lwip_netconn_do_close on unconnected netconns 977195972f6Sopenharmony_ci 978195972f6Sopenharmony_ci 2015-01-17: Simon Goldschmidt 979195972f6Sopenharmony_ci * sockets.c: fixed bug #43361 select() crashes with stale FDs 980195972f6Sopenharmony_ci 981195972f6Sopenharmony_ci 2015-01-17: Simon Goldschmidt 982195972f6Sopenharmony_ci * sockets.c/.h, memp_std.h: fixed bug #40788 "lwip_setsockopt_internal() crashes" 983195972f6Sopenharmony_ci by rewriting set/getsockopt functions to combine checks with the actual code 984195972f6Sopenharmony_ci and add more NULL checks; this also fixes that CORE_LOCKING used message 985195972f6Sopenharmony_ci passing for set/getsockopt. 986195972f6Sopenharmony_ci 987195972f6Sopenharmony_ci 2014-12-19: Simon Goldschmidt 988195972f6Sopenharmony_ci * opt.h, dhcp.h/.c: prevent dhcp from starting when netif link is down (only 989195972f6Sopenharmony_ci when LWIP_DHCP_CHECK_LINK_UP==1, which is disabled by default for 990195972f6Sopenharmony_ci compatibility reasons) 991195972f6Sopenharmony_ci 992195972f6Sopenharmony_ci 2014-12-17: Simon Goldschmidt 993195972f6Sopenharmony_ci * tcp_out.c: fixed bug #43840 Checksum error for TCP_CHECKSUM_ON_COPY==1 for 994195972f6Sopenharmony_ci no-copy data with odd length 995195972f6Sopenharmony_ci 996195972f6Sopenharmony_ci 2014-12-10: Simon Goldschmidt 997195972f6Sopenharmony_ci * sockets.c, tcp.c, others: fixed bug #43797 set/getsockopt: SO_SNDTIMEO/SO_RCVTIMEO 998195972f6Sopenharmony_ci take int as option but should take timeval (LWIP_SO_SNDRCVTIMEO_STANDARD==0 can 999195972f6Sopenharmony_ci be used to revert to the old 'winsock' style behaviour) 1000195972f6Sopenharmony_ci Fixed implementation of SO_ACCEPTCONN to just look at the pcb state 1001195972f6Sopenharmony_ci 1002195972f6Sopenharmony_ci 2014-12-09: Simon Goldschmidt 1003195972f6Sopenharmony_ci * ip4.c: fixed bug #43596 IGMP queries from 0.0.0.0 are discarded 1004195972f6Sopenharmony_ci 1005195972f6Sopenharmony_ci 2014-10-21: Simon Goldschmidt (patch by Joel Cunningham and Albert Huitsing) 1006195972f6Sopenharmony_ci * sockts.c: fixed bugs #41495 Possible threading issue in select() and #43278 1007195972f6Sopenharmony_ci event_callback() handle context switch when calling sys_sem_signal() 1008195972f6Sopenharmony_ci 1009195972f6Sopenharmony_ci 2014-10-21: Simon Goldschmidt 1010195972f6Sopenharmony_ci * api_msg.c: fixed bug #38219 Assert on TCP netconn_write with sndtimeout set 1011195972f6Sopenharmony_ci 1012195972f6Sopenharmony_ci 2014-09-16: Kevin Cernekee 1013195972f6Sopenharmony_ci * dns.c: patch #8480 Fix handling of dns_seqno wraparound 1014195972f6Sopenharmony_ci 1015195972f6Sopenharmony_ci 2014-09-16: Simon Goldschmidt 1016195972f6Sopenharmony_ci * tcp_out.c: fixed bug #43192 tcp_enqueue_flags() should not check TCP_SND_QUEUELEN 1017195972f6Sopenharmony_ci when sending FIN 1018195972f6Sopenharmony_ci 1019195972f6Sopenharmony_ci 2014-09-03: Simon Goldschmidt 1020195972f6Sopenharmony_ci * msg_in.c: fixed bug #39355 SNMP Memory Leak in case of error 1021195972f6Sopenharmony_ci 1022195972f6Sopenharmony_ci 2014-09-02: Simon Goldschmidt 1023195972f6Sopenharmony_ci * err.h/.c, sockets.c, api_msg.c: fixed bug #43110 call getpeername() before 1024195972f6Sopenharmony_ci listen() will cause a error 1025195972f6Sopenharmony_ci 1026195972f6Sopenharmony_ci 2014-09-02: Simon Goldschmidt 1027195972f6Sopenharmony_ci * sockets.c: fixed bug #42117 lwip_fcntl does not set errno 1028195972f6Sopenharmony_ci 1029195972f6Sopenharmony_ci 2014-09-02: Simon Goldschmidt 1030195972f6Sopenharmony_ci * tcp.c: fixed bug #42299 tcp_abort() leaves freed pcb on tcp_bound_pcbs list 1031195972f6Sopenharmony_ci 1032195972f6Sopenharmony_ci 2014-08-20: Simon Goldschmidt 1033195972f6Sopenharmony_ci * dns.c: fixed bug #42987 lwIP is vulnerable to DNS cache poisoning due to 1034195972f6Sopenharmony_ci non-randomized TXIDs 1035195972f6Sopenharmony_ci 1036195972f6Sopenharmony_ci 2014-06-03: Simon Goldschmidt 1037195972f6Sopenharmony_ci * tcp_impl.h, tcp_in.c: fixed bug #37969 SYN packet dropped as short packet in 1038195972f6Sopenharmony_ci tcp_input function 1039195972f6Sopenharmony_ci 1040195972f6Sopenharmony_ci 2014-05-20: Simon Goldschmidt 1041195972f6Sopenharmony_ci * tcp_out.c: fixed bug #37184 tcp_write problem for pcbs in the SYN_SENT state 1042195972f6Sopenharmony_ci 1043195972f6Sopenharmony_ci 2014-05-19: Simon Goldschmidt 1044195972f6Sopenharmony_ci * *.h: Fixed bug #35874 reserved identifier violation (removed leading underscores 1045195972f6Sopenharmony_ci from header include guards) 1046195972f6Sopenharmony_ci 1047195972f6Sopenharmony_ci 2014-04-08: Simon Goldschmidt 1048195972f6Sopenharmony_ci * tcp.c: Fixed bug #36167 tcp server crash when client closes (maximum window) 1049195972f6Sopenharmony_ci 1050195972f6Sopenharmony_ci 2014-04-06: Simon Goldschmidt 1051195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #36210 lwIP does not elicit an empty ACK when received 1052195972f6Sopenharmony_ci unacceptable ACK 1053195972f6Sopenharmony_ci 1054195972f6Sopenharmony_ci 2014-04-06: Simon Goldschmidt 1055195972f6Sopenharmony_ci * dhcp.c, ip4.c/.h, ip6.c/.h, udp.c/.h, ip.h: Fixed bug #41787 DHCP Discovery 1056195972f6Sopenharmony_ci is invalid when an IP is set to thet netif. 1057195972f6Sopenharmony_ci 1058195972f6Sopenharmony_ci 2014-03-14: Simon Goldschmidt 1059195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #36153 TCP Cheksum error if LWIP_CHECKSUM_ON_COPY=1 1060195972f6Sopenharmony_ci 1061195972f6Sopenharmony_ci 2014-03-11: Simon Goldschmidt (patch by Mason) 1062195972f6Sopenharmony_ci * opt.h, sockets.c: fixed bug #35928 BSD sockets functions must set errno for 1063195972f6Sopenharmony_ci POSIX-compliance 1064195972f6Sopenharmony_ci 1065195972f6Sopenharmony_ci 2014-02-27: Simon Goldschmidt 1066195972f6Sopenharmony_ci * dhcp.c: fixed bug #40303 DHCP xid renewed when sending a DHCPREQUEST 1067195972f6Sopenharmony_ci 1068195972f6Sopenharmony_ci 2014-02-27: Simon Goldschmidt 1069195972f6Sopenharmony_ci * raw.c: fixed bug #41680 raw socket can not receive IPv6 packet when 1070195972f6Sopenharmony_ci IP_SOF_BROADCAST_RECV==1 1071195972f6Sopenharmony_ci 1072195972f6Sopenharmony_ci 2014-02-27: Simon Goldschmidt 1073195972f6Sopenharmony_ci * api_msg.c, sockets.c: fixed bug #38404 getpeeraddr returns success on 1074195972f6Sopenharmony_ci unconnected/listening TCP sockets 1075195972f6Sopenharmony_ci 1076195972f6Sopenharmony_ci 2014-02-27: Simon Goldschmidt 1077195972f6Sopenharmony_ci * sockets.c: fixed bug #41729 Some socket functions return Exyz instead of -1 1078195972f6Sopenharmony_ci 1079195972f6Sopenharmony_ci 2014-02-25: Simon Goldschmidt 1080195972f6Sopenharmony_ci * ip4.c: fixed bug #39514 ip_route() may return an IPv6-only interface 1081195972f6Sopenharmony_ci 1082195972f6Sopenharmony_ci 2014-02-25: Simon Goldschmidt, patch by Fatih Asici 1083195972f6Sopenharmony_ci * pbuf.c: fixed bug #39356 Wrong increment in pbuf_memfind() 1084195972f6Sopenharmony_ci 1085195972f6Sopenharmony_ci 2014-02-25: Simon Goldschmidt 1086195972f6Sopenharmony_ci * netif.c/.h, udp.c: fixed bug #39225 udp.c uses netif_matches_ip6_addr() incorrectly; 1087195972f6Sopenharmony_ci renamed function netif_matches_ip6_addr() to netif_get_ip6_addr_match() 1088195972f6Sopenharmony_ci 1089195972f6Sopenharmony_ci 2014-02-25: Simon Goldschmidt 1090195972f6Sopenharmony_ci * igmp.c: fixed bug #39145 IGMP membership report for 224.0.0.1 1091195972f6Sopenharmony_ci 1092195972f6Sopenharmony_ci 2014-02-22: Simon Goldschmidt (patch by Amir Shalem) 1093195972f6Sopenharmony_ci * etharp.c, opt.h: fixed bug #34681 Limit ARP queue length by ARP_QUEUE_LEN (=3) 1094195972f6Sopenharmony_ci 1095195972f6Sopenharmony_ci 2014-02-22: Simon Goldschmidt (patch by Amir Shalem) 1096195972f6Sopenharmony_ci * etharp.h/.c: fixed bug #34682 Limit ARP request flood for unresolved entry 1097195972f6Sopenharmony_ci 1098195972f6Sopenharmony_ci 2014-02-20: Simon Goldschmidt 1099195972f6Sopenharmony_ci * tcp_out.c: fixed bug #39683 Assertion "seg->tcphdr not aligned" failed with 1100195972f6Sopenharmony_ci MEM_ALIGNMENT = 8 1101195972f6Sopenharmony_ci 1102195972f6Sopenharmony_ci 2014-02-20: Simon Goldschmidt 1103195972f6Sopenharmony_ci * sockets.c: fixed bug #39882 No function shall set errno to 0 1104195972f6Sopenharmony_ci 1105195972f6Sopenharmony_ci 2014-02-20: Simon Goldschmidt 1106195972f6Sopenharmony_ci * mib_structs.c: fixed bug #40050 SNMP problem with MIB arrays > 255 1107195972f6Sopenharmony_ci 1108195972f6Sopenharmony_ci 2014-02-20: Simon Goldschmidt 1109195972f6Sopenharmony_ci * api.h, sockets.c: fixed bug #41499 netconn::recv_avail can overflow 1110195972f6Sopenharmony_ci 1111195972f6Sopenharmony_ci 2014-01-08: Stathis Voukelatos 1112195972f6Sopenharmony_ci * memp_std.h: patch #7928 Fixed size calculation in MALLOC memory pool 1113195972f6Sopenharmony_ci creation macro 1114195972f6Sopenharmony_ci 1115195972f6Sopenharmony_ci 2014-01-18: Brian Fahs 1116195972f6Sopenharmony_ci * tcp_out.c: patch #8237: tcp_rexmit_rto fails to update pcb->unsent_oversize 1117195972f6Sopenharmony_ci when necessary 1118195972f6Sopenharmony_ci 1119195972f6Sopenharmony_ci 2014-01-17: Grant Erickson, Jay Logue, Simon Goldschmidt 1120195972f6Sopenharmony_ci * ipv6.c, netif.c: patch #7913 Enable Support for IPv6 Loopback 1121195972f6Sopenharmony_ci 1122195972f6Sopenharmony_ci 2014-01-16: Stathis Voukelatos 1123195972f6Sopenharmony_ci * netif.c: patch #7902 Fixed netif_poll() operation when LWIP_LOOPBACK_MAX_PBUFS > 0 1124195972f6Sopenharmony_ci 1125195972f6Sopenharmony_ci 2014-01-14: "Freddie Chopin" 1126195972f6Sopenharmony_ci * snmp.h, mib2.c: fixed constness and spelling of sysdescr 1127195972f6Sopenharmony_ci 1128195972f6Sopenharmony_ci 2014-01-14: Simon Goldschmidt (patch by Thomas Faber) 1129195972f6Sopenharmony_ci * tcpip.c: patch #8241: Fix implicit declaration of ip_input with 1130195972f6Sopenharmony_ci LWIP_TCPIP_CORE_LOCKING_INPUT disabled 1131195972f6Sopenharmony_ci 1132195972f6Sopenharmony_ci 2014-01-14: chrysn 1133195972f6Sopenharmony_ci * timers.c: patch #8244 make timeouts usable reliably from outside of the 1134195972f6Sopenharmony_ci timeout routine 1135195972f6Sopenharmony_ci 1136195972f6Sopenharmony_ci 2014-01-10: Simon Goldschmidt 1137195972f6Sopenharmony_ci * ip_frag.c, ip6_frag.c: fixed bug #41041 Potential use-after-free in IPv6 reassembly 1138195972f6Sopenharmony_ci 1139195972f6Sopenharmony_ci 2014-01-10: Simon Goldschmidt 1140195972f6Sopenharmony_ci * memp.c: fixed bug #41188 Alignment error in memp_init() when MEMP_SEPARATE_POOLS==1 1141195972f6Sopenharmony_ci 1142195972f6Sopenharmony_ci 2014-01-10: Simon Goldschmidt 1143195972f6Sopenharmony_ci * tcp.c: fixed bug #39898 tcp_fasttmr() possible lock due to infinte queue process loop 1144195972f6Sopenharmony_ci 1145195972f6Sopenharmony_ci 2013-06-29: Simon Goldschmidt 1146195972f6Sopenharmony_ci * inet.h, sockets.h: partially fixed bug #37585: IPv6 compatibility (in socket structs) 1147195972f6Sopenharmony_ci 1148195972f6Sopenharmony_ci 2013-06-29: Simon Goldschmidt 1149195972f6Sopenharmony_ci * inet6.h: bug #37585/task #12600: fixed struct in6_addr.s6_addr to conform to spec 1150195972f6Sopenharmony_ci 1151195972f6Sopenharmony_ci 2013-04-24: patch by Liam <morepork> 1152195972f6Sopenharmony_ci * api_msg.c: patch #8008 Fix a potential null pointer dereference in assert 1153195972f6Sopenharmony_ci 1154195972f6Sopenharmony_ci 2013-04-24: Simon Goldschmidt 1155195972f6Sopenharmony_ci * igmp.c: fixed possible division by zero 1156195972f6Sopenharmony_ci 1157195972f6Sopenharmony_ci 2013-04-24: Simon Goldschmidt 1158195972f6Sopenharmony_ci * ip6.h, some ipv6 C files: fixed bug #38526 Coverity: Recursive Header Inclusion in ip6.h 1159195972f6Sopenharmony_ci 1160195972f6Sopenharmony_ci 2013-04-24: Simon Goldschmidt (patch by Emil Ljungdahl): 1161195972f6Sopenharmony_ci * netif.c: fixed bug #38586 netif_loop_output() "deadlocks" 1162195972f6Sopenharmony_ci 1163195972f6Sopenharmony_ci 2013-01-15: Simon Goldschmidt 1164195972f6Sopenharmony_ci * ip4.c: fixed bug #37665 ip_canforward operates on address in wrong byte order 1165195972f6Sopenharmony_ci 1166195972f6Sopenharmony_ci 2013-01-15: Simon Goldschmidt 1167195972f6Sopenharmony_ci * pbuf.h: fixed bug #38097 pbuf_free_ooseq() warning 1168195972f6Sopenharmony_ci 1169195972f6Sopenharmony_ci 2013-01-14: Simon Goldschmidt 1170195972f6Sopenharmony_ci * dns.c: fixed bug #37705 Possible memory corruption in DNS query 1171195972f6Sopenharmony_ci 1172195972f6Sopenharmony_ci 2013-01-11: Simon Goldschmidt 1173195972f6Sopenharmony_ci * raw.c: fixed bug #38066 Raw pcbs can alter packet without eating it 1174195972f6Sopenharmony_ci 1175195972f6Sopenharmony_ci 2012-08-22: Simon Goldschmidt 1176195972f6Sopenharmony_ci * memp.c: fixed bug #37166: memp_sanity check loops itself 1177195972f6Sopenharmony_ci 1178195972f6Sopenharmony_ci 2012-08-13: Simon Goldschmidt 1179195972f6Sopenharmony_ci * dhcp.c: fixed bug #36645: Calling dhcp_release before dhcp_start 1180195972f6Sopenharmony_ci dereferences NULL 1181195972f6Sopenharmony_ci 1182195972f6Sopenharmony_ci 2012-08-13: Simon Goldschmidt 1183195972f6Sopenharmony_ci * msg_out.c: fixed bug #36840 snmp_send_trap() NULL de-reference if traps 1184195972f6Sopenharmony_ci configured but no interfaces available 1185195972f6Sopenharmony_ci 1186195972f6Sopenharmony_ci 2012-08-13: Simon Goldschmidt 1187195972f6Sopenharmony_ci * dns.c: fixed bug #36899 DNS TTL 0 is cached for a long time 1188195972f6Sopenharmony_ci 1189195972f6Sopenharmony_ci 2012-05-11: Simon Goldschmidt (patch by Marty) 1190195972f6Sopenharmony_ci * memp.c: fixed bug #36412: memp.c does not compile when 1191195972f6Sopenharmony_ci MEMP_OVERFLOW_CHECK > zero and MEMP_SEPARATE_POOLS == 1 1192195972f6Sopenharmony_ci 1193195972f6Sopenharmony_ci 2012-05-03: Simon Goldschmidt (patch by Sylvain Rochet) 1194195972f6Sopenharmony_ci * ppp.c: fixed bug #36283 (PPP struct used on header size computation and 1195195972f6Sopenharmony_ci not packed) 1196195972f6Sopenharmony_ci 1197195972f6Sopenharmony_ci 2012-05-03: Simon Goldschmidt (patch by David Empson) 1198195972f6Sopenharmony_ci * ppp.c: fixed bug #36388 (PPP: checksum-only in last pbuf leads to pbuf with 1199195972f6Sopenharmony_ci zero length) 1200195972f6Sopenharmony_ci 1201195972f6Sopenharmony_ci 2012-03-25: Simon Goldschmidt 1202195972f6Sopenharmony_ci * api_msg.c: Fixed bug #35817: do_connect() invalidly signals op_completed 1203195972f6Sopenharmony_ci for UDP/RAW with LWIP_TCPIP_CORE_LOCKING==1 1204195972f6Sopenharmony_ci 1205195972f6Sopenharmony_ci 2012-03-25: Simon Goldschmidt 1206195972f6Sopenharmony_ci * api_msg.h, api_lib.c, api_msg.c, netifapi.c: fixed bug #35931: Name space 1207195972f6Sopenharmony_ci pollution in api_msg.c and netifapi.c 1208195972f6Sopenharmony_ci 1209195972f6Sopenharmony_ci 2011-08-24: Simon Goldschmidt 1210195972f6Sopenharmony_ci * inet6.h: fixed bug #34124 struct in6_addr does not conform to the standard 1211195972f6Sopenharmony_ci 1212195972f6Sopenharmony_ci 1213195972f6Sopenharmony_ci 1214195972f6Sopenharmony_ci(STABLE-1.4.1) 1215195972f6Sopenharmony_ci 1216195972f6Sopenharmony_ci ++ New features: 1217195972f6Sopenharmony_ci 1218195972f6Sopenharmony_ci 2012-03-25: Simon Goldschmidt (idea by Mason) 1219195972f6Sopenharmony_ci * posix/*: added posix-compatibility include files posix/netdb.h and posix/sys/socket.h 1220195972f6Sopenharmony_ci which are a simple wrapper to the correct lwIP include files. 1221195972f6Sopenharmony_ci 1222195972f6Sopenharmony_ci 2012-01-16: Simon Goldschmidt 1223195972f6Sopenharmony_ci * opt.h, icmp.c: Added option CHECKSUM_GEN_ICMP 1224195972f6Sopenharmony_ci 1225195972f6Sopenharmony_ci 2011-12-17: Simon Goldschmidt 1226195972f6Sopenharmony_ci * ip.h: implemented API functions to access so_options of IP pcbs (UDP, TCP, RAW) 1227195972f6Sopenharmony_ci (fixes bug #35061) 1228195972f6Sopenharmony_ci 1229195972f6Sopenharmony_ci 2011-09-27: Simon Goldschmidt 1230195972f6Sopenharmony_ci * opt.h, tcp.c, tcp_in.c: Implemented limiting data on ooseq queue (task #9989) 1231195972f6Sopenharmony_ci (define TCP_OOSEQ_MAX_BYTES / TCP_OOSEQ_MAX_PBUFS in lwipopts.h) 1232195972f6Sopenharmony_ci 1233195972f6Sopenharmony_ci 2011-09-21: Simon Goldschmidt 1234195972f6Sopenharmony_ci * opt.h, api.h, api_lib.c, api_msg.h/.c, sockets.c: Implemented timeout on 1235195972f6Sopenharmony_ci send (TCP only, bug #33820) 1236195972f6Sopenharmony_ci 1237195972f6Sopenharmony_ci 2011-09-21: Simon Goldschmidt 1238195972f6Sopenharmony_ci * init.c: Converted runtime-sanity-checks into compile-time checks that can 1239195972f6Sopenharmony_ci be disabled (since runtime checks can often not be seen on embedded targets) 1240195972f6Sopenharmony_ci 1241195972f6Sopenharmony_ci 2011-09-11: Simon Goldschmidt 1242195972f6Sopenharmony_ci * ppp.h, ppp_impl.h: splitted ppp.h to an internal and external header file 1243195972f6Sopenharmony_ci to get a clear separation of which functions an application or port may use 1244195972f6Sopenharmony_ci (task #11281) 1245195972f6Sopenharmony_ci 1246195972f6Sopenharmony_ci 2011-09-11: Simon Goldschmidt 1247195972f6Sopenharmony_ci * opt.h, tcp_impl.h, tcp.c, udp.h/.c: Added a config option to randomize 1248195972f6Sopenharmony_ci initial local TCP/UDP ports (so that different port ranges are used after 1249195972f6Sopenharmony_ci a reboot; bug #33818; this one added tcp_init/udp_init functions again) 1250195972f6Sopenharmony_ci 1251195972f6Sopenharmony_ci 2011-09-03: Simon Goldschmidt 1252195972f6Sopenharmony_ci * dhcp.c: DHCP uses LWIP_RAND() for xid's (bug #30302) 1253195972f6Sopenharmony_ci 1254195972f6Sopenharmony_ci 2011-08-24: Simon Goldschmidt 1255195972f6Sopenharmony_ci * opt.h, netif.h/.c: added netif remove callback (bug #32397) 1256195972f6Sopenharmony_ci 1257195972f6Sopenharmony_ci 2011-07-26: Simon Goldschmidt 1258195972f6Sopenharmony_ci * etharp.c: ETHARP_SUPPORT_VLAN: add support for an external VLAN filter 1259195972f6Sopenharmony_ci function instead of only checking for one VLAN (define ETHARP_VLAN_CHECK_FN) 1260195972f6Sopenharmony_ci 1261195972f6Sopenharmony_ci 2011-07-21: Simon Goldschmidt (patch by hanhui) 1262195972f6Sopenharmony_ci * ip4.c, etharp.c, pbuf.h: bug #33634 ip_forward() have a faulty behaviour: 1263195972f6Sopenharmony_ci Added pbuf flags to mark incoming packets as link-layer broadcast/multicast. 1264195972f6Sopenharmony_ci Also added code to allow ip_forward() to forward non-broadcast packets to 1265195972f6Sopenharmony_ci the input netif (set IP_FORWARD_ALLOW_TX_ON_RX_NETIF==1). 1266195972f6Sopenharmony_ci 1267195972f6Sopenharmony_ci 2011-06-26: Simon Goldschmidt (patch by Cameron Gutman) 1268195972f6Sopenharmony_ci * tcp.c, tcp_out.c: bug #33604: added some more asserts to check that 1269195972f6Sopenharmony_ci pcb->state != LISTEN 1270195972f6Sopenharmony_ci 1271195972f6Sopenharmony_ci 2011-05-14: Simon Goldschmidt (patch by Stéphane Lesage) 1272195972f6Sopenharmony_ci * tcpip.c/.h: patch #7449 allow tcpip callback from interrupt with static 1273195972f6Sopenharmony_ci memory message 1274195972f6Sopenharmony_ci 1275195972f6Sopenharmony_ci 1276195972f6Sopenharmony_ci ++ Bugfixes: 1277195972f6Sopenharmony_ci 1278195972f6Sopenharmony_ci 2012-09-26: Simon Goldschmidt 1279195972f6Sopenharmony_ci * api_msg.c: fixed bug #37405 'err_tcp()' uses already freed 'netconn' object 1280195972f6Sopenharmony_ci 1281195972f6Sopenharmony_ci 2012-09-26: patch by Henrik Persson 1282195972f6Sopenharmony_ci * dhcp.c: patch #7843 Fix corner case with dhcp timeouts 1283195972f6Sopenharmony_ci 1284195972f6Sopenharmony_ci 2012-09-26: patch by Henrik Persson 1285195972f6Sopenharmony_ci * dhcp.c: patch #7840 Segfault in dhcp_parse_reply if no end marker in dhcp packet 1286195972f6Sopenharmony_ci 1287195972f6Sopenharmony_ci 2012-08-22: Simon Goldschmidt 1288195972f6Sopenharmony_ci * memp.c: fixed bug #37166: memp_sanity check loops itself 1289195972f6Sopenharmony_ci 1290195972f6Sopenharmony_ci 2012-05-08: Simon Goldschmidt 1291195972f6Sopenharmony_ci * tcp_out.c: fixed bug: #36380 unsent_oversize mismatch in 1.4.1RC1 (this was 1292195972f6Sopenharmony_ci a debug-check issue only) 1293195972f6Sopenharmony_ci 1294195972f6Sopenharmony_ci 2012-03-27: Simon Goldschmidt 1295195972f6Sopenharmony_ci * vj.c: fixed bug #35756 header length calculation problem in ppp/vj.c 1296195972f6Sopenharmony_ci 1297195972f6Sopenharmony_ci 2012-03-27: Simon Goldschmidt (patch by Mason) 1298195972f6Sopenharmony_ci * tcp_out.c: fixed bug #35945: SYN packet should provide the recv MSS not the 1299195972f6Sopenharmony_ci send MSS 1300195972f6Sopenharmony_ci 1301195972f6Sopenharmony_ci 2012-03-22: Simon Goldschmidt 1302195972f6Sopenharmony_ci * ip4.c: fixed bug #35927: missing refragmentaion in ip_forward 1303195972f6Sopenharmony_ci 1304195972f6Sopenharmony_ci 2012-03-20: Simon Goldschmidt (patch by Mason) 1305195972f6Sopenharmony_ci * netdb.c: fixed bug #35907: lwip_gethostbyname_r returns an invalid h_addr_list 1306195972f6Sopenharmony_ci 1307195972f6Sopenharmony_ci 2012-03-12: Simon Goldschmidt (patch by Bostjan Meglic) 1308195972f6Sopenharmony_ci * ppp.c: fixed bug #35809: PPP GetMask(): Compiler warning on big endian, 1309195972f6Sopenharmony_ci possible bug on little endian system 1310195972f6Sopenharmony_ci 1311195972f6Sopenharmony_ci 2012-02-23: Simon Goldschmidt 1312195972f6Sopenharmony_ci * etharp.c: fixed bug #35595: Impossible to send broadcast without a gateway 1313195972f6Sopenharmony_ci (introduced when fixing bug# 33551) 1314195972f6Sopenharmony_ci 1315195972f6Sopenharmony_ci 2012-02-16: Simon Goldschmidt 1316195972f6Sopenharmony_ci * ppp.c: fixed pbuf leak when PPP session is aborted through pppSigHUP() 1317195972f6Sopenharmony_ci (bug #35541: PPP Memory Leak) 1318195972f6Sopenharmony_ci 1319195972f6Sopenharmony_ci 2012-02-16: Simon Goldschmidt 1320195972f6Sopenharmony_ci * etharp.c: fixed bug #35531: Impossible to send multicast without a gateway 1321195972f6Sopenharmony_ci (introduced when fixing bug# 33551) 1322195972f6Sopenharmony_ci 1323195972f6Sopenharmony_ci 2012-02-16: Simon Goldschmidt (patch by Stéphane Lesage) 1324195972f6Sopenharmony_ci * msg_in.c, msg_out.c: fixed bug #35536 SNMP: error too big response is malformed 1325195972f6Sopenharmony_ci 1326195972f6Sopenharmony_ci 2012-02-15: Simon Goldschmidt 1327195972f6Sopenharmony_ci * init.c: fixed bug #35537: MEMP_NUM_* sanity checks should be disabled with 1328195972f6Sopenharmony_ci MEMP_MEM_MALLOC==1 1329195972f6Sopenharmony_ci 1330195972f6Sopenharmony_ci 2012-02-12: Simon Goldschmidt 1331195972f6Sopenharmony_ci * tcp.h, tcp_in.c, tcp_out.c: partly fixed bug #25882: TCP hangs on 1332195972f6Sopenharmony_ci MSS > pcb->snd_wnd (by not creating segments bigger than half the window) 1333195972f6Sopenharmony_ci 1334195972f6Sopenharmony_ci 2012-02-11: Simon Goldschmidt 1335195972f6Sopenharmony_ci * tcp.c: fixed bug #35435: No pcb state check before adding it to time-wait 1336195972f6Sopenharmony_ci queue while closing 1337195972f6Sopenharmony_ci 1338195972f6Sopenharmony_ci 2012-01-22: Simon Goldschmidt 1339195972f6Sopenharmony_ci * tcp.c, tcp_in.c: fixed bug #35305: pcb may be freed too early on shutdown(WR) 1340195972f6Sopenharmony_ci 1341195972f6Sopenharmony_ci 2012-01-21: Simon Goldschmidt 1342195972f6Sopenharmony_ci * tcp.c: fixed bug #34636: FIN_WAIT_2 - Incorrect shutdown of TCP pcb 1343195972f6Sopenharmony_ci 1344195972f6Sopenharmony_ci 2012-01-20: Simon Goldschmidt 1345195972f6Sopenharmony_ci * dhcp.c: fixed bug #35151: DHCP asserts on incoming option lengths 1346195972f6Sopenharmony_ci 1347195972f6Sopenharmony_ci 2012-01-20: Simon Goldschmidt 1348195972f6Sopenharmony_ci * pbuf.c: fixed bug #35291: NULL pointer in pbuf_copy 1349195972f6Sopenharmony_ci 1350195972f6Sopenharmony_ci 2011-11-25: Simon Goldschmidt 1351195972f6Sopenharmony_ci * tcp.h/.c, tcp_impl.h, tcp_in.c: fixed bug #31177: tcp timers can corrupt 1352195972f6Sopenharmony_ci tcp_active_pcbs in some cases 1353195972f6Sopenharmony_ci 1354195972f6Sopenharmony_ci 2011-11-23: Simon Goldschmidt 1355195972f6Sopenharmony_ci * sys.c: fixed bug #34884: sys_msleep() body needs to be surrounded with 1356195972f6Sopenharmony_ci '#ifndef sys_msleep' 1357195972f6Sopenharmony_ci 1358195972f6Sopenharmony_ci 2011-11-22: Simon Goldschmidt 1359195972f6Sopenharmony_ci * netif.c, etharp.h/.c: fixed bug #34684: Clear the arp table cache when 1360195972f6Sopenharmony_ci netif is brought down 1361195972f6Sopenharmony_ci 1362195972f6Sopenharmony_ci 2011-10-28: Simon Goldschmidt 1363195972f6Sopenharmony_ci * tcp_in.c: fixed bug #34638: Dead code in tcp_receive - pcb->dupacks 1364195972f6Sopenharmony_ci 1365195972f6Sopenharmony_ci 2011-10-23: Simon Goldschmidt 1366195972f6Sopenharmony_ci * mem.c: fixed bug #34429: possible memory corruption with 1367195972f6Sopenharmony_ci LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT set to 1 1368195972f6Sopenharmony_ci 1369195972f6Sopenharmony_ci 2011-10-18: Simon Goldschmidt 1370195972f6Sopenharmony_ci * arch.h, netdb.c: fixed bug #34592: lwip_gethostbyname_r uses nonstandard 1371195972f6Sopenharmony_ci error value 1372195972f6Sopenharmony_ci 1373195972f6Sopenharmony_ci 2011-10-18: Simon Goldschmidt 1374195972f6Sopenharmony_ci * opt.h: fixed default values of TCP_SNDLOWAT and TCP_SNDQUEUELOWAT for small 1375195972f6Sopenharmony_ci windows (bug #34176 select after non-blocking send times out) 1376195972f6Sopenharmony_ci 1377195972f6Sopenharmony_ci 2011-10-18: Simon Goldschmidt 1378195972f6Sopenharmony_ci * tcp_impl.h, tcp_out.c: fixed bug #34587: TCP_BUILD_MSS_OPTION doesn't 1379195972f6Sopenharmony_ci consider netif->mtu, causes slow network 1380195972f6Sopenharmony_ci 1381195972f6Sopenharmony_ci 2011-10-18: Simon Goldschmidt 1382195972f6Sopenharmony_ci * sockets.c: fixed bug #34581 missing parentheses in udplite sockets code 1383195972f6Sopenharmony_ci 1384195972f6Sopenharmony_ci 2011-10-18: Simon Goldschmidt 1385195972f6Sopenharmony_ci * sockets.h: fixed bug #34580 fcntl() is missing in LWIP_COMPAT_SOCKETS 1386195972f6Sopenharmony_ci 1387195972f6Sopenharmony_ci 2011-10-17: Simon Goldschmidt 1388195972f6Sopenharmony_ci * api_msg.c: fixed bug #34569: shutdown(SHUT_WR) crashes netconn/socket api 1389195972f6Sopenharmony_ci 1390195972f6Sopenharmony_ci 2011-10-13: Simon Goldschmidt 1391195972f6Sopenharmony_ci * tcp_in.c, tcp_out.c: fixed bug #34517 (persist timer is started although no 1392195972f6Sopenharmony_ci zero window is received) by starting the persist timer when a zero window is 1393195972f6Sopenharmony_ci received, not when we have more data queued for sending than fits into the 1394195972f6Sopenharmony_ci window 1395195972f6Sopenharmony_ci 1396195972f6Sopenharmony_ci 2011-10-13: Simon Goldschmidt 1397195972f6Sopenharmony_ci * def.h, timers.c: fixed bug #34541: LWIP_U32_DIFF is unnecessarily complex 1398195972f6Sopenharmony_ci 1399195972f6Sopenharmony_ci 2011-10-13: Simon Goldschmidt 1400195972f6Sopenharmony_ci * sockets.c, api_lib.c: fixed bug #34540: compiler error when CORE_LOCKING is 1401195972f6Sopenharmony_ci used and not all protocols are enabled 1402195972f6Sopenharmony_ci 1403195972f6Sopenharmony_ci 2011-10-12: Simon Goldschmidt 1404195972f6Sopenharmony_ci * pbuf.c: fixed bug #34534: Error in sending fragmented IP if MEM_ALIGNMENT > 4 1405195972f6Sopenharmony_ci 1406195972f6Sopenharmony_ci 2011-10-09: Simon Goldschmidt 1407195972f6Sopenharmony_ci * tcp_out.c: fixed bug #34426: tcp_zero_window_probe() transmits incorrect 1408195972f6Sopenharmony_ci byte value when pcb->unacked != NULL 1409195972f6Sopenharmony_ci 1410195972f6Sopenharmony_ci 2011-10-09: Simon Goldschmidt 1411195972f6Sopenharmony_ci * ip4.c: fixed bug #34447 LWIP_IP_ACCEPT_UDP_PORT(dst_port) wrong 1412195972f6Sopenharmony_ci 1413195972f6Sopenharmony_ci 2011-09-27: Simon Goldschmidt 1414195972f6Sopenharmony_ci * tcp_in.c, tcp_out.c: Reset pcb->unsent_oversize in 2 more places... 1415195972f6Sopenharmony_ci 1416195972f6Sopenharmony_ci 2011-09-27: Simon Goldschmidt 1417195972f6Sopenharmony_ci * tcp_in.c: fixed bug #28288: Data after FIN in oos queue 1418195972f6Sopenharmony_ci 1419195972f6Sopenharmony_ci 2011-09-27: Simon Goldschmidt 1420195972f6Sopenharmony_ci * dhcp.c: fixed bug #34406 dhcp_option_hostname() can overflow the pbuf 1421195972f6Sopenharmony_ci 1422195972f6Sopenharmony_ci 2011-09-24: Simon Goldschmidt 1423195972f6Sopenharmony_ci * mem.h: fixed bug #34377 MEM_SIZE_F is not defined if MEM_LIBC_MALLOC==1 1424195972f6Sopenharmony_ci 1425195972f6Sopenharmony_ci 2011-09-23: Simon Goldschmidt 1426195972f6Sopenharmony_ci * pbuf.h, tcp.c, tcp_in.c: fixed bug #33871: rejecting TCP_EVENT_RECV() for 1427195972f6Sopenharmony_ci the last packet including FIN can lose data 1428195972f6Sopenharmony_ci 1429195972f6Sopenharmony_ci 2011-09-22: Simon Goldschmidt 1430195972f6Sopenharmony_ci * tcp_impl.h: fixed bug #34355: nagle does not take snd_buf/snd_queuelen into 1431195972f6Sopenharmony_ci account 1432195972f6Sopenharmony_ci 1433195972f6Sopenharmony_ci 2011-09-21: Simon Goldschmidt 1434195972f6Sopenharmony_ci * opt.h: fixed default value of TCP_SND_BUF to not violate the sanity checks 1435195972f6Sopenharmony_ci in init.c 1436195972f6Sopenharmony_ci 1437195972f6Sopenharmony_ci 2011-09-20: Simon Goldschmidt 1438195972f6Sopenharmony_ci * timers.c: fixed bug #34337 (possible NULL pointer in sys_check_timeouts) 1439195972f6Sopenharmony_ci 1440195972f6Sopenharmony_ci 2011-09-11: Simon Goldschmidt 1441195972f6Sopenharmony_ci * tcp_out.c: use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs 1442195972f6Sopenharmony_ci (bug #34019) 1443195972f6Sopenharmony_ci 1444195972f6Sopenharmony_ci 2011-09-09: Simon Goldschmidt 1445195972f6Sopenharmony_ci * udp.c: fixed bug #34072: UDP broadcast is received from wrong UDP pcb if 1446195972f6Sopenharmony_ci udp port matches 1447195972f6Sopenharmony_ci 1448195972f6Sopenharmony_ci 2011-09-03: Simon Goldschmidt 1449195972f6Sopenharmony_ci * tcp_in.c: fixed bug #33952 PUSH flag in incoming packet is lost when packet 1450195972f6Sopenharmony_ci is aggregated and sent to application 1451195972f6Sopenharmony_ci 1452195972f6Sopenharmony_ci 2011-09-01: Simon Goldschmidt 1453195972f6Sopenharmony_ci * opt.h: fixed bug #31809 LWIP_EVENT_API in opts.h is inconsistent compared 1454195972f6Sopenharmony_ci to other options 1455195972f6Sopenharmony_ci 1456195972f6Sopenharmony_ci 2011-09-01: Simon Goldschmidt 1457195972f6Sopenharmony_ci * tcp_in.c: fixed bug #34111 RST for ACK to listening pcb has wrong seqno 1458195972f6Sopenharmony_ci 1459195972f6Sopenharmony_ci 2011-08-24: Simon Goldschmidt 1460195972f6Sopenharmony_ci * api_msg.c, sockets.c: fixed bug #33956 Wrong error returned when calling 1461195972f6Sopenharmony_ci accept() on UDP connections 1462195972f6Sopenharmony_ci 1463195972f6Sopenharmony_ci 2011-08-24: Simon Goldschmidt 1464195972f6Sopenharmony_ci * sockets.h: fixed bug #34057 socklen_t should be a typedef 1465195972f6Sopenharmony_ci 1466195972f6Sopenharmony_ci 2011-08-24: Simon Goldschmidt 1467195972f6Sopenharmony_ci * pbuf.c: fixed bug #34112 Odd check in pbuf_alloced_custom (typo) 1468195972f6Sopenharmony_ci 1469195972f6Sopenharmony_ci 2011-08-24: Simon Goldschmidt 1470195972f6Sopenharmony_ci * dhcp.c: fixed bug #34122 dhcp: hostname can overflow 1471195972f6Sopenharmony_ci 1472195972f6Sopenharmony_ci 2011-08-24: Simon Goldschmidt 1473195972f6Sopenharmony_ci * netif.c: fixed bug #34121 netif_add/netif_set_ipaddr fail on NULL ipaddr 1474195972f6Sopenharmony_ci 1475195972f6Sopenharmony_ci 2011-08-22: Simon Goldschmidt 1476195972f6Sopenharmony_ci * tcp_out.c: fixed bug #33962 TF_FIN not always set after FIN is sent. (This 1477195972f6Sopenharmony_ci merely prevents nagle from not transmitting fast after closing.) 1478195972f6Sopenharmony_ci 1479195972f6Sopenharmony_ci 2011-07-22: Simon Goldschmidt 1480195972f6Sopenharmony_ci * api_lib.c, api_msg.c, sockets.c, api.h: fixed bug #31084 (socket API returns 1481195972f6Sopenharmony_ci always EMSGSIZE on non-blocking sockets if data size > send buffers) -> now 1482195972f6Sopenharmony_ci lwip_send() sends as much as possible for non-blocking sockets 1483195972f6Sopenharmony_ci 1484195972f6Sopenharmony_ci 2011-07-22: Simon Goldschmidt 1485195972f6Sopenharmony_ci * pbuf.c/.h, timers.c: freeing ooseq pbufs when the pbuf pool is empty implemented 1486195972f6Sopenharmony_ci for NO_SYS==1: when not using sys_check_timeouts(), call PBUF_CHECK_FREE_OOSEQ() 1487195972f6Sopenharmony_ci at regular intervals from main level. 1488195972f6Sopenharmony_ci 1489195972f6Sopenharmony_ci 2011-07-21: Simon Goldschmidt 1490195972f6Sopenharmony_ci * etharp.c: fixed bug #33551 (ARP entries may time out although in use) by 1491195972f6Sopenharmony_ci sending an ARP request when an ARP entry is used in the last minute before 1492195972f6Sopenharmony_ci it would time out. 1493195972f6Sopenharmony_ci 1494195972f6Sopenharmony_ci 2011-07-04: Simon Goldschmidt 1495195972f6Sopenharmony_ci * sys_arch.txt: Fixed documentation after changing sys arch prototypes for 1.4.0. 1496195972f6Sopenharmony_ci 1497195972f6Sopenharmony_ci 2011-06-26: Simon Goldschmidt 1498195972f6Sopenharmony_ci * tcp.c: fixed bug #31723 (tcp_kill_prio() kills pcbs with the same prio) by 1499195972f6Sopenharmony_ci updating its documentation only. 1500195972f6Sopenharmony_ci 1501195972f6Sopenharmony_ci 2011-06-26: Simon Goldschmidt 1502195972f6Sopenharmony_ci * mem.c: fixed bug #33545: With MEM_USE_POOLS==1, mem_malloc can return an 1503195972f6Sopenharmony_ci unaligned pointer. 1504195972f6Sopenharmony_ci 1505195972f6Sopenharmony_ci 2011-06-26: Simon Goldschmidt 1506195972f6Sopenharmony_ci * mem.c: fixed bug #33544 "warning in mem.c in lwip 1.4.0 with NO_SYS=1" 1507195972f6Sopenharmony_ci 1508195972f6Sopenharmony_ci 2011-05-25: Simon Goldschmidt 1509195972f6Sopenharmony_ci * tcp.c: fixed bug #33398 (pointless conversion when checking TCP port range) 1510195972f6Sopenharmony_ci 1511195972f6Sopenharmony_ci 1512195972f6Sopenharmony_ci 1513195972f6Sopenharmony_ci(STABLE-1.4.0) 1514195972f6Sopenharmony_ci 1515195972f6Sopenharmony_ci ++ New features: 1516195972f6Sopenharmony_ci 1517195972f6Sopenharmony_ci 2011-03-27: Simon Goldschmidt 1518195972f6Sopenharmony_ci * tcp_impl.h, tcp_in.c, tcp_out.c: Removed 'dataptr' from 'struct tcp_seg' and 1519195972f6Sopenharmony_ci calculate it in tcp_zero_window_probe (the only place where it was used). 1520195972f6Sopenharmony_ci 1521195972f6Sopenharmony_ci 2010-11-21: Simon Goldschmidt 1522195972f6Sopenharmony_ci * dhcp.c/.h: Added a function to deallocate the struct dhcp from a netif 1523195972f6Sopenharmony_ci (fixes bug #31525). 1524195972f6Sopenharmony_ci 1525195972f6Sopenharmony_ci 2010-07-12: Simon Goldschmidt (patch by Stephane Lesage) 1526195972f6Sopenharmony_ci * ip.c, udp.c/.h, pbuf.h, sockets.c: task #10495: Added support for 1527195972f6Sopenharmony_ci IP_MULTICAST_LOOP at socket- and raw-API level. 1528195972f6Sopenharmony_ci 1529195972f6Sopenharmony_ci 2010-06-16: Simon Goldschmidt 1530195972f6Sopenharmony_ci * ip.c: Added an optional define (LWIP_IP_ACCEPT_UDP_PORT) that can allow 1531195972f6Sopenharmony_ci link-layer-addressed UDP traffic to be received while a netif is down (just 1532195972f6Sopenharmony_ci like DHCP during configuration) 1533195972f6Sopenharmony_ci 1534195972f6Sopenharmony_ci 2010-05-22: Simon Goldschmidt 1535195972f6Sopenharmony_ci * many many files: bug #27352: removed packing from ip_addr_t, the packed 1536195972f6Sopenharmony_ci version is now only used in protocol headers. Added global storage for 1537195972f6Sopenharmony_ci current src/dest IP address while in input functions. 1538195972f6Sopenharmony_ci 1539195972f6Sopenharmony_ci 2010-05-16: Simon Goldschmidt 1540195972f6Sopenharmony_ci * def.h: task #10391: Add preprocessor-macros for compile-time htonl 1541195972f6Sopenharmony_ci calculation (and use them throughout the stack where applicable) 1542195972f6Sopenharmony_ci 1543195972f6Sopenharmony_ci 2010-05-16: Simon Goldschmidt 1544195972f6Sopenharmony_ci * opt.h, memp_std.h, memp.c, ppp_oe.h/.c: PPPoE now uses its own MEMP pool 1545195972f6Sopenharmony_ci instead of the heap (moved struct pppoe_softc from ppp_oe.c to ppp_oe.h) 1546195972f6Sopenharmony_ci 1547195972f6Sopenharmony_ci 2010-05-16: Simon Goldschmidt 1548195972f6Sopenharmony_ci * opt.h, memp_std.h, dns.h/.c: DNS_LOCAL_HOSTLIST_IS_DYNAMIC uses its own 1549195972f6Sopenharmony_ci MEMP pool instead of the heap 1550195972f6Sopenharmony_ci 1551195972f6Sopenharmony_ci 2010-05-13: Simon Goldschmidt 1552195972f6Sopenharmony_ci * tcp.c, udp.c: task #6995: Implement SO_REUSEADDR (correctly), added 1553195972f6Sopenharmony_ci new option SO_REUSE_RXTOALL to pass received UDP broadcast/multicast 1554195972f6Sopenharmony_ci packets to more than one pcb. 1555195972f6Sopenharmony_ci 1556195972f6Sopenharmony_ci 2010-05-02: Simon Goldschmidt 1557195972f6Sopenharmony_ci * netbuf.h/.c, sockets.c, api_msg.c: use checksum-on-copy for sending 1558195972f6Sopenharmony_ci UDP data for LWIP_NETIF_TX_SINGLE_PBUF==1 1559195972f6Sopenharmony_ci 1560195972f6Sopenharmony_ci 2010-04-30: Simon Goldschmidt 1561195972f6Sopenharmony_ci * udp.h/.c, pbuf.h/.c: task #6849: added udp_send(_to/_if) functions that 1562195972f6Sopenharmony_ci take a precalculated checksum, added pbuf_fill_chksum() to copy data 1563195972f6Sopenharmony_ci into a pbuf and at the same time calculating the checksum for that data 1564195972f6Sopenharmony_ci 1565195972f6Sopenharmony_ci 2010-04-29: Simon Goldschmidt 1566195972f6Sopenharmony_ci * ip_addr.h, etharp.h/.c, autoip.c: Create overridable macros for copying 1567195972f6Sopenharmony_ci 2-byte-aligned IP addresses and MAC addresses 1568195972f6Sopenharmony_ci 1569195972f6Sopenharmony_ci 2010-04-28: Patch by Bill Auerbach 1570195972f6Sopenharmony_ci * ip.c: Inline generating IP checksum to save a function call 1571195972f6Sopenharmony_ci 1572195972f6Sopenharmony_ci 2010-04-14: Simon Goldschmidt 1573195972f6Sopenharmony_ci * tcpip.h/.c, timers.c: Added an overridable define to get informed when the 1574195972f6Sopenharmony_ci tcpip_thread processes messages or timeouts to implement a watchdog. 1575195972f6Sopenharmony_ci 1576195972f6Sopenharmony_ci 2010-03-28: Simon Goldschmidt 1577195972f6Sopenharmony_ci * ip_frag.c: create a new (contiguous) PBUF_RAM for every outgoing 1578195972f6Sopenharmony_ci fragment if LWIP_NETIF_TX_SINGLE_PBUF==1 1579195972f6Sopenharmony_ci 1580195972f6Sopenharmony_ci 2010-03-27: Simon Goldschmidt 1581195972f6Sopenharmony_ci * etharp.c: Speedup TX by moving code from find_entry to etharp_output/ 1582195972f6Sopenharmony_ci etharp_query to prevent unnecessary function calls (inspired by 1583195972f6Sopenharmony_ci patch #7135). 1584195972f6Sopenharmony_ci 1585195972f6Sopenharmony_ci 2010-03-20: Simon Goldschmidt 1586195972f6Sopenharmony_ci * opt.h, tcpip.c/.h: Added an option to disable tcpip_(un)timeout code 1587195972f6Sopenharmony_ci since the linker cannot do this automatically to save space. 1588195972f6Sopenharmony_ci 1589195972f6Sopenharmony_ci 2010-03-20: Simon Goldschmidt 1590195972f6Sopenharmony_ci * opt.h, etharp.c/.h: Added support for static ARP table entries 1591195972f6Sopenharmony_ci 1592195972f6Sopenharmony_ci 2010-03-14: Simon Goldschmidt 1593195972f6Sopenharmony_ci * tcp_impl.h, tcp_out.c, inet_chksum.h/.c: task #6849: Calculate checksum 1594195972f6Sopenharmony_ci when creating TCP segments, not when (re-)transmitting them. 1595195972f6Sopenharmony_ci 1596195972f6Sopenharmony_ci 2010-03-07: Simon Goldschmidt 1597195972f6Sopenharmony_ci * sockets.c: bug #28775 (select/event_callback: only check select_cb_list 1598195972f6Sopenharmony_ci on change) plus use SYS_LIGHTWEIGHT_PROT to protect the select code. 1599195972f6Sopenharmony_ci This should speed up receiving data on sockets as the select code in 1600195972f6Sopenharmony_ci event_callback is only executed when select is waiting. 1601195972f6Sopenharmony_ci 1602195972f6Sopenharmony_ci 2010-03-06: Simon Goldschmidt 1603195972f6Sopenharmony_ci * tcp_out.c: task #7013 (Create option to have all packets delivered to 1604195972f6Sopenharmony_ci netif->output in one piece): Always copy to try to create single pbufs 1605195972f6Sopenharmony_ci in tcp_write. 1606195972f6Sopenharmony_ci 1607195972f6Sopenharmony_ci 2010-03-06: Simon Goldschmidt 1608195972f6Sopenharmony_ci * api.h, api_lib.c, sockets.c: task #10167 (sockets: speed up TCP recv 1609195972f6Sopenharmony_ci by not allocating a netbuf): added function netconn_recv_tcp_pbuf() 1610195972f6Sopenharmony_ci for tcp netconns to receive pbufs, not netbufs; use that function 1611195972f6Sopenharmony_ci for tcp sockets. 1612195972f6Sopenharmony_ci 1613195972f6Sopenharmony_ci 2010-03-05: Jakob Ole Stoklundsen / Simon Goldschmidt 1614195972f6Sopenharmony_ci * opt.h, tcp.h, tcp_impl.h, tcp.c, tcp_in.c, tcp_out.c: task #7040: 1615195972f6Sopenharmony_ci Work on tcp_enqueue: Don't waste memory when chaining segments, 1616195972f6Sopenharmony_ci added option TCP_OVERSIZE to prevent creating many small pbufs when 1617195972f6Sopenharmony_ci calling tcp_write with many small blocks of data. Instead, pbufs are 1618195972f6Sopenharmony_ci allocated larger than needed and the space is used for later calls to 1619195972f6Sopenharmony_ci tcp_write. 1620195972f6Sopenharmony_ci 1621195972f6Sopenharmony_ci 2010-02-21: Simon Goldschmidt 1622195972f6Sopenharmony_ci * stats.c/.h: Added const char* name to mem- and memp-stats for easier 1623195972f6Sopenharmony_ci debugging. 1624195972f6Sopenharmony_ci 1625195972f6Sopenharmony_ci 2010-02-21: Simon Goldschmidt 1626195972f6Sopenharmony_ci * tcp.h (and usages), added tcp_impl.h: Splitted API and internal 1627195972f6Sopenharmony_ci implementation of tcp to make API usage cleare to application programmers 1628195972f6Sopenharmony_ci 1629195972f6Sopenharmony_ci 2010-02-14: Simon Goldschmidt/Stephane Lesage 1630195972f6Sopenharmony_ci * ip_addr.h: Improved some defines working on ip addresses, added faster 1631195972f6Sopenharmony_ci macro to copy addresses that cannot be NULL 1632195972f6Sopenharmony_ci 1633195972f6Sopenharmony_ci 2010-02-13: Simon Goldschmidt 1634195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c, sockets.c: task #7865 (implement non- 1635195972f6Sopenharmony_ci blocking send operation) 1636195972f6Sopenharmony_ci 1637195972f6Sopenharmony_ci 2010-02-12: Simon Goldschmidt 1638195972f6Sopenharmony_ci * sockets.c/.h: Added a minimal version of posix fctl() to have a 1639195972f6Sopenharmony_ci standardised way to set O_NONBLOCK for nonblocking sockets. 1640195972f6Sopenharmony_ci 1641195972f6Sopenharmony_ci 2010-02-12: Simon Goldschmidt 1642195972f6Sopenharmony_ci * dhcp.c/.h, autoip.c/.h: task #10139 (Prefer statically allocated 1643195972f6Sopenharmony_ci memory): added autoip_set_struct() and dhcp_set_struct() to let autoip 1644195972f6Sopenharmony_ci and dhcp work with user-allocated structs instead of callin mem_malloc 1645195972f6Sopenharmony_ci 1646195972f6Sopenharmony_ci 2010-02-12: Simon Goldschmidt/Jeff Barber 1647195972f6Sopenharmony_ci * tcp.c/h: patch #6865 (SO_REUSEADDR for TCP): if pcb.so_options has 1648195972f6Sopenharmony_ci SOF_REUSEADDR set, allow binding to endpoint in TIME_WAIT 1649195972f6Sopenharmony_ci 1650195972f6Sopenharmony_ci 2010-02-12: Simon Goldschmidt 1651195972f6Sopenharmony_ci * sys layer: task #10139 (Prefer statically allocated memory): converted 1652195972f6Sopenharmony_ci mbox and semaphore functions to take pointers to sys_mbox_t/sys_sem_t; 1653195972f6Sopenharmony_ci converted sys_mbox_new/sys_sem_new to take pointers and return err_t; 1654195972f6Sopenharmony_ci task #7212: Add Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX 1655195972f6Sopenharmony_ci to let sys.h use binary semaphores instead of mutexes - as before) 1656195972f6Sopenharmony_ci 1657195972f6Sopenharmony_ci 2010-02-09: Simon Goldschmidt (Simon Kallweit) 1658195972f6Sopenharmony_ci * timers.c/.h: Added function sys_restart_timeouts() from patch #7085 1659195972f6Sopenharmony_ci (Restart system timeout handling) 1660195972f6Sopenharmony_ci 1661195972f6Sopenharmony_ci 2010-02-09: Simon Goldschmidt 1662195972f6Sopenharmony_ci * netif.c/.h, removed loopif.c/.h: task #10153 (Integrate loopif into 1663195972f6Sopenharmony_ci netif.c) - loopif does not have to be created by the port any more, 1664195972f6Sopenharmony_ci just define LWIP_HAVE_LOOPIF to 1. 1665195972f6Sopenharmony_ci 1666195972f6Sopenharmony_ci 2010-02-08: Simon Goldschmidt 1667195972f6Sopenharmony_ci * inet.h, ip_addr.c/.h: Added reentrant versions of inet_ntoa/ipaddr_ntoa 1668195972f6Sopenharmony_ci inet_ntoa_r/ipaddr_ntoa_r 1669195972f6Sopenharmony_ci 1670195972f6Sopenharmony_ci 2010-02-08: Simon Goldschmidt 1671195972f6Sopenharmony_ci * netif.h: Added netif_s/get_igmp_mac_filter() macros 1672195972f6Sopenharmony_ci 1673195972f6Sopenharmony_ci 2010-02-05: Simon Goldschmidt 1674195972f6Sopenharmony_ci * netif.h: Added function-like macros to get/set the hostname on a netif 1675195972f6Sopenharmony_ci 1676195972f6Sopenharmony_ci 2010-02-04: Simon Goldschmidt 1677195972f6Sopenharmony_ci * nearly every file: Replaced struct ip_addr by typedef ip_addr_t to 1678195972f6Sopenharmony_ci make changing the actual implementation behind the typedef easier. 1679195972f6Sopenharmony_ci 1680195972f6Sopenharmony_ci 2010-02-01: Simon Goldschmidt 1681195972f6Sopenharmony_ci * opt.h, memp_std.h, dns.h, netdb.c, memp.c: Let netdb use a memp pool 1682195972f6Sopenharmony_ci for allocating memory when getaddrinfo() is called. 1683195972f6Sopenharmony_ci 1684195972f6Sopenharmony_ci 2010-01-31: Simon Goldschmidt 1685195972f6Sopenharmony_ci * dhcp.h, dhcp.c: Reworked the code that parses DHCP options: parse 1686195972f6Sopenharmony_ci them once instead of parsing for every option. This also removes 1687195972f6Sopenharmony_ci the need for mem_malloc from dhcp_recv and makes it possible to 1688195972f6Sopenharmony_ci correctly retrieve the BOOTP file. 1689195972f6Sopenharmony_ci 1690195972f6Sopenharmony_ci 2010-01-30: simon Goldschmidt 1691195972f6Sopenharmony_ci * sockets.c: Use SYS_LIGHTWEIGHT_PROT instead of a semaphore to protect 1692195972f6Sopenharmony_ci the sockets array. 1693195972f6Sopenharmony_ci 1694195972f6Sopenharmony_ci 2010-01-29: Simon Goldschmidt (patch by Laura Garrett) 1695195972f6Sopenharmony_ci * api.h, api_msg.c, sockets.c: Added except set support in select 1696195972f6Sopenharmony_ci (patch #6860) 1697195972f6Sopenharmony_ci 1698195972f6Sopenharmony_ci 2010-01-29: Simon Goldschmidt (patch by Laura Garrett) 1699195972f6Sopenharmony_ci * api.h, sockets.h, err.h, api_lib.c, api_msg.c, sockets.c, err.c: 1700195972f6Sopenharmony_ci Add non-blocking support for connect (partly from patch #6860), 1701195972f6Sopenharmony_ci plus many cleanups in socket & netconn API. 1702195972f6Sopenharmony_ci 1703195972f6Sopenharmony_ci 2010-01-27: Simon Goldschmidt 1704195972f6Sopenharmony_ci * opt.h, tcp.h, init.c, api_msg.c: Added TCP_SNDQUEUELOWAT corresponding 1705195972f6Sopenharmony_ci to TCP_SNDLOWAT and added tcp_sndqueuelen() - this fixes bug #28605 1706195972f6Sopenharmony_ci 1707195972f6Sopenharmony_ci 2010-01-26: Simon Goldschmidt 1708195972f6Sopenharmony_ci * snmp: Use memp pools for snmp instead of the heap; added 4 new pools. 1709195972f6Sopenharmony_ci 1710195972f6Sopenharmony_ci 2010-01-14: Simon Goldschmidt 1711195972f6Sopenharmony_ci * ppp.c/.h: Fixed bug #27856: PPP: Set netif link- and status-callback 1712195972f6Sopenharmony_ci by adding ppp_set_netif_statuscallback()/ppp_set_netif_linkcallback() 1713195972f6Sopenharmony_ci 1714195972f6Sopenharmony_ci 2010-01-13: Simon Goldschmidt 1715195972f6Sopenharmony_ci * mem.c: The heap now may be moved to user-defined memory by defining 1716195972f6Sopenharmony_ci LWIP_RAM_HEAP_POINTER as a void pointer to that memory's address 1717195972f6Sopenharmony_ci (patch #6966 and bug #26133) 1718195972f6Sopenharmony_ci 1719195972f6Sopenharmony_ci 2010-01-10: Simon Goldschmidt (Bill Auerbach) 1720195972f6Sopenharmony_ci * opt.h, memp.c: patch #6822 (Add option to place memory pools in 1721195972f6Sopenharmony_ci separate arrays) 1722195972f6Sopenharmony_ci 1723195972f6Sopenharmony_ci 2010-01-10: Simon Goldschmidt 1724195972f6Sopenharmony_ci * init.c, igmp.c: patch #6463 (IGMP - Adding Random Delay): added define 1725195972f6Sopenharmony_ci LWIP_RAND() for lwip-wide randomization (to be defined in cc.h) 1726195972f6Sopenharmony_ci 1727195972f6Sopenharmony_ci 2009-12-31: Simon Goldschmidt 1728195972f6Sopenharmony_ci * tcpip.c, init.c, memp.c, sys.c, memp_std.h, sys.h, tcpip.h 1729195972f6Sopenharmony_ci added timers.c/.h: Separated timer implementation from semaphore/mbox 1730195972f6Sopenharmony_ci implementation, moved timer implementation to timers.c/.h, timers are 1731195972f6Sopenharmony_ci now only called from tcpip_thread or by explicitly checking them. 1732195972f6Sopenharmony_ci (TASK#7235) 1733195972f6Sopenharmony_ci 1734195972f6Sopenharmony_ci 2009-12-27: Simon Goldschmidt 1735195972f6Sopenharmony_ci * opt.h, etharp.h/.c, init.c, tcpip.c: Added an additional option 1736195972f6Sopenharmony_ci LWIP_ETHERNET to support ethernet without ARP (necessary for pure PPPoE) 1737195972f6Sopenharmony_ci 1738195972f6Sopenharmony_ci 1739195972f6Sopenharmony_ci ++ Bugfixes: 1740195972f6Sopenharmony_ci 1741195972f6Sopenharmony_ci 2011-04-20: Simon Goldschmidt 1742195972f6Sopenharmony_ci * sys_arch.txt: sys_arch_timeouts() is not needed any more. 1743195972f6Sopenharmony_ci 1744195972f6Sopenharmony_ci 2011-04-13: Simon Goldschmidt 1745195972f6Sopenharmony_ci * tcp.c, udp.c: Fixed bug #33048 (Bad range for IP source port numbers) by 1746195972f6Sopenharmony_ci using ports in the IANA private/dynamic range (49152 through 65535). 1747195972f6Sopenharmony_ci 1748195972f6Sopenharmony_ci 2011-03-29: Simon Goldschmidt, patch by Emil Lhungdahl: 1749195972f6Sopenharmony_ci * etharp.h/.c: Fixed broken VLAN support. 1750195972f6Sopenharmony_ci 1751195972f6Sopenharmony_ci 2011-03-27: Simon Goldschmidt 1752195972f6Sopenharmony_ci * tcp.c: Fixed bug #32926 (TCP_RMV(&tcp_bound_pcbs) is called on unbound tcp 1753195972f6Sopenharmony_ci pcbs) by checking if the pcb was bound (local_port != 0). 1754195972f6Sopenharmony_ci 1755195972f6Sopenharmony_ci 2011-03-27: Simon Goldschmidt 1756195972f6Sopenharmony_ci * ppp.c: Fixed bug #32280 (ppp: a pbuf is freed twice) 1757195972f6Sopenharmony_ci 1758195972f6Sopenharmony_ci 2011-03-27: Simon Goldschmidt 1759195972f6Sopenharmony_ci * sockets.c: Fixed bug #32906: lwip_connect+lwip_send did not work for udp and 1760195972f6Sopenharmony_ci raw pcbs with LWIP_TCPIP_CORE_LOCKING==1. 1761195972f6Sopenharmony_ci 1762195972f6Sopenharmony_ci 2011-03-27: Simon Goldschmidt 1763195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #32820 (Outgoing TCP connections created before route 1764195972f6Sopenharmony_ci is present never times out) by starting retransmission timer before checking 1765195972f6Sopenharmony_ci route. 1766195972f6Sopenharmony_ci 1767195972f6Sopenharmony_ci 2011-03-22: Simon Goldschmidt 1768195972f6Sopenharmony_ci * ppp.c: Fixed bug #32648 (PPP code crashes when terminating a link) by only 1769195972f6Sopenharmony_ci calling sio_read_abort() if the file descriptor is valid. 1770195972f6Sopenharmony_ci 1771195972f6Sopenharmony_ci 2011-03-14: Simon Goldschmidt 1772195972f6Sopenharmony_ci * err.h/.c, sockets.c, api_msg.c: fixed bug #31748 (Calling non-blocking connect 1773195972f6Sopenharmony_ci more than once can render a socket useless) since it mainly involves changing 1774195972f6Sopenharmony_ci "FATAL" classification of error codes: ERR_USE and ERR_ISCONN just aren't fatal. 1775195972f6Sopenharmony_ci 1776195972f6Sopenharmony_ci 2011-03-13: Simon Goldschmidt 1777195972f6Sopenharmony_ci * sockets.c: fixed bug #32769 (ESHUTDOWN is linux-specific) by fixing 1778195972f6Sopenharmony_ci err_to_errno_table (ERR_CLSD: ENOTCONN instead of ESHUTDOWN), ERR_ISCONN: 1779195972f6Sopenharmony_ci use EALRADY instead of -1 1780195972f6Sopenharmony_ci 1781195972f6Sopenharmony_ci 2011-03-13: Simon Goldschmidt 1782195972f6Sopenharmony_ci * api_lib.c: netconn_accept: return ERR_ABRT instead of ERR_CLSD if the 1783195972f6Sopenharmony_ci connection has been aborted by err_tcp (since this is not a normal closing 1784195972f6Sopenharmony_ci procedure). 1785195972f6Sopenharmony_ci 1786195972f6Sopenharmony_ci 2011-03-13: Simon Goldschmidt 1787195972f6Sopenharmony_ci * tcp.c: tcp_bind: return ERR_VAL instead of ERR_ISCONN when trying to bind 1788195972f6Sopenharmony_ci with pcb->state != CLOSED 1789195972f6Sopenharmony_ci 1790195972f6Sopenharmony_ci 2011-02-17: Simon Goldschmidt 1791195972f6Sopenharmony_ci * rawapi.txt: Fixed bug #32561 tcp_poll argument definition out-of-order in 1792195972f6Sopenharmony_ci documentation 1793195972f6Sopenharmony_ci 1794195972f6Sopenharmony_ci 2011-02-17: Simon Goldschmidt 1795195972f6Sopenharmony_ci * many files: Added missing U/UL modifiers to fix 16-bit-arch portability. 1796195972f6Sopenharmony_ci 1797195972f6Sopenharmony_ci 2011-01-24: Simon Goldschmidt 1798195972f6Sopenharmony_ci * sockets.c: Fixed bug #31741: lwip_select seems to have threading problems 1799195972f6Sopenharmony_ci 1800195972f6Sopenharmony_ci 2010-12-02: Simon Goldschmidt 1801195972f6Sopenharmony_ci * err.h: Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal. 1802195972f6Sopenharmony_ci 1803195972f6Sopenharmony_ci 2010-11-23: Simon Goldschmidt 1804195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c, sockets.c: netconn.recv_avail is only used for 1805195972f6Sopenharmony_ci LWIP_SO_RCVBUF and ioctl/FIONREAD. 1806195972f6Sopenharmony_ci 1807195972f6Sopenharmony_ci 2010-11-23: Simon Goldschmidt 1808195972f6Sopenharmony_ci * etharp.c: Fixed bug #31720: ARP-queueing: RFC 1122 recommends to queue at 1809195972f6Sopenharmony_ci least 1 packet -> ARP_QUEUEING==0 now queues the most recent packet. 1810195972f6Sopenharmony_ci 1811195972f6Sopenharmony_ci 2010-11-23: Simon Goldschmidt 1812195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #30577: tcp_input: don't discard ACK-only packets after 1813195972f6Sopenharmony_ci refusing 'refused_data' again. 1814195972f6Sopenharmony_ci 1815195972f6Sopenharmony_ci 2010-11-22: Simon Goldschmidt 1816195972f6Sopenharmony_ci * sockets.c: Fixed bug #31590: getsockopt(... SO_ERROR ...) gives EINPROGRESS 1817195972f6Sopenharmony_ci after a successful nonblocking connection. 1818195972f6Sopenharmony_ci 1819195972f6Sopenharmony_ci 2010-11-22: Simon Goldschmidt 1820195972f6Sopenharmony_ci * etharp.c: Fixed bug #31722: IP packets sent with an AutoIP source addr 1821195972f6Sopenharmony_ci must be sent link-local 1822195972f6Sopenharmony_ci 1823195972f6Sopenharmony_ci 2010-11-22: Simon Goldschmidt 1824195972f6Sopenharmony_ci * timers.c: patch #7329: tcp_timer_needed prototype was ifdef'ed out for 1825195972f6Sopenharmony_ci LWIP_TIMERS==0 1826195972f6Sopenharmony_ci 1827195972f6Sopenharmony_ci 2010-11-20: Simon Goldschmidt 1828195972f6Sopenharmony_ci * sockets.c: Fixed bug #31170: lwip_setsockopt() does not set socket number 1829195972f6Sopenharmony_ci 1830195972f6Sopenharmony_ci 2010-11-20: Simon Goldschmidt 1831195972f6Sopenharmony_ci * sockets.h: Fixed bug #31304: Changed SHUT_RD, SHUT_WR and SHUT_RDWR to 1832195972f6Sopenharmony_ci resemble other stacks. 1833195972f6Sopenharmony_ci 1834195972f6Sopenharmony_ci 2010-11-20: Simon Goldschmidt 1835195972f6Sopenharmony_ci * dns.c: Fixed bug #31535: TCP_SND_QUEUELEN must be at least 2 or else 1836195972f6Sopenharmony_ci no-copy TCP writes will never succeed. 1837195972f6Sopenharmony_ci 1838195972f6Sopenharmony_ci 2010-11-20: Simon Goldschmidt 1839195972f6Sopenharmony_ci * dns.c: Fixed bug #31701: Error return value from dns_gethostbyname() does 1840195972f6Sopenharmony_ci not match documentation: return ERR_ARG instead of ERR_VAL if not 1841195972f6Sopenharmony_ci initialized or wrong argument. 1842195972f6Sopenharmony_ci 1843195972f6Sopenharmony_ci 2010-10-20: Simon Goldschmidt 1844195972f6Sopenharmony_ci * sockets.h: Fixed bug #31385: sizeof(struct sockaddr) is 30 but should be 16 1845195972f6Sopenharmony_ci 1846195972f6Sopenharmony_ci 2010-10-05: Simon Goldschmidt 1847195972f6Sopenharmony_ci * dhcp.c: Once again fixed #30038: DHCP/AutoIP cooperation failed when 1848195972f6Sopenharmony_ci replugging the network cable after an AutoIP address was assigned. 1849195972f6Sopenharmony_ci 1850195972f6Sopenharmony_ci 2010-08-10: Simon Goldschmidt 1851195972f6Sopenharmony_ci * tcp.c: Fixed bug #30728: tcp_new_port() did not check listen pcbs 1852195972f6Sopenharmony_ci 1853195972f6Sopenharmony_ci 2010-08-03: Simon Goldschmidt 1854195972f6Sopenharmony_ci * udp.c, raw.c: Don't chain empty pbufs when sending them (fixes bug #30625) 1855195972f6Sopenharmony_ci 1856195972f6Sopenharmony_ci 2010-08-01: Simon Goldschmidt (patch by Greg Renda) 1857195972f6Sopenharmony_ci * ppp.c: Applied patch #7264 (PPP protocols are rejected incorrectly on big 1858195972f6Sopenharmony_ci endian architectures) 1859195972f6Sopenharmony_ci 1860195972f6Sopenharmony_ci 2010-07-28: Simon Goldschmidt 1861195972f6Sopenharmony_ci * api_lib.c, api_msg.c, sockets.c, mib2.c: Fixed compilation with TCP or UDP 1862195972f6Sopenharmony_ci disabled. 1863195972f6Sopenharmony_ci 1864195972f6Sopenharmony_ci 2010-07-27: Simon Goldschmidt 1865195972f6Sopenharmony_ci * tcp.c: Fixed bug #30565 (tcp_connect() check bound list): that check did no 1866195972f6Sopenharmony_ci harm but never did anything 1867195972f6Sopenharmony_ci 1868195972f6Sopenharmony_ci 2010-07-21: Simon Goldschmidt 1869195972f6Sopenharmony_ci * ip.c: Fixed invalid fix for bug #30402 (CHECKSUM_GEN_IP_INLINE does not 1870195972f6Sopenharmony_ci add IP options) 1871195972f6Sopenharmony_ci 1872195972f6Sopenharmony_ci 2010-07-16: Kieran Mansley 1873195972f6Sopenharmony_ci * msg_in.c: Fixed SNMP ASN constant defines to not use ! operator 1874195972f6Sopenharmony_ci 1875195972f6Sopenharmony_ci 2010-07-10: Simon Goldschmidt 1876195972f6Sopenharmony_ci * ip.c: Fixed bug #30402: CHECKSUM_GEN_IP_INLINE does not add IP options 1877195972f6Sopenharmony_ci 1878195972f6Sopenharmony_ci 2010-06-30: Simon Goldschmidt 1879195972f6Sopenharmony_ci * api_msg.c: fixed bug #30300 (shutdown parameter was not initialized in 1880195972f6Sopenharmony_ci netconn_delete) 1881195972f6Sopenharmony_ci 1882195972f6Sopenharmony_ci 2010-06-28: Kieran Mansley 1883195972f6Sopenharmony_ci * timers.c remove unportable printing of C function pointers 1884195972f6Sopenharmony_ci 1885195972f6Sopenharmony_ci 2010-06-24: Simon Goldschmidt 1886195972f6Sopenharmony_ci * init.c, timers.c/.h, opt.h, memp_std.h: From patch #7221: added flag 1887195972f6Sopenharmony_ci NO_SYS_NO_TIMERS to drop timer support for NO_SYS==1 for easier upgrading 1888195972f6Sopenharmony_ci 1889195972f6Sopenharmony_ci 2010-06-24: Simon Goldschmidt 1890195972f6Sopenharmony_ci * api(_lib).c/.h, api_msg.c/.h, sockets.c/.h: Fixed bug #10088: Correctly 1891195972f6Sopenharmony_ci implemented shutdown at socket level. 1892195972f6Sopenharmony_ci 1893195972f6Sopenharmony_ci 2010-06-21: Simon Goldschmidt 1894195972f6Sopenharmony_ci * pbuf.c/.h, ip_frag.c/.h, opt.h, memp_std.h: Fixed bug #29361 (ip_frag has 1895195972f6Sopenharmony_ci problems with zero-copy DMA MACs) by adding custom pbufs and implementing 1896195972f6Sopenharmony_ci custom pbufs that reference other (original) pbufs. Additionally set 1897195972f6Sopenharmony_ci IP_FRAG_USES_STATIC_BUF=0 as default to be on the safe side. 1898195972f6Sopenharmony_ci 1899195972f6Sopenharmony_ci 2010-06-15: Simon Goldschmidt 1900195972f6Sopenharmony_ci * dhcp.c: Fixed bug #29970: DHCP endian issue parsing option responses 1901195972f6Sopenharmony_ci 1902195972f6Sopenharmony_ci 2010-06-14: Simon Goldschmidt 1903195972f6Sopenharmony_ci * autoip.c: Fixed bug #30039: AutoIP does not reuse previous addresses 1904195972f6Sopenharmony_ci 1905195972f6Sopenharmony_ci 2010-06-12: Simon Goldschmidt 1906195972f6Sopenharmony_ci * dhcp.c: Fixed bug #30038: dhcp_network_changed doesn't reset AUTOIP coop 1907195972f6Sopenharmony_ci state 1908195972f6Sopenharmony_ci 1909195972f6Sopenharmony_ci 2010-05-17: Simon Goldschmidt 1910195972f6Sopenharmony_ci * netdb.c: Correctly NULL-terminate h_addr_list 1911195972f6Sopenharmony_ci 1912195972f6Sopenharmony_ci 2010-05-16: Simon Goldschmidt 1913195972f6Sopenharmony_ci * def.h/.c: changed the semantics of LWIP_PREFIX_BYTEORDER_FUNCS to prevent 1914195972f6Sopenharmony_ci "symbol already defined" i.e. when linking to winsock 1915195972f6Sopenharmony_ci 1916195972f6Sopenharmony_ci 2010-05-05: Simon Goldschmidt 1917195972f6Sopenharmony_ci * def.h, timers.c: Fixed bug #29769 (sys_check_timeouts: sys_now() may 1918195972f6Sopenharmony_ci overflow) 1919195972f6Sopenharmony_ci 1920195972f6Sopenharmony_ci 2010-04-21: Simon Goldschmidt 1921195972f6Sopenharmony_ci * api_msg.c: Fixed bug #29617 (sometime cause stall on delete listening 1922195972f6Sopenharmony_ci connection) 1923195972f6Sopenharmony_ci 1924195972f6Sopenharmony_ci 2010-03-28: Luca Ceresoli 1925195972f6Sopenharmony_ci * ip_addr.c/.h: patch #7143: Add a few missing const qualifiers 1926195972f6Sopenharmony_ci 1927195972f6Sopenharmony_ci 2010-03-27: Luca Ceresoli 1928195972f6Sopenharmony_ci * mib2.c: patch #7130: remove meaningless const qualifiers 1929195972f6Sopenharmony_ci 1930195972f6Sopenharmony_ci 2010-03-26: Simon Goldschmidt 1931195972f6Sopenharmony_ci * tcp_out.c: Make LWIP_NETIF_TX_SINGLE_PBUF work for TCP, too 1932195972f6Sopenharmony_ci 1933195972f6Sopenharmony_ci 2010-03-26: Simon Goldschmidt 1934195972f6Sopenharmony_ci * various files: Fixed compiling with different options disabled (TCP/UDP), 1935195972f6Sopenharmony_ci triggered by bug #29345; don't allocate acceptmbox if LWIP_TCP is disabled 1936195972f6Sopenharmony_ci 1937195972f6Sopenharmony_ci 2010-03-25: Simon Goldschmidt 1938195972f6Sopenharmony_ci * sockets.c: Fixed bug #29332: lwip_select() processes readset incorrectly 1939195972f6Sopenharmony_ci 1940195972f6Sopenharmony_ci 2010-03-25: Simon Goldschmidt 1941195972f6Sopenharmony_ci * tcp_in.c, test_tcp_oos.c: Fixed bug #29080: Correctly handle remote side 1942195972f6Sopenharmony_ci overrunning our rcv_wnd in ooseq case. 1943195972f6Sopenharmony_ci 1944195972f6Sopenharmony_ci 2010-03-22: Simon Goldschmidt 1945195972f6Sopenharmony_ci * tcp.c: tcp_listen() did not copy the pcb's prio. 1946195972f6Sopenharmony_ci 1947195972f6Sopenharmony_ci 2010-03-19: Simon Goldschmidt 1948195972f6Sopenharmony_ci * snmp_msg.c: Fixed bug #29256: SNMP Trap address was not correctly set 1949195972f6Sopenharmony_ci 1950195972f6Sopenharmony_ci 2010-03-14: Simon Goldschmidt 1951195972f6Sopenharmony_ci * opt.h, etharp.h: Fixed bug #29148 (Incorrect PBUF_POOL_BUFSIZE for ports 1952195972f6Sopenharmony_ci where ETH_PAD_SIZE > 0) by moving definition of ETH_PAD_SIZE to opt.h 1953195972f6Sopenharmony_ci and basing PBUF_LINK_HLEN on it. 1954195972f6Sopenharmony_ci 1955195972f6Sopenharmony_ci 2010-03-08: Simon Goldschmidt 1956195972f6Sopenharmony_ci * netif.c, ipv4/ip.c: task #10241 (AutoIP: don't break existing connections 1957195972f6Sopenharmony_ci when assiging routable address): when checking incoming packets and 1958195972f6Sopenharmony_ci aborting existing connection on address change, filter out link-local 1959195972f6Sopenharmony_ci addresses. 1960195972f6Sopenharmony_ci 1961195972f6Sopenharmony_ci 2010-03-06: Simon Goldschmidt 1962195972f6Sopenharmony_ci * sockets.c: Fixed LWIP_NETIF_TX_SINGLE_PBUF for LWIP_TCPIP_CORE_LOCKING 1963195972f6Sopenharmony_ci 1964195972f6Sopenharmony_ci 2010-03-06: Simon Goldschmidt 1965195972f6Sopenharmony_ci * ipv4/ip.c: Don't try to forward link-local addresses 1966195972f6Sopenharmony_ci 1967195972f6Sopenharmony_ci 2010-03-06: Simon Goldschmidt 1968195972f6Sopenharmony_ci * etharp.c: Fixed bug #29087: etharp: don't send packets for LinkLocal- 1969195972f6Sopenharmony_ci addresses to gw 1970195972f6Sopenharmony_ci 1971195972f6Sopenharmony_ci 2010-03-05: Simon Goldschmidt 1972195972f6Sopenharmony_ci * dhcp.c: Fixed bug #29072: Correctly set ciaddr based on message-type 1973195972f6Sopenharmony_ci and state. 1974195972f6Sopenharmony_ci 1975195972f6Sopenharmony_ci 2010-03-05: Simon Goldschmidt 1976195972f6Sopenharmony_ci * api_msg.c: Correctly set TCP_WRITE_FLAG_MORE when netconn_write is split 1977195972f6Sopenharmony_ci into multiple calls to tcp_write. 1978195972f6Sopenharmony_ci 1979195972f6Sopenharmony_ci 2010-02-21: Simon Goldschmidt 1980195972f6Sopenharmony_ci * opt.h, mem.h, dns.c: task #10140: Remove DNS_USES_STATIC_BUF (keep 1981195972f6Sopenharmony_ci the implementation of DNS_USES_STATIC_BUF==1) 1982195972f6Sopenharmony_ci 1983195972f6Sopenharmony_ci 2010-02-20: Simon Goldschmidt 1984195972f6Sopenharmony_ci * tcp.h, tcp.c, tcp_in.c, tcp_out.c: Task #10088: Correctly implement 1985195972f6Sopenharmony_ci close() vs. shutdown(). Now the application does not get any more 1986195972f6Sopenharmony_ci recv callbacks after calling tcp_close(). Added tcp_shutdown(). 1987195972f6Sopenharmony_ci 1988195972f6Sopenharmony_ci 2010-02-19: Simon Goldschmidt 1989195972f6Sopenharmony_ci * mem.c/.h, pbuf.c: Renamed mem_realloc() to mem_trim() to prevent 1990195972f6Sopenharmony_ci confusion with realloc() 1991195972f6Sopenharmony_ci 1992195972f6Sopenharmony_ci 2010-02-15: Simon Goldschmidt/Stephane Lesage 1993195972f6Sopenharmony_ci * netif.c/.h: Link status does not depend on LWIP_NETIF_LINK_CALLBACK 1994195972f6Sopenharmony_ci (fixes bug #28899) 1995195972f6Sopenharmony_ci 1996195972f6Sopenharmony_ci 2010-02-14: Simon Goldschmidt 1997195972f6Sopenharmony_ci * netif.c: Fixed bug #28877 (Duplicate ARP gratuitous packet with 1998195972f6Sopenharmony_ci LWIP_NETIF_LINK_CALLBACK set on) by only sending if both link- and 1999195972f6Sopenharmony_ci admin-status of a netif are up 2000195972f6Sopenharmony_ci 2001195972f6Sopenharmony_ci 2010-02-14: Simon Goldschmidt 2002195972f6Sopenharmony_ci * opt.h: Disable ETHARP_TRUST_IP_MAC by default since it slows down packet 2003195972f6Sopenharmony_ci reception and is not really necessary 2004195972f6Sopenharmony_ci 2005195972f6Sopenharmony_ci 2010-02-14: Simon Goldschmidt 2006195972f6Sopenharmony_ci * etharp.c/.h: Fixed ARP input processing: only add a new entry if a 2007195972f6Sopenharmony_ci request was directed as us (RFC 826, Packet Reception), otherwise 2008195972f6Sopenharmony_ci only update existing entries; internalized some functions 2009195972f6Sopenharmony_ci 2010195972f6Sopenharmony_ci 2010-02-14: Simon Goldschmidt 2011195972f6Sopenharmony_ci * netif.h, etharp.c, tcpip.c: Fixed bug #28183 (ARP and TCP/IP cannot be 2012195972f6Sopenharmony_ci disabled on netif used for PPPoE) by adding a new netif flag 2013195972f6Sopenharmony_ci (NETIF_FLAG_ETHERNET) that tells the stack the device is an ethernet 2014195972f6Sopenharmony_ci device but prevents usage of ARP (so that ethernet_input can be used 2015195972f6Sopenharmony_ci for PPPoE). 2016195972f6Sopenharmony_ci 2017195972f6Sopenharmony_ci 2010-02-12: Simon Goldschmidt 2018195972f6Sopenharmony_ci * netif.c: netif_set_link_up/down: only do something if the link state 2019195972f6Sopenharmony_ci actually changes 2020195972f6Sopenharmony_ci 2021195972f6Sopenharmony_ci 2010-02-12: Simon Goldschmidt/Stephane Lesage 2022195972f6Sopenharmony_ci * api_msg.c: Fixed bug #28865 (Cannot close socket/netconn in non-blocking 2023195972f6Sopenharmony_ci connect) 2024195972f6Sopenharmony_ci 2025195972f6Sopenharmony_ci 2010-02-12: Simon Goldschmidt 2026195972f6Sopenharmony_ci * mem.h: Fixed bug #28866 (mem_realloc function defined in mem.h) 2027195972f6Sopenharmony_ci 2028195972f6Sopenharmony_ci 2010-02-09: Simon Goldschmidt 2029195972f6Sopenharmony_ci * api_lib.c, api_msg.c, sockets.c, api.h, api_msg.h: Fixed bug #22110 2030195972f6Sopenharmony_ci (recv() makes receive window update for data that wasn't received by 2031195972f6Sopenharmony_ci application) 2032195972f6Sopenharmony_ci 2033195972f6Sopenharmony_ci 2010-02-09: Simon Goldschmidt/Stephane Lesage 2034195972f6Sopenharmony_ci * sockets.c: Fixed bug #28853 (lwip_recvfrom() returns 0 on receive time-out 2035195972f6Sopenharmony_ci or any netconn_recv() error) 2036195972f6Sopenharmony_ci 2037195972f6Sopenharmony_ci 2010-02-09: Simon Goldschmidt 2038195972f6Sopenharmony_ci * ppp.c: task #10154 (PPP: Update snmp in/out counters for tx/rx packets) 2039195972f6Sopenharmony_ci 2040195972f6Sopenharmony_ci 2010-02-09: Simon Goldschmidt 2041195972f6Sopenharmony_ci * netif.c: For loopback packets, adjust the stats- and snmp-counters 2042195972f6Sopenharmony_ci for the loopback netif. 2043195972f6Sopenharmony_ci 2044195972f6Sopenharmony_ci 2010-02-08: Simon Goldschmidt 2045195972f6Sopenharmony_ci * igmp.c/.h, ip.h: Moved most defines from igmp.h to igmp.c for clarity 2046195972f6Sopenharmony_ci since they are not used anywhere else. 2047195972f6Sopenharmony_ci 2048195972f6Sopenharmony_ci 2010-02-08: Simon Goldschmidt (Stéphane Lesage) 2049195972f6Sopenharmony_ci * igmp.c, igmp.h, stats.c, stats.h: Improved IGMP stats 2050195972f6Sopenharmony_ci (patch from bug #28798) 2051195972f6Sopenharmony_ci 2052195972f6Sopenharmony_ci 2010-02-08: Simon Goldschmidt (Stéphane Lesage) 2053195972f6Sopenharmony_ci * igmp.c: Fixed bug #28798 (Error in "Max Response Time" processing) and 2054195972f6Sopenharmony_ci another bug when LWIP_RAND() returns zero. 2055195972f6Sopenharmony_ci 2056195972f6Sopenharmony_ci 2010-02-04: Simon Goldschmidt 2057195972f6Sopenharmony_ci * nearly every file: Use macros defined in ip_addr.h (some of them new) 2058195972f6Sopenharmony_ci to work with IP addresses (preparation for bug #27352 - Change ip_addr 2059195972f6Sopenharmony_ci from struct to typedef (u32_t) - and better code). 2060195972f6Sopenharmony_ci 2061195972f6Sopenharmony_ci 2010-01-31: Simon Goldschmidt 2062195972f6Sopenharmony_ci * netif.c: Don't call the link-callback from netif_set_up/down() since 2063195972f6Sopenharmony_ci this invalidly retriggers DHCP. 2064195972f6Sopenharmony_ci 2065195972f6Sopenharmony_ci 2010-01-29: Simon Goldschmidt 2066195972f6Sopenharmony_ci * ip_addr.h, inet.h, def.h, inet.c, def.c, more: Cleanly separate the 2067195972f6Sopenharmony_ci portability file inet.h and its contents from the stack: moved htonX- 2068195972f6Sopenharmony_ci functions to def.h (and the new def.c - they are not ipv4 dependent), 2069195972f6Sopenharmony_ci let inet.h depend on ip_addr.h and not the other way round. 2070195972f6Sopenharmony_ci This fixes bug #28732. 2071195972f6Sopenharmony_ci 2072195972f6Sopenharmony_ci 2010-01-28: Kieran Mansley 2073195972f6Sopenharmony_ci * tcp.c: Ensure ssthresh >= 2*MSS 2074195972f6Sopenharmony_ci 2075195972f6Sopenharmony_ci 2010-01-27: Simon Goldschmidt 2076195972f6Sopenharmony_ci * tcp.h, tcp.c, tcp_in.c: Fixed bug #27871: Calling tcp_abort() in recv 2077195972f6Sopenharmony_ci callback can lead to accessing unallocated memory. As a consequence, 2078195972f6Sopenharmony_ci ERR_ABRT means the application has called tcp_abort()! 2079195972f6Sopenharmony_ci 2080195972f6Sopenharmony_ci 2010-01-25: Simon Goldschmidt 2081195972f6Sopenharmony_ci * snmp_structs.h, msg_in.c: Partly fixed bug #22070 (MIB_OBJECT_WRITE_ONLY 2082195972f6Sopenharmony_ci not implemented in SNMP): write-only or not-accessible are still 2083195972f6Sopenharmony_ci returned by getnext (though not by get) 2084195972f6Sopenharmony_ci 2085195972f6Sopenharmony_ci 2010-01-24: Simon Goldschmidt 2086195972f6Sopenharmony_ci * snmp: Renamed the private mib node from 'private' to 'mib_private' to 2087195972f6Sopenharmony_ci not use reserved C/C++ keywords 2088195972f6Sopenharmony_ci 2089195972f6Sopenharmony_ci 2010-01-23: Simon Goldschmidt 2090195972f6Sopenharmony_ci * sockets.c: Fixed bug #28716: select() returns 0 after waiting for less 2091195972f6Sopenharmony_ci than 1 ms 2092195972f6Sopenharmony_ci 2093195972f6Sopenharmony_ci 2010-01-21: Simon Goldschmidt 2094195972f6Sopenharmony_ci * tcp.c, api_msg.c: Fixed bug #28651 (tcp_connect: no callbacks called 2095195972f6Sopenharmony_ci if tcp_enqueue fails) both in raw- and netconn-API 2096195972f6Sopenharmony_ci 2097195972f6Sopenharmony_ci 2010-01-19: Simon Goldschmidt 2098195972f6Sopenharmony_ci * api_msg.c: Fixed bug #27316: netconn: Possible deadlock in err_tcp 2099195972f6Sopenharmony_ci 2100195972f6Sopenharmony_ci 2010-01-18: Iordan Neshev/Simon Goldschmidt 2101195972f6Sopenharmony_ci * src/netif/ppp: reorganised PPP sourcecode to 2.3.11 including some 2102195972f6Sopenharmony_ci bugfix backports from 2.4.x. 2103195972f6Sopenharmony_ci 2104195972f6Sopenharmony_ci 2010-01-18: Simon Goldschmidt 2105195972f6Sopenharmony_ci * mem.c: Fixed bug #28679: mem_realloc calculates mem_stats wrong 2106195972f6Sopenharmony_ci 2107195972f6Sopenharmony_ci 2010-01-17: Simon Goldschmidt 2108195972f6Sopenharmony_ci * api_lib.c, api_msg.c, (api_msg.h, api.h, sockets.c, tcpip.c): 2109195972f6Sopenharmony_ci task #10102: "netconn: clean up conn->err threading issues" by adding 2110195972f6Sopenharmony_ci error return value to struct api_msg_msg 2111195972f6Sopenharmony_ci 2112195972f6Sopenharmony_ci 2010-01-17: Simon Goldschmidt 2113195972f6Sopenharmony_ci * api.h, api_lib.c, sockets.c: Changed netconn_recv() and netconn_accept() 2114195972f6Sopenharmony_ci to return err_t (bugs #27709 and #28087) 2115195972f6Sopenharmony_ci 2116195972f6Sopenharmony_ci 2010-01-14: Simon Goldschmidt 2117195972f6Sopenharmony_ci * ...: Use typedef for function prototypes throughout the stack. 2118195972f6Sopenharmony_ci 2119195972f6Sopenharmony_ci 2010-01-13: Simon Goldschmidt 2120195972f6Sopenharmony_ci * api_msg.h/.c, api_lib.c: Fixed bug #26672 (close connection when receive 2121195972f6Sopenharmony_ci window = 0) by correctly draining recvmbox/acceptmbox 2122195972f6Sopenharmony_ci 2123195972f6Sopenharmony_ci 2010-01-11: Simon Goldschmidt 2124195972f6Sopenharmony_ci * pap.c: Fixed bug #13315 (PPP PAP authentication can result in 2125195972f6Sopenharmony_ci erroneous callbacks) by copying the code from recent pppd 2126195972f6Sopenharmony_ci 2127195972f6Sopenharmony_ci 2010-01-10: Simon Goldschmidt 2128195972f6Sopenharmony_ci * raw.c: Fixed bug #28506 (raw_bind should filter received packets) 2129195972f6Sopenharmony_ci 2130195972f6Sopenharmony_ci 2010-01-10: Simon Goldschmidt 2131195972f6Sopenharmony_ci * tcp.h/.c: bug #28127 (remove call to tcp_output() from tcp_ack(_now)()) 2132195972f6Sopenharmony_ci 2133195972f6Sopenharmony_ci 2010-01-08: Simon Goldschmidt 2134195972f6Sopenharmony_ci * sockets.c: Fixed bug #28519 (lwip_recvfrom bug with len > 65535) 2135195972f6Sopenharmony_ci 2136195972f6Sopenharmony_ci 2010-01-08: Simon Goldschmidt 2137195972f6Sopenharmony_ci * dns.c: Copy hostname for DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1 since string 2138195972f6Sopenharmony_ci passed to dns_local_addhost() might be volatile 2139195972f6Sopenharmony_ci 2140195972f6Sopenharmony_ci 2010-01-07: Simon Goldschmidt 2141195972f6Sopenharmony_ci * timers.c, tcp.h: Call tcp_timer_needed() with NO_SYS==1, too 2142195972f6Sopenharmony_ci 2143195972f6Sopenharmony_ci 2010-01-06: Simon Goldschmidt 2144195972f6Sopenharmony_ci * netdb.h: Fixed bug #28496: missing include guards in netdb.h 2145195972f6Sopenharmony_ci 2146195972f6Sopenharmony_ci 2009-12-31: Simon Goldschmidt 2147195972f6Sopenharmony_ci * many ppp files: Reorganised PPP source code from ucip structure to pppd 2148195972f6Sopenharmony_ci structure to easily compare our code against the pppd code (around v2.3.1) 2149195972f6Sopenharmony_ci 2150195972f6Sopenharmony_ci 2009-12-27: Simon Goldschmidt 2151195972f6Sopenharmony_ci * tcp_in.c: Another fix for bug #28241 (ooseq processing) and adapted 2152195972f6Sopenharmony_ci unit test 2153195972f6Sopenharmony_ci 2154195972f6Sopenharmony_ci 2155195972f6Sopenharmony_ci(STABLE-1.3.2) 2156195972f6Sopenharmony_ci 2157195972f6Sopenharmony_ci ++ New features: 2158195972f6Sopenharmony_ci 2159195972f6Sopenharmony_ci 2009-10-27 Simon Goldschmidt/Stephan Lesage 2160195972f6Sopenharmony_ci * netifapi.c/.h: Added netifapi_netif_set_addr() 2161195972f6Sopenharmony_ci 2162195972f6Sopenharmony_ci 2009-10-07 Simon Goldschmidt/Fabian Koch 2163195972f6Sopenharmony_ci * api_msg.c, netbuf.c/.h, opt.h: patch #6888: Patch for UDP Netbufs to 2164195972f6Sopenharmony_ci support dest-addr and dest-port (optional: LWIP_NETBUF_RECVINFO) 2165195972f6Sopenharmony_ci 2166195972f6Sopenharmony_ci 2009-08-26 Simon Goldschmidt/Simon Kallweit 2167195972f6Sopenharmony_ci * slipif.c/.h: bug #26397: SLIP polling support 2168195972f6Sopenharmony_ci 2169195972f6Sopenharmony_ci 2009-08-25 Simon Goldschmidt 2170195972f6Sopenharmony_ci * opt.h, etharp.h/.c: task #9033: Support IEEE 802.1q tagged frame (VLAN), 2171195972f6Sopenharmony_ci New configuration options ETHARP_SUPPORT_VLAN and ETHARP_VLAN_CHECK. 2172195972f6Sopenharmony_ci 2173195972f6Sopenharmony_ci 2009-08-25 Simon Goldschmidt 2174195972f6Sopenharmony_ci * ip_addr.h, netdb.c: patch #6900: added define ip_ntoa(struct ip_addr*) 2175195972f6Sopenharmony_ci 2176195972f6Sopenharmony_ci 2009-08-24 Jakob Stoklund Olesen 2177195972f6Sopenharmony_ci * autoip.c, dhcp.c, netif.c: patch #6725: Teach AutoIP and DHCP to respond 2178195972f6Sopenharmony_ci to netif_set_link_up(). 2179195972f6Sopenharmony_ci 2180195972f6Sopenharmony_ci 2009-08-23 Simon Goldschmidt 2181195972f6Sopenharmony_ci * tcp.h/.c: Added function tcp_debug_state_str() to convert a tcp state 2182195972f6Sopenharmony_ci to a human-readable string. 2183195972f6Sopenharmony_ci 2184195972f6Sopenharmony_ci ++ Bugfixes: 2185195972f6Sopenharmony_ci 2186195972f6Sopenharmony_ci 2009-12-24: Kieran Mansley 2187195972f6Sopenharmony_ci * tcp_in.c Apply patches from Oleg Tyshev to improve OOS processing 2188195972f6Sopenharmony_ci (BUG#28241) 2189195972f6Sopenharmony_ci 2190195972f6Sopenharmony_ci 2009-12-06: Simon Goldschmidt 2191195972f6Sopenharmony_ci * ppp.h/.c: Fixed bug #27079 (Yet another leak in PPP): outpacket_buf can 2192195972f6Sopenharmony_ci be statically allocated (like in ucip) 2193195972f6Sopenharmony_ci 2194195972f6Sopenharmony_ci 2009-12-04: Simon Goldschmidt (patch by Ioardan Neshev) 2195195972f6Sopenharmony_ci * pap.c: patch #6969: PPP: missing PAP authentication UNTIMEOUT 2196195972f6Sopenharmony_ci 2197195972f6Sopenharmony_ci 2009-12-03: Simon Goldschmidt 2198195972f6Sopenharmony_ci * tcp.h, tcp_in.c, tcp_out.c: Fixed bug #28106: dup ack for fast retransmit 2199195972f6Sopenharmony_ci could have non-zero length 2200195972f6Sopenharmony_ci 2201195972f6Sopenharmony_ci 2009-12-02: Simon Goldschmidt 2202195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #27904: TCP sends too many ACKs: delay resetting 2203195972f6Sopenharmony_ci tcp_input_pcb until after calling the pcb's callbacks 2204195972f6Sopenharmony_ci 2205195972f6Sopenharmony_ci 2009-11-29: Simon Goldschmidt 2206195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #28054: Two segments with FIN flag on the out-of- 2207195972f6Sopenharmony_ci sequence queue, also fixed PBUF_POOL leak in the out-of-sequence code 2208195972f6Sopenharmony_ci 2209195972f6Sopenharmony_ci 2009-11-29: Simon Goldschmidt 2210195972f6Sopenharmony_ci * pbuf.c: Fixed bug #28064: pbuf_alloc(PBUF_POOL) is not thread-safe by 2211195972f6Sopenharmony_ci queueing a call into tcpip_thread to free ooseq-bufs if the pool is empty 2212195972f6Sopenharmony_ci 2213195972f6Sopenharmony_ci 2009-11-26: Simon Goldschmidt 2214195972f6Sopenharmony_ci * tcp.h: Fixed bug #28098: Nagle can prevent fast retransmit from sending 2215195972f6Sopenharmony_ci segment 2216195972f6Sopenharmony_ci 2217195972f6Sopenharmony_ci 2009-11-26: Simon Goldschmidt 2218195972f6Sopenharmony_ci * tcp.h, sockets.c: Fixed bug #28099: API required to disable Nagle 2219195972f6Sopenharmony_ci algorithm at PCB level 2220195972f6Sopenharmony_ci 2221195972f6Sopenharmony_ci 2009-11-22: Simon Goldschmidt 2222195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #27905: FIN isn't combined with data on unsent 2223195972f6Sopenharmony_ci 2224195972f6Sopenharmony_ci 2009-11-22: Simon Goldschmidt (suggested by Bill Auerbach) 2225195972f6Sopenharmony_ci * tcp.c: tcp_alloc: prevent increasing stats.err for MEMP_TCP_PCB when 2226195972f6Sopenharmony_ci reusing time-wait pcb 2227195972f6Sopenharmony_ci 2228195972f6Sopenharmony_ci 2009-11-20: Simon Goldschmidt (patch by Albert Bartel) 2229195972f6Sopenharmony_ci * sockets.c: Fixed bug #28062: Data received directly after accepting 2230195972f6Sopenharmony_ci does not wake up select 2231195972f6Sopenharmony_ci 2232195972f6Sopenharmony_ci 2009-11-11: Simon Goldschmidt 2233195972f6Sopenharmony_ci * netdb.h: Fixed bug #27994: incorrect define for freeaddrinfo(addrinfo) 2234195972f6Sopenharmony_ci 2235195972f6Sopenharmony_ci 2009-10-30: Simon Goldschmidt 2236195972f6Sopenharmony_ci * opt.h: Increased default value for TCP_MSS to 536, updated default 2237195972f6Sopenharmony_ci value for TCP_WND to 4*TCP_MSS to keep delayed ACK working. 2238195972f6Sopenharmony_ci 2239195972f6Sopenharmony_ci 2009-10-28: Kieran Mansley 2240195972f6Sopenharmony_ci * tcp_in.c, tcp_out.c, tcp.h: re-work the fast retransmission code 2241195972f6Sopenharmony_ci to follow algorithm from TCP/IP Illustrated 2242195972f6Sopenharmony_ci 2243195972f6Sopenharmony_ci 2009-10-27: Kieran Mansley 2244195972f6Sopenharmony_ci * tcp_in.c: fix BUG#27445: grow cwnd with every duplicate ACK 2245195972f6Sopenharmony_ci 2246195972f6Sopenharmony_ci 2009-10-25: Simon Goldschmidt 2247195972f6Sopenharmony_ci * tcp.h: bug-fix in the TCP_EVENT_RECV macro (has to call tcp_recved if 2248195972f6Sopenharmony_ci pcb->recv is NULL to keep rcv_wnd correct) 2249195972f6Sopenharmony_ci 2250195972f6Sopenharmony_ci 2009-10-25: Simon Goldschmidt 2251195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #26251: RST process in TIME_WAIT TCP state 2252195972f6Sopenharmony_ci 2253195972f6Sopenharmony_ci 2009-10-23: Simon Goldschmidt (David Empson) 2254195972f6Sopenharmony_ci * tcp.c: Fixed bug #27783: Silly window avoidance for small window sizes 2255195972f6Sopenharmony_ci 2256195972f6Sopenharmony_ci 2009-10-21: Simon Goldschmidt 2257195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #27215: TCP sent() callback gives leading and 2258195972f6Sopenharmony_ci trailing 1 byte len (SYN/FIN) 2259195972f6Sopenharmony_ci 2260195972f6Sopenharmony_ci 2009-10-21: Simon Goldschmidt 2261195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #27315: zero window probe and FIN 2262195972f6Sopenharmony_ci 2263195972f6Sopenharmony_ci 2009-10-19: Simon Goldschmidt 2264195972f6Sopenharmony_ci * dhcp.c/.h: Minor code simplification (don't store received pbuf, change 2265195972f6Sopenharmony_ci conditional code to assert where applicable), check pbuf length before 2266195972f6Sopenharmony_ci testing for valid reply 2267195972f6Sopenharmony_ci 2268195972f6Sopenharmony_ci 2009-10-19: Simon Goldschmidt 2269195972f6Sopenharmony_ci * dhcp.c: Removed most calls to udp_connect since they aren't necessary 2270195972f6Sopenharmony_ci when using udp_sendto_if() - always stay connected to IP_ADDR_ANY. 2271195972f6Sopenharmony_ci 2272195972f6Sopenharmony_ci 2009-10-16: Simon Goldschmidt 2273195972f6Sopenharmony_ci * ip.c: Fixed bug #27390: Source IP check in ip_input() causes it to drop 2274195972f6Sopenharmony_ci valid DHCP packets -> allow 0.0.0.0 as source address when LWIP_DHCP is 2275195972f6Sopenharmony_ci enabled 2276195972f6Sopenharmony_ci 2277195972f6Sopenharmony_ci 2009-10-15: Simon Goldschmidt (Oleg Tyshev) 2278195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #27329: dupacks by unidirectional data transmit 2279195972f6Sopenharmony_ci 2280195972f6Sopenharmony_ci 2009-10-15: Simon Goldschmidt 2281195972f6Sopenharmony_ci * api_lib.c: Fixed bug #27709: conn->err race condition on netconn_recv() 2282195972f6Sopenharmony_ci timeout 2283195972f6Sopenharmony_ci 2284195972f6Sopenharmony_ci 2009-10-15: Simon Goldschmidt 2285195972f6Sopenharmony_ci * autoip.c: Fixed bug #27704: autoip starts with wrong address 2286195972f6Sopenharmony_ci LWIP_AUTOIP_CREATE_SEED_ADDR() returned address in host byte order instead 2287195972f6Sopenharmony_ci of network byte order 2288195972f6Sopenharmony_ci 2289195972f6Sopenharmony_ci 2009-10-11 Simon Goldschmidt (Jörg Kesten) 2290195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #27504: tcp_enqueue wrongly concatenates segments 2291195972f6Sopenharmony_ci which are not consecutive when retransmitting unacked segments 2292195972f6Sopenharmony_ci 2293195972f6Sopenharmony_ci 2009-10-09 Simon Goldschmidt 2294195972f6Sopenharmony_ci * opt.h: Fixed default values of some stats to only be enabled if used 2295195972f6Sopenharmony_ci Fixes bug #27338: sys_stats is defined when NO_SYS = 1 2296195972f6Sopenharmony_ci 2297195972f6Sopenharmony_ci 2009-08-30 Simon Goldschmidt 2298195972f6Sopenharmony_ci * ip.c: Fixed bug bug #27345: "ip_frag() does not use the LWIP_NETIF_LOOPBACK 2299195972f6Sopenharmony_ci function" by checking for loopback before calling ip_frag 2300195972f6Sopenharmony_ci 2301195972f6Sopenharmony_ci 2009-08-25 Simon Goldschmidt 2302195972f6Sopenharmony_ci * dhcp.c: fixed invalid dependency to etharp_query if DHCP_DOES_ARP_CHECK==0 2303195972f6Sopenharmony_ci 2304195972f6Sopenharmony_ci 2009-08-23 Simon Goldschmidt 2305195972f6Sopenharmony_ci * ppp.c: bug #27078: Possible memory leak in pppInit() 2306195972f6Sopenharmony_ci 2307195972f6Sopenharmony_ci 2009-08-23 Simon Goldschmidt 2308195972f6Sopenharmony_ci * netdb.c, dns.c: bug #26657: DNS, if host name is "localhost", result 2309195972f6Sopenharmony_ci is error. 2310195972f6Sopenharmony_ci 2311195972f6Sopenharmony_ci 2009-08-23 Simon Goldschmidt 2312195972f6Sopenharmony_ci * opt.h, init.c: bug #26649: TCP fails when TCP_MSS > TCP_SND_BUF 2313195972f6Sopenharmony_ci Fixed wrong parenthesis, added check in init.c 2314195972f6Sopenharmony_ci 2315195972f6Sopenharmony_ci 2009-08-23 Simon Goldschmidt 2316195972f6Sopenharmony_ci * ppp.c: bug #27266: wait-state debug message in pppMain occurs every ms 2317195972f6Sopenharmony_ci 2318195972f6Sopenharmony_ci 2009-08-23 Simon Goldschmidt 2319195972f6Sopenharmony_ci * many ppp files: bug #27267: Added include to string.h where needed 2320195972f6Sopenharmony_ci 2321195972f6Sopenharmony_ci 2009-08-23 Simon Goldschmidt 2322195972f6Sopenharmony_ci * tcp.h: patch #6843: tcp.h macro optimization patch (for little endian) 2323195972f6Sopenharmony_ci 2324195972f6Sopenharmony_ci 2325195972f6Sopenharmony_ci(STABLE-1.3.1) 2326195972f6Sopenharmony_ci 2327195972f6Sopenharmony_ci ++ New features: 2328195972f6Sopenharmony_ci 2329195972f6Sopenharmony_ci 2009-05-10 Simon Goldschmidt 2330195972f6Sopenharmony_ci * opt.h, sockets.c, pbuf.c, netbuf.h, pbuf.h: task #7013: Added option 2331195972f6Sopenharmony_ci LWIP_NETIF_TX_SINGLE_PBUF to try to create transmit packets from only 2332195972f6Sopenharmony_ci one pbuf to help MACs that don't support scatter-gather DMA. 2333195972f6Sopenharmony_ci 2334195972f6Sopenharmony_ci 2009-05-09 Simon Goldschmidt 2335195972f6Sopenharmony_ci * icmp.h, icmp.c: Shrinked ICMP code, added option to NOT check icoming 2336195972f6Sopenharmony_ci ECHO pbuf for size (just use it): LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN 2337195972f6Sopenharmony_ci 2338195972f6Sopenharmony_ci 2009-05-05 Simon Goldschmidt, Jakob Stoklund Olesen 2339195972f6Sopenharmony_ci * ip.h, ip.c: Added ip_current_netif() & ip_current_header() to receive 2340195972f6Sopenharmony_ci extended info about the currently received packet. 2341195972f6Sopenharmony_ci 2342195972f6Sopenharmony_ci 2009-04-27 Simon Goldschmidt 2343195972f6Sopenharmony_ci * sys.h: Made SYS_LIGHTWEIGHT_PROT and sys_now() work with NO_SYS=1 2344195972f6Sopenharmony_ci 2345195972f6Sopenharmony_ci 2009-04-25 Simon Goldschmidt 2346195972f6Sopenharmony_ci * mem.c, opt.h: Added option MEM_USE_POOLS_TRY_BIGGER_POOL to try the next 2347195972f6Sopenharmony_ci bigger malloc pool if one is empty (only usable with MEM_USE_POOLS). 2348195972f6Sopenharmony_ci 2349195972f6Sopenharmony_ci 2009-04-21 Simon Goldschmidt 2350195972f6Sopenharmony_ci * dns.c, init.c, dns.h, opt.h: task #7507, patch #6786: DNS supports static 2351195972f6Sopenharmony_ci hosts table. New configuration options DNS_LOCAL_HOSTLIST and 2352195972f6Sopenharmony_ci DNS_LOCAL_HOSTLIST_IS_DYNAMIC. Also, DNS_LOOKUP_LOCAL_EXTERN() can be defined 2353195972f6Sopenharmony_ci as an external function for lookup. 2354195972f6Sopenharmony_ci 2355195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2356195972f6Sopenharmony_ci * dhcp.c: patch #6763: Global DHCP XID can be redefined to something more unique 2357195972f6Sopenharmony_ci 2358195972f6Sopenharmony_ci 2009-03-31 Kieran Mansley 2359195972f6Sopenharmony_ci * tcp.c, tcp_out.c, tcp_in.c, sys.h, tcp.h, opts.h: add support for 2360195972f6Sopenharmony_ci TCP timestamp options, off by default. Rework tcp_enqueue() to 2361195972f6Sopenharmony_ci take option flags rather than specified option data 2362195972f6Sopenharmony_ci 2363195972f6Sopenharmony_ci 2009-02-18 Simon Goldschmidt 2364195972f6Sopenharmony_ci * cc.h: Added printf formatter for size_t: SZT_F 2365195972f6Sopenharmony_ci 2366195972f6Sopenharmony_ci 2009-02-16 Simon Goldschmidt (patch by Rishi Khan) 2367195972f6Sopenharmony_ci * icmp.c, opt.h: patch #6539: (configurable) response to broadcast- and multicast 2368195972f6Sopenharmony_ci pings 2369195972f6Sopenharmony_ci 2370195972f6Sopenharmony_ci 2009-02-12 Simon Goldschmidt 2371195972f6Sopenharmony_ci * init.h: Added LWIP_VERSION to get the current version of the stack 2372195972f6Sopenharmony_ci 2373195972f6Sopenharmony_ci 2009-02-11 Simon Goldschmidt (suggested by Gottfried Spitaler) 2374195972f6Sopenharmony_ci * opt.h, memp.h/.c: added MEMP_MEM_MALLOC to use mem_malloc/mem_free instead 2375195972f6Sopenharmony_ci of the pool allocator (can save code size with MEM_LIBC_MALLOC if libc-malloc 2376195972f6Sopenharmony_ci is otherwise used) 2377195972f6Sopenharmony_ci 2378195972f6Sopenharmony_ci 2009-01-28 Jonathan Larmour (suggested by Bill Bauerbach) 2379195972f6Sopenharmony_ci * ipv4/inet_chksum.c, ipv4/lwip/inet_chksum.h: inet_chksum_pseudo_partial() 2380195972f6Sopenharmony_ci is only used by UDPLITE at present, so conditionalise it. 2381195972f6Sopenharmony_ci 2382195972f6Sopenharmony_ci 2008-12-03 Simon Goldschmidt (base on patch from Luca Ceresoli) 2383195972f6Sopenharmony_ci * autoip.c: checked in (slightly modified) patch #6683: Customizable AUTOIP 2384195972f6Sopenharmony_ci "seed" address. This should reduce AUTOIP conflicts if 2385195972f6Sopenharmony_ci LWIP_AUTOIP_CREATE_SEED_ADDR is overridden. 2386195972f6Sopenharmony_ci 2387195972f6Sopenharmony_ci 2008-10-02 Jonathan Larmour and Rishi Khan 2388195972f6Sopenharmony_ci * sockets.c (lwip_accept): Return EWOULDBLOCK if would block on non-blocking 2389195972f6Sopenharmony_ci socket. 2390195972f6Sopenharmony_ci 2391195972f6Sopenharmony_ci 2008-06-30 Simon Goldschmidt 2392195972f6Sopenharmony_ci * mem.c, opt.h, stats.h: fixed bug #21433: Calling mem_free/pbuf_free from 2393195972f6Sopenharmony_ci interrupt context isn't safe: LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT allows 2394195972f6Sopenharmony_ci mem_free to run between mem_malloc iterations. Added illegal counter for 2395195972f6Sopenharmony_ci mem stats. 2396195972f6Sopenharmony_ci 2397195972f6Sopenharmony_ci 2008-06-27 Simon Goldschmidt 2398195972f6Sopenharmony_ci * stats.h/.c, some other files: patch #6483: stats module improvement: 2399195972f6Sopenharmony_ci Added defines to display each module's statistic individually, added stats 2400195972f6Sopenharmony_ci defines for MEM, MEMP and SYS modules, removed (unused) rexmit counter. 2401195972f6Sopenharmony_ci 2402195972f6Sopenharmony_ci 2008-06-17 Simon Goldschmidt 2403195972f6Sopenharmony_ci * err.h: patch #6459: Made err_t overridable to use a more efficient type 2404195972f6Sopenharmony_ci (define LWIP_ERR_T in cc.h) 2405195972f6Sopenharmony_ci 2406195972f6Sopenharmony_ci 2008-06-17 Simon Goldschmidt 2407195972f6Sopenharmony_ci * slipif.c: patch #6480: Added a configuration option for slipif for symmetry 2408195972f6Sopenharmony_ci to loopif 2409195972f6Sopenharmony_ci 2410195972f6Sopenharmony_ci 2008-06-17 Simon Goldschmidt (patch by Luca Ceresoli) 2411195972f6Sopenharmony_ci * netif.c, loopif.c, ip.c, netif.h, loopif.h, opt.h: Checked in slightly 2412195972f6Sopenharmony_ci modified version of patch # 6370: Moved loopif code to netif.c so that 2413195972f6Sopenharmony_ci loopback traffic is supported on all netifs (all local IPs). 2414195972f6Sopenharmony_ci Added option to limit loopback packets for each netifs. 2415195972f6Sopenharmony_ci 2416195972f6Sopenharmony_ci 2417195972f6Sopenharmony_ci ++ Bugfixes: 2418195972f6Sopenharmony_ci 2009-08-12 Kieran Mansley 2419195972f6Sopenharmony_ci * tcp_in.c, tcp.c: Fix bug #27209: handle trimming of segments when 2420195972f6Sopenharmony_ci out of window or out of order properly 2421195972f6Sopenharmony_ci 2422195972f6Sopenharmony_ci 2009-08-12 Kieran Mansley 2423195972f6Sopenharmony_ci * tcp_in.c: Fix bug #27199: use snd_wl2 instead of snd_wl1 2424195972f6Sopenharmony_ci 2425195972f6Sopenharmony_ci 2009-07-28 Simon Goldschmidt 2426195972f6Sopenharmony_ci * mem.h: Fixed bug #27105: "realloc() cannot replace mem_realloc()"s 2427195972f6Sopenharmony_ci 2428195972f6Sopenharmony_ci 2009-07-27 Kieran Mansley 2429195972f6Sopenharmony_ci * api.h api_msg.h netdb.h sockets.h: add missing #include directives 2430195972f6Sopenharmony_ci 2431195972f6Sopenharmony_ci 2009-07-09 Kieran Mansley 2432195972f6Sopenharmony_ci * api_msg.c, sockets.c, api.h: BUG23240 use signed counters for 2433195972f6Sopenharmony_ci recv_avail and don't increment counters until message successfully 2434195972f6Sopenharmony_ci sent to mbox 2435195972f6Sopenharmony_ci 2436195972f6Sopenharmony_ci 2009-06-25 Kieran Mansley 2437195972f6Sopenharmony_ci * api_msg.c api.h: BUG26722: initialise netconn write variables 2438195972f6Sopenharmony_ci in netconn_alloc 2439195972f6Sopenharmony_ci 2440195972f6Sopenharmony_ci 2009-06-25 Kieran Mansley 2441195972f6Sopenharmony_ci * tcp.h: BUG26879: set ret value in TCP_EVENT macros when function is not set 2442195972f6Sopenharmony_ci 2443195972f6Sopenharmony_ci 2009-06-25 Kieran Mansley 2444195972f6Sopenharmony_ci * tcp.c, tcp_in.c, tcp_out.c, tcp.h: BUG26301 and BUG26267: correct 2445195972f6Sopenharmony_ci simultaneous close behaviour, and make snd_nxt have the same meaning 2446195972f6Sopenharmony_ci as in the RFCs. 2447195972f6Sopenharmony_ci 2448195972f6Sopenharmony_ci 2009-05-12 Simon Goldschmidt 2449195972f6Sopenharmony_ci * etharp.h, etharp.c, netif.c: fixed bug #26507: "Gratuitous ARP depends on 2450195972f6Sopenharmony_ci arp_table / uses etharp_query" by adding etharp_gratuitous() 2451195972f6Sopenharmony_ci 2452195972f6Sopenharmony_ci 2009-05-12 Simon Goldschmidt 2453195972f6Sopenharmony_ci * ip.h, ip.c, igmp.c: bug #26487: Added ip_output_if_opt that can add IP options 2454195972f6Sopenharmony_ci to the IP header (used by igmp_ip_output_if) 2455195972f6Sopenharmony_ci 2456195972f6Sopenharmony_ci 2009-05-06 Simon Goldschmidt 2457195972f6Sopenharmony_ci * inet_chksum.c: On little endian architectures, use LWIP_PLATFORM_HTONS (if 2458195972f6Sopenharmony_ci defined) for SWAP_BYTES_IN_WORD to speed up checksumming. 2459195972f6Sopenharmony_ci 2460195972f6Sopenharmony_ci 2009-05-05 Simon Goldschmidt 2461195972f6Sopenharmony_ci * sockets.c: bug #26405: Prematurely released semaphore causes lwip_select() 2462195972f6Sopenharmony_ci to crash 2463195972f6Sopenharmony_ci 2464195972f6Sopenharmony_ci 2009-05-04 Simon Goldschmidt 2465195972f6Sopenharmony_ci * init.c: snmp was not initialized in lwip_init() 2466195972f6Sopenharmony_ci 2467195972f6Sopenharmony_ci 2009-05-04 Frédéric Bernon 2468195972f6Sopenharmony_ci * dhcp.c, netbios.c: Changes if IP_SOF_BROADCAST is enabled. 2469195972f6Sopenharmony_ci 2470195972f6Sopenharmony_ci 2009-05-03 Simon Goldschmidt 2471195972f6Sopenharmony_ci * tcp.h: bug #26349: Nagle algorithm doesn't send although segment is full 2472195972f6Sopenharmony_ci (and unsent->next == NULL) 2473195972f6Sopenharmony_ci 2474195972f6Sopenharmony_ci 2009-05-02 Simon Goldschmidt 2475195972f6Sopenharmony_ci * tcpip.h, tcpip.c: fixed tcpip_untimeout (does not need the time, broken after 2476195972f6Sopenharmony_ci 1.3.0 in CVS only) - fixes compilation of ppp_oe.c 2477195972f6Sopenharmony_ci 2478195972f6Sopenharmony_ci 2009-05-02 Simon Goldschmidt 2479195972f6Sopenharmony_ci * msg_in.c: fixed bug #25636: SNMPSET value is ignored for integer fields 2480195972f6Sopenharmony_ci 2481195972f6Sopenharmony_ci 2009-05-01 Simon Goldschmidt 2482195972f6Sopenharmony_ci * pap.c: bug #21680: PPP upap_rauthnak() drops legal NAK packets 2483195972f6Sopenharmony_ci 2484195972f6Sopenharmony_ci 2009-05-01 Simon Goldschmidt 2485195972f6Sopenharmony_ci * ppp.c: bug #24228: Memory corruption with PPP and DHCP 2486195972f6Sopenharmony_ci 2487195972f6Sopenharmony_ci 2009-04-29 Frédéric Bernon 2488195972f6Sopenharmony_ci * raw.c, udp.c, init.c, opt.h, ip.h, sockets.h: bug #26309: Implement the 2489195972f6Sopenharmony_ci SO(F)_BROADCAST filter for all API layers. Avoid the unindented reception 2490195972f6Sopenharmony_ci of broadcast packets even when this option wasn't set. Port maintainers 2491195972f6Sopenharmony_ci which want to enable this filter have to set IP_SOF_BROADCAST=1 in opt.h. 2492195972f6Sopenharmony_ci If you want this option also filter broadcast on recv operations, you also 2493195972f6Sopenharmony_ci have to set IP_SOF_BROADCAST_RECV=1 in opt.h. 2494195972f6Sopenharmony_ci 2495195972f6Sopenharmony_ci 2009-04-28 Simon Goldschmidt, Jakob Stoklund Olesen 2496195972f6Sopenharmony_ci * dhcp.c: patch #6721, bugs #25575, #25576: Some small fixes to DHCP and 2497195972f6Sopenharmony_ci DHCP/AUTOIP cooperation 2498195972f6Sopenharmony_ci 2499195972f6Sopenharmony_ci 2009-04-25 Simon Goldschmidt, Oleg Tyshev 2500195972f6Sopenharmony_ci * tcp_out.c: bug #24212: Deadlocked tcp_retransmit due to exceeded pcb->cwnd 2501195972f6Sopenharmony_ci Fixed by sorting the unsent and unacked queues (segments are inserted at the 2502195972f6Sopenharmony_ci right place in tcp_output and tcp_rexmit). 2503195972f6Sopenharmony_ci 2504195972f6Sopenharmony_ci 2009-04-25 Simon Goldschmidt 2505195972f6Sopenharmony_ci * memp.c, mem.c, memp.h, mem_std.h: bug #26213 "Problem with memory allocation 2506195972f6Sopenharmony_ci when debugging": memp_sizes contained the wrong sizes (including sanity 2507195972f6Sopenharmony_ci regions); memp pools for MEM_USE_POOLS were too small 2508195972f6Sopenharmony_ci 2509195972f6Sopenharmony_ci 2009-04-24 Simon Goldschmidt, Frédéric Bernon 2510195972f6Sopenharmony_ci * inet.c: patch #6765: Fix a small problem with the last changes (incorrect 2511195972f6Sopenharmony_ci behavior, with with ip address string not ended by a '\0', a space or a 2512195972f6Sopenharmony_ci end of line) 2513195972f6Sopenharmony_ci 2514195972f6Sopenharmony_ci 2009-04-19 Simon Goldschmidt 2515195972f6Sopenharmony_ci * rawapi.txt: Fixed bug #26069: Corrected documentation: if tcp_connect fails, 2516195972f6Sopenharmony_ci pcb->err is called, not pcb->connected (with an error code). 2517195972f6Sopenharmony_ci 2518195972f6Sopenharmony_ci 2009-04-19 Simon Goldschmidt 2519195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #26236: "TCP options (timestamp) don't work with 2520195972f6Sopenharmony_ci no-copy-tcpwrite": deallocate option data, only concat segments with same flags 2521195972f6Sopenharmony_ci 2522195972f6Sopenharmony_ci 2009-04-19 Simon Goldschmidt 2523195972f6Sopenharmony_ci * tcp_out.c: Fixed bug #25094: "Zero-length pbuf" (options are now allocated 2524195972f6Sopenharmony_ci in the header pbuf, not the data pbuf) 2525195972f6Sopenharmony_ci 2526195972f6Sopenharmony_ci 2009-04-18 Simon Goldschmidt 2527195972f6Sopenharmony_ci * api_msg.c: fixed bug #25695: Segmentation fault in do_writemore() 2528195972f6Sopenharmony_ci 2529195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2530195972f6Sopenharmony_ci * sockets.c: tried to fix bug #23559: lwip_recvfrom problem with tcp 2531195972f6Sopenharmony_ci 2532195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2533195972f6Sopenharmony_ci * dhcp.c: task #9192: mem_free of dhcp->options_in and dhcp->msg_in 2534195972f6Sopenharmony_ci 2535195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2536195972f6Sopenharmony_ci * ip.c, ip6.c, tcp_out.c, ip.h: patch #6808: Add a utility function 2537195972f6Sopenharmony_ci ip_hinted_output() (for smaller code mainly) 2538195972f6Sopenharmony_ci 2539195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2540195972f6Sopenharmony_ci * inet.c: patch #6765: Supporting new line characters in inet_aton() 2541195972f6Sopenharmony_ci 2542195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2543195972f6Sopenharmony_ci * dhcp.c: patch #6764: DHCP rebind and renew did not send hostnam option; 2544195972f6Sopenharmony_ci Converted constant OPTION_MAX_MSG_SIZE to netif->mtu, check if netif->mtu 2545195972f6Sopenharmony_ci is big enough in dhcp_start 2546195972f6Sopenharmony_ci 2547195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2548195972f6Sopenharmony_ci * netbuf.c: bug #26027: netbuf_chain resulted in pbuf memory leak 2549195972f6Sopenharmony_ci 2550195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2551195972f6Sopenharmony_ci * sockets.c, ppp.c: bug #25763: corrected 4 occurrences of SMEMCPY to MEMCPY 2552195972f6Sopenharmony_ci 2553195972f6Sopenharmony_ci 2009-04-15 Simon Goldschmidt 2554195972f6Sopenharmony_ci * sockets.c: bug #26121: set_errno can be overridden 2555195972f6Sopenharmony_ci 2556195972f6Sopenharmony_ci 2009-04-09 Kieran Mansley (patch from Luca Ceresoli <lucaceresoli>) 2557195972f6Sopenharmony_ci * init.c, opt.h: Patch#6774 TCP_QUEUE_OOSEQ breaks compilation when 2558195972f6Sopenharmony_ci LWIP_TCP==0 2559195972f6Sopenharmony_ci 2560195972f6Sopenharmony_ci 2009-04-09 Kieran Mansley (patch from Roy Lee <roylee17>) 2561195972f6Sopenharmony_ci * tcp.h: Patch#6802 Add do-while-clauses to those function like 2562195972f6Sopenharmony_ci macros in tcp.h 2563195972f6Sopenharmony_ci 2564195972f6Sopenharmony_ci 2009-03-31 Kieran Mansley 2565195972f6Sopenharmony_ci * tcp.c, tcp_in.c, tcp_out.c, tcp.h, opt.h: Rework the way window 2566195972f6Sopenharmony_ci updates are calculated and sent (BUG20515) 2567195972f6Sopenharmony_ci 2568195972f6Sopenharmony_ci * tcp_in.c: cope with SYN packets received during established states, 2569195972f6Sopenharmony_ci and retransmission of initial SYN. 2570195972f6Sopenharmony_ci 2571195972f6Sopenharmony_ci * tcp_out.c: set push bit correctly when tcp segments are merged 2572195972f6Sopenharmony_ci 2573195972f6Sopenharmony_ci 2009-03-27 Kieran Mansley 2574195972f6Sopenharmony_ci * tcp_out.c set window correctly on probes (correcting change made 2575195972f6Sopenharmony_ci yesterday) 2576195972f6Sopenharmony_ci 2577195972f6Sopenharmony_ci 2009-03-26 Kieran Mansley 2578195972f6Sopenharmony_ci * tcp.c, tcp_in.c, tcp.h: add tcp_abandon() to cope with dropping 2579195972f6Sopenharmony_ci connections where no reset required (bug #25622) 2580195972f6Sopenharmony_ci 2581195972f6Sopenharmony_ci * tcp_out.c: set TCP_ACK flag on keepalive and zero window probes 2582195972f6Sopenharmony_ci (bug #20779) 2583195972f6Sopenharmony_ci 2584195972f6Sopenharmony_ci 2009-02-18 Simon Goldschmidt (Jonathan Larmour and Bill Auerbach) 2585195972f6Sopenharmony_ci * ip_frag.c: patch #6528: the buffer used for IP_FRAG_USES_STATIC_BUF could be 2586195972f6Sopenharmony_ci too small depending on MEM_ALIGNMENT 2587195972f6Sopenharmony_ci 2588195972f6Sopenharmony_ci 2009-02-16 Simon Goldschmidt 2589195972f6Sopenharmony_ci * sockets.h/.c, api_*.h/.c: fixed arguments of socket functions to match the standard; 2590195972f6Sopenharmony_ci converted size argument of netconn_write to 'size_t' 2591195972f6Sopenharmony_ci 2592195972f6Sopenharmony_ci 2009-02-16 Simon Goldschmidt 2593195972f6Sopenharmony_ci * tcp.h, tcp.c: fixed bug #24440: TCP connection close problem on 64-bit host 2594195972f6Sopenharmony_ci by moving accept callback function pointer to TCP_PCB_COMMON 2595195972f6Sopenharmony_ci 2596195972f6Sopenharmony_ci 2009-02-12 Simon Goldschmidt 2597195972f6Sopenharmony_ci * dhcp.c: fixed bug #25345 (DHCPDECLINE is sent with "Maximum message size" 2598195972f6Sopenharmony_ci option) 2599195972f6Sopenharmony_ci 2600195972f6Sopenharmony_ci 2009-02-11 Simon Goldschmidt 2601195972f6Sopenharmony_ci * dhcp.c: fixed bug #24480 (releasing old udp_pdb and pbuf in dhcp_start) 2602195972f6Sopenharmony_ci 2603195972f6Sopenharmony_ci 2009-02-11 Simon Goldschmidt 2604195972f6Sopenharmony_ci * opt.h, api_msg.c: added configurable default valud for netconn->recv_bufsize: 2605195972f6Sopenharmony_ci RECV_BUFSIZE_DEFAULT (fixes bug #23726: pbuf pool exhaustion on slow recv()) 2606195972f6Sopenharmony_ci 2607195972f6Sopenharmony_ci 2009-02-10 Simon Goldschmidt 2608195972f6Sopenharmony_ci * tcp.c: fixed bug #25467: Listen backlog is not reset on timeout in SYN_RCVD: 2609195972f6Sopenharmony_ci Accepts_pending is decrease on a corresponding listen pcb when a connection 2610195972f6Sopenharmony_ci in state SYN_RCVD is close. 2611195972f6Sopenharmony_ci 2612195972f6Sopenharmony_ci 2009-01-28 Jonathan Larmour 2613195972f6Sopenharmony_ci * pbuf.c: reclaim pbufs from TCP out-of-sequence segments if we run 2614195972f6Sopenharmony_ci out of pool pbufs. 2615195972f6Sopenharmony_ci 2616195972f6Sopenharmony_ci 2008-12-19 Simon Goldschmidt 2617195972f6Sopenharmony_ci * many files: patch #6699: fixed some warnings on platform where sizeof(int) == 2 2618195972f6Sopenharmony_ci 2619195972f6Sopenharmony_ci 2008-12-10 Tamas Somogyi, Frédéric Bernon 2620195972f6Sopenharmony_ci * sockets.c: fixed bug #25051: lwip_recvfrom problem with udp: fromaddr and 2621195972f6Sopenharmony_ci port uses deleted netbuf. 2622195972f6Sopenharmony_ci 2623195972f6Sopenharmony_ci 2008-10-18 Simon Goldschmidt 2624195972f6Sopenharmony_ci * tcp_in.c: fixed bug ##24596: Vulnerability on faulty TCP options length 2625195972f6Sopenharmony_ci in tcp_parseopt 2626195972f6Sopenharmony_ci 2627195972f6Sopenharmony_ci 2008-10-15 Simon Goldschmidt 2628195972f6Sopenharmony_ci * ip_frag.c: fixed bug #24517: IP reassembly crashes on unaligned IP headers 2629195972f6Sopenharmony_ci by packing the struct ip_reass_helper. 2630195972f6Sopenharmony_ci 2631195972f6Sopenharmony_ci 2008-10-03 David Woodhouse, Jonathan Larmour 2632195972f6Sopenharmony_ci * etharp.c (etharp_arp_input): Fix type aliasing problem copying ip address. 2633195972f6Sopenharmony_ci 2634195972f6Sopenharmony_ci 2008-10-02 Jonathan Larmour 2635195972f6Sopenharmony_ci * dns.c: Hard-code structure sizes, to avoid issues on some compilers where 2636195972f6Sopenharmony_ci padding is included. 2637195972f6Sopenharmony_ci 2638195972f6Sopenharmony_ci 2008-09-30 Jonathan Larmour 2639195972f6Sopenharmony_ci * sockets.c (lwip_accept): check addr isn't NULL. If it's valid, do an 2640195972f6Sopenharmony_ci assertion check that addrlen isn't NULL. 2641195972f6Sopenharmony_ci 2642195972f6Sopenharmony_ci 2008-09-30 Jonathan Larmour 2643195972f6Sopenharmony_ci * tcp.c: Fix bug #24227, wrong error message in tcp_bind. 2644195972f6Sopenharmony_ci 2645195972f6Sopenharmony_ci 2008-08-26 Simon Goldschmidt 2646195972f6Sopenharmony_ci * inet.h, ip_addr.h: fixed bug #24132: Cross-dependency between ip_addr.h and 2647195972f6Sopenharmony_ci inet.h -> moved declaration of struct in_addr from ip_addr.h to inet.h 2648195972f6Sopenharmony_ci 2649195972f6Sopenharmony_ci 2008-08-14 Simon Goldschmidt 2650195972f6Sopenharmony_ci * api_msg.c: fixed bug #23847: do_close_internal references freed memory (when 2651195972f6Sopenharmony_ci tcp_close returns != ERR_OK) 2652195972f6Sopenharmony_ci 2653195972f6Sopenharmony_ci 2008-07-08 Frédéric Bernon 2654195972f6Sopenharmony_ci * stats.h: Fix some build bugs introduced with patch #6483 (missing some parameters 2655195972f6Sopenharmony_ci in macros, mainly if MEM_STATS=0 and MEMP_STATS=0). 2656195972f6Sopenharmony_ci 2657195972f6Sopenharmony_ci 2008-06-24 Jonathan Larmour 2658195972f6Sopenharmony_ci * tcp_in.c: Fix for bug #23693 as suggested by Art R. Ensure cseg is unused 2659195972f6Sopenharmony_ci if tcp_seg_copy fails. 2660195972f6Sopenharmony_ci 2661195972f6Sopenharmony_ci 2008-06-17 Simon Goldschmidt 2662195972f6Sopenharmony_ci * inet_chksum.c: Checked in some ideas of patch #6460 (loop optimizations) 2663195972f6Sopenharmony_ci and created defines for swapping bytes and folding u32 to u16. 2664195972f6Sopenharmony_ci 2665195972f6Sopenharmony_ci 2008-05-30 Kieran Mansley 2666195972f6Sopenharmony_ci * tcp_in.c Remove redundant "if" statement, and use real rcv_wnd 2667195972f6Sopenharmony_ci rather than rcv_ann_wnd when deciding if packets are in-window. 2668195972f6Sopenharmony_ci Contributed by <arasmussen@consultant.datasys.swri.edu> 2669195972f6Sopenharmony_ci 2670195972f6Sopenharmony_ci 2008-05-30 Kieran Mansley 2671195972f6Sopenharmony_ci * mem.h: Fix BUG#23254. Change macro definition of mem_* to allow 2672195972f6Sopenharmony_ci passing as function pointers when MEM_LIBC_MALLOC is defined. 2673195972f6Sopenharmony_ci 2674195972f6Sopenharmony_ci 2008-05-09 Jonathan Larmour 2675195972f6Sopenharmony_ci * err.h, err.c, sockets.c: Fix bug #23119: Reorder timeout error code to 2676195972f6Sopenharmony_ci stop it being treated as a fatal error. 2677195972f6Sopenharmony_ci 2678195972f6Sopenharmony_ci 2008-04-15 Simon Goldschmidt 2679195972f6Sopenharmony_ci * dhcp.c: fixed bug #22804: dhcp_stop doesn't clear NETIF_FLAG_DHCP 2680195972f6Sopenharmony_ci (flag now cleared) 2681195972f6Sopenharmony_ci 2682195972f6Sopenharmony_ci 2008-03-27 Simon Goldschmidt 2683195972f6Sopenharmony_ci * mem.c, tcpip.c, tcpip.h, opt.h: fixed bug #21433 (Calling mem_free/pbuf_free 2684195972f6Sopenharmony_ci from interrupt context isn't safe): set LWIP_USE_HEAP_FROM_INTERRUPT to 1 2685195972f6Sopenharmony_ci in lwipopts.h or use pbuf_free_callback(p)/mem_free_callback(m) to free pbufs 2686195972f6Sopenharmony_ci or heap memory from interrupt context 2687195972f6Sopenharmony_ci 2688195972f6Sopenharmony_ci 2008-03-26 Simon Goldschmidt 2689195972f6Sopenharmony_ci * tcp_in.c, tcp.c: fixed bug #22249: division by zero could occur if a remote 2690195972f6Sopenharmony_ci host sent a zero mss as TCP option. 2691195972f6Sopenharmony_ci 2692195972f6Sopenharmony_ci 2693195972f6Sopenharmony_ci(STABLE-1.3.0) 2694195972f6Sopenharmony_ci 2695195972f6Sopenharmony_ci ++ New features: 2696195972f6Sopenharmony_ci 2697195972f6Sopenharmony_ci 2008-03-10 Jonathan Larmour 2698195972f6Sopenharmony_ci * inet_chksum.c: Allow choice of one of the sample algorithms to be 2699195972f6Sopenharmony_ci made from lwipopts.h. Fix comment on how to override LWIP_CHKSUM. 2700195972f6Sopenharmony_ci 2701195972f6Sopenharmony_ci 2008-01-22 Frédéric Bernon 2702195972f6Sopenharmony_ci * tcp.c, tcp_in.c, tcp.h, opt.h: Rename LWIP_CALCULATE_EFF_SEND_MSS in 2703195972f6Sopenharmony_ci TCP_CALCULATE_EFF_SEND_MSS to have coherent TCP options names. 2704195972f6Sopenharmony_ci 2705195972f6Sopenharmony_ci 2008-01-14 Frédéric Bernon 2706195972f6Sopenharmony_ci * rawapi.txt, api_msg.c, tcp.c, tcp_in.c, tcp.h: changes for task #7675 "Enable 2707195972f6Sopenharmony_ci to refuse data on a TCP_EVENT_RECV call". Important, behavior changes for the 2708195972f6Sopenharmony_ci tcp_recv callback (see rawapi.txt). 2709195972f6Sopenharmony_ci 2710195972f6Sopenharmony_ci 2008-01-14 Frédéric Bernon, Marc Chaland 2711195972f6Sopenharmony_ci * ip.c: Integrate patch #6369" ip_input : checking before realloc". 2712195972f6Sopenharmony_ci 2713195972f6Sopenharmony_ci 2008-01-12 Frédéric Bernon 2714195972f6Sopenharmony_ci * tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field 2715195972f6Sopenharmony_ci netconn::sem per netconn::op_completed like suggested for the task #7490 2716195972f6Sopenharmony_ci "Add return value to sys_mbox_post". 2717195972f6Sopenharmony_ci 2718195972f6Sopenharmony_ci 2008-01-12 Frédéric Bernon 2719195972f6Sopenharmony_ci * api_msg.c, opt.h: replace DEFAULT_RECVMBOX_SIZE per DEFAULT_TCP_RECVMBOX_SIZE, 2720195972f6Sopenharmony_ci DEFAULT_UDP_RECVMBOX_SIZE and DEFAULT_RAW_RECVMBOX_SIZE (to optimize queues 2721195972f6Sopenharmony_ci sizes), like suggested for the task #7490 "Add return value to sys_mbox_post". 2722195972f6Sopenharmony_ci 2723195972f6Sopenharmony_ci 2008-01-10 Frédéric Bernon 2724195972f6Sopenharmony_ci * tcpip.h, tcpip.c: add tcpip_callback_with_block function for the task #7490 2725195972f6Sopenharmony_ci "Add return value to sys_mbox_post". tcpip_callback is always defined as 2726195972f6Sopenharmony_ci "blocking" ("block" parameter = 1). 2727195972f6Sopenharmony_ci 2728195972f6Sopenharmony_ci 2008-01-10 Frédéric Bernon 2729195972f6Sopenharmony_ci * tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field 2730195972f6Sopenharmony_ci netconn::mbox (sys_mbox_t) per netconn::sem (sys_sem_t) for the task #7490 2731195972f6Sopenharmony_ci "Add return value to sys_mbox_post". 2732195972f6Sopenharmony_ci 2733195972f6Sopenharmony_ci 2008-01-05 Frédéric Bernon 2734195972f6Sopenharmony_ci * sys_arch.txt, api.h, api_lib.c, api_msg.h, api_msg.c, tcpip.c, sys.h, opt.h: 2735195972f6Sopenharmony_ci Introduce changes for task #7490 "Add return value to sys_mbox_post" with some 2736195972f6Sopenharmony_ci modifications in the sys_mbox api: sys_mbox_new take a "size" parameters which 2737195972f6Sopenharmony_ci indicate the number of pointers query by the mailbox. There is three defines 2738195972f6Sopenharmony_ci in opt.h to indicate sizes for tcpip::mbox, netconn::recvmbox, and for the 2739195972f6Sopenharmony_ci netconn::acceptmbox. Port maintainers, you can decide to just add this new 2740195972f6Sopenharmony_ci parameter in your implementation, but to ignore it to keep the previous behavior. 2741195972f6Sopenharmony_ci The new sys_mbox_trypost function return a value to know if the mailbox is 2742195972f6Sopenharmony_ci full or if the message is posted. Take a look to sys_arch.txt for more details. 2743195972f6Sopenharmony_ci This new function is used in tcpip_input (so, can be called in an interrupt 2744195972f6Sopenharmony_ci context since the function is not blocking), and in recv_udp and recv_raw. 2745195972f6Sopenharmony_ci 2746195972f6Sopenharmony_ci 2008-01-04 Frédéric Bernon, Simon Goldschmidt, Jonathan Larmour 2747195972f6Sopenharmony_ci * rawapi.txt, api.h, api_lib.c, api_msg.h, api_msg.c, sockets.c, tcp.h, tcp.c, 2748195972f6Sopenharmony_ci tcp_in.c, init.c, opt.h: rename backlog options with TCP_ prefix, limit the 2749195972f6Sopenharmony_ci "backlog" parameter in an u8_t, 0 is interpreted as "smallest queue", add 2750195972f6Sopenharmony_ci documentation in the rawapi.txt file. 2751195972f6Sopenharmony_ci 2752195972f6Sopenharmony_ci 2007-12-31 Kieran Mansley (based on patch from Per-Henrik Lundbolm) 2753195972f6Sopenharmony_ci * tcp.c, tcp_in.c, tcp_out.c, tcp.h: Add TCP persist timer 2754195972f6Sopenharmony_ci 2755195972f6Sopenharmony_ci 2007-12-31 Frédéric Bernon, Luca Ceresoli 2756195972f6Sopenharmony_ci * autoip.c, etharp.c: ip_addr.h: Integrate patch #6348: "Broadcast ARP packets 2757195972f6Sopenharmony_ci in autoip". The change in etharp_raw could be removed, since all calls to 2758195972f6Sopenharmony_ci etharp_raw use ethbroadcast for the "ethdst_addr" parameter. But it could be 2759195972f6Sopenharmony_ci wrong in the future. 2760195972f6Sopenharmony_ci 2761195972f6Sopenharmony_ci 2007-12-30 Frédéric Bernon, Tom Evans 2762195972f6Sopenharmony_ci * ip.c: Fix bug #21846 "LwIP doesn't appear to perform any IP Source Address 2763195972f6Sopenharmony_ci Filtering" reported by Tom Evans. 2764195972f6Sopenharmony_ci 2765195972f6Sopenharmony_ci 2007-12-21 Frédéric Bernon, Simon Goldschmidt, Jonathan Larmour 2766195972f6Sopenharmony_ci * tcp.h, opt.h, api.h, api_msg.h, tcp.c, tcp_in.c, api_lib.c, api_msg.c, 2767195972f6Sopenharmony_ci sockets.c, init.c: task #7252: Implement TCP listen backlog: Warning: raw API 2768195972f6Sopenharmony_ci applications have to call 'tcp_accepted(pcb)' in their accept callback to 2769195972f6Sopenharmony_ci keep accepting new connections. 2770195972f6Sopenharmony_ci 2771195972f6Sopenharmony_ci 2007-12-13 Frédéric Bernon 2772195972f6Sopenharmony_ci * api_msg.c, err.h, err.c, sockets.c, dns.c, dns.h: replace "enum dns_result" 2773195972f6Sopenharmony_ci by err_t type. Add a new err_t code "ERR_INPROGRESS". 2774195972f6Sopenharmony_ci 2775195972f6Sopenharmony_ci 2007-12-12 Frédéric Bernon 2776195972f6Sopenharmony_ci * dns.h, dns.c, opt.h: move DNS options to the "right" place. Most visibles 2777195972f6Sopenharmony_ci are the one which have ram usage. 2778195972f6Sopenharmony_ci 2779195972f6Sopenharmony_ci 2007-12-05 Frédéric Bernon 2780195972f6Sopenharmony_ci * netdb.c: add a LWIP_DNS_API_HOSTENT_STORAGE option to decide to use a static 2781195972f6Sopenharmony_ci set of variables (=0) or a local one (=1). In this last case, your port should 2782195972f6Sopenharmony_ci provide a function "struct hostent* sys_thread_hostent( struct hostent* h)" 2783195972f6Sopenharmony_ci which have to do a copy of "h" and return a pointer ont the "per-thread" copy. 2784195972f6Sopenharmony_ci 2785195972f6Sopenharmony_ci 2007-12-03 Simon Goldschmidt 2786195972f6Sopenharmony_ci * ip.c: ip_input: check if a packet is for inp first before checking all other 2787195972f6Sopenharmony_ci netifs on netif_list (speeds up packet receiving in most cases) 2788195972f6Sopenharmony_ci 2789195972f6Sopenharmony_ci 2007-11-30 Simon Goldschmidt 2790195972f6Sopenharmony_ci * udp.c, raw.c: task #7497: Sort lists (pcb, netif, ...) for faster access 2791195972f6Sopenharmony_ci UDP: move a (connected) pcb selected for input to the front of the list of 2792195972f6Sopenharmony_ci pcbs so that it is found faster next time. Same for RAW pcbs that have eaten 2793195972f6Sopenharmony_ci a packet. 2794195972f6Sopenharmony_ci 2795195972f6Sopenharmony_ci 2007-11-28 Simon Goldschmidt 2796195972f6Sopenharmony_ci * etharp.c, stats.c, stats.h, opt.h: Introduced ETHARP_STATS 2797195972f6Sopenharmony_ci 2798195972f6Sopenharmony_ci 2007-11-25 Simon Goldschmidt 2799195972f6Sopenharmony_ci * dhcp.c: dhcp_unfold_reply() uses pbuf_copy_partial instead of its own copy 2800195972f6Sopenharmony_ci algorithm. 2801195972f6Sopenharmony_ci 2802195972f6Sopenharmony_ci 2007-11-24 Simon Goldschmidt 2803195972f6Sopenharmony_ci * netdb.h, netdb.c, sockets.h/.c: Moved lwip_gethostbyname from sockets.c 2804195972f6Sopenharmony_ci to the new file netdb.c; included lwip_getaddrinfo. 2805195972f6Sopenharmony_ci 2806195972f6Sopenharmony_ci 2007-11-21 Simon Goldschmidt 2807195972f6Sopenharmony_ci * tcp.h, opt.h, tcp.c, tcp_in.c: implemented calculating the effective send-mss 2808195972f6Sopenharmony_ci based on the MTU of the netif used to send. Enabled by default. Disable by 2809195972f6Sopenharmony_ci setting LWIP_CALCULATE_EFF_SEND_MSS to 0. This fixes bug #21492. 2810195972f6Sopenharmony_ci 2811195972f6Sopenharmony_ci 2007-11-19 Frédéric Bernon 2812195972f6Sopenharmony_ci * api_msg.c, dns.h, dns.c: Implement DNS_DOES_NAME_CHECK option (check if name 2813195972f6Sopenharmony_ci received match the name query), implement DNS_USES_STATIC_BUF (the place where 2814195972f6Sopenharmony_ci copy dns payload to parse the response), return an error if there is no place 2815195972f6Sopenharmony_ci for a new query, and fix some minor problems. 2816195972f6Sopenharmony_ci 2817195972f6Sopenharmony_ci 2007-11-16 Simon Goldschmidt 2818195972f6Sopenharmony_ci * new files: ipv4/inet.c, ipv4/inet_chksum.c, ipv6/inet6.c 2819195972f6Sopenharmony_ci removed files: core/inet.c, core/inet6.c 2820195972f6Sopenharmony_ci Moved inet files into ipv4/ipv6 directory; splitted inet.c/inet.h into 2821195972f6Sopenharmony_ci inet and chksum part; changed includes in all lwIP files as appropriate 2822195972f6Sopenharmony_ci 2823195972f6Sopenharmony_ci 2007-11-16 Simon Goldschmidt 2824195972f6Sopenharmony_ci * api.h, api_msg.h, api_lib.c, api_msg.c, socket.h, socket.c: Added sequential 2825195972f6Sopenharmony_ci dns resolver function for netconn api (netconn_gethostbyname) and socket api 2826195972f6Sopenharmony_ci (gethostbyname/gethostbyname_r). 2827195972f6Sopenharmony_ci 2828195972f6Sopenharmony_ci 2007-11-15 Jim Pettinato, Frédéric Bernon 2829195972f6Sopenharmony_ci * opt.h, init.c, tcpip.c, dhcp.c, dns.h, dns.c: add DNS client for simple name 2830195972f6Sopenharmony_ci requests with RAW api interface. Initialization is done in lwip_init() with 2831195972f6Sopenharmony_ci build time options. DNS timer is added in tcpip_thread context. DHCP can set 2832195972f6Sopenharmony_ci DNS server ip addresses when options are received. You need to set LWIP_DNS=1 2833195972f6Sopenharmony_ci in your lwipopts.h file (LWIP_DNS=0 in opt.h). DNS_DEBUG can be set to get 2834195972f6Sopenharmony_ci some traces with LWIP_DEBUGF. Sanity check have been added. There is a "todo" 2835195972f6Sopenharmony_ci list with points to improve. 2836195972f6Sopenharmony_ci 2837195972f6Sopenharmony_ci 2007-11-06 Simon Goldschmidt 2838195972f6Sopenharmony_ci * opt.h, mib2.c: Patch #6215: added ifAdminStatus write support (if explicitly 2839195972f6Sopenharmony_ci enabled by defining SNMP_SAFE_REQUESTS to 0); added code to check link status 2840195972f6Sopenharmony_ci for ifOperStatus if LWIP_NETIF_LINK_CALLBACK is defined. 2841195972f6Sopenharmony_ci 2842195972f6Sopenharmony_ci 2007-11-06 Simon Goldschmidt 2843195972f6Sopenharmony_ci * api.h, api_msg.h and dependent files: Task #7410: Removed the need to include 2844195972f6Sopenharmony_ci core header files in api.h (ip/tcp/udp/raw.h) to hide the internal 2845195972f6Sopenharmony_ci implementation from netconn api applications. 2846195972f6Sopenharmony_ci 2847195972f6Sopenharmony_ci 2007-11-03 Frédéric Bernon 2848195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c, sockets.c, opt.h: add SO_RCVBUF option for UDP & 2849195972f6Sopenharmony_ci RAW netconn. You need to set LWIP_SO_RCVBUF=1 in your lwipopts.h (it's disabled 2850195972f6Sopenharmony_ci by default). Netconn API users can use the netconn_recv_bufsize macro to access 2851195972f6Sopenharmony_ci it. This is a first release which have to be improve for TCP. Note it used the 2852195972f6Sopenharmony_ci netconn::recv_avail which need to be more "thread-safe" (note there is already 2853195972f6Sopenharmony_ci the problem for FIONREAD with lwip_ioctl/ioctlsocket). 2854195972f6Sopenharmony_ci 2855195972f6Sopenharmony_ci 2007-11-01 Frédéric Bernon, Marc Chaland 2856195972f6Sopenharmony_ci * sockets.h, sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c, tcp.h, tcp_out.c: 2857195972f6Sopenharmony_ci Integrate "patch #6250 : MSG_MORE flag for send". MSG_MORE is used at socket api 2858195972f6Sopenharmony_ci layer, NETCONN_MORE at netconn api layer, and TCP_WRITE_FLAG_MORE at raw api 2859195972f6Sopenharmony_ci layer. This option enable to delayed TCP PUSH flag on multiple "write" calls. 2860195972f6Sopenharmony_ci Note that previous "copy" parameter for "write" APIs is now called "apiflags". 2861195972f6Sopenharmony_ci 2862195972f6Sopenharmony_ci 2007-10-24 Frédéric Bernon 2863195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c: Add macro API_EVENT in the same spirit than 2864195972f6Sopenharmony_ci TCP_EVENT_xxx macros to get a code more readable. It could also help to remove 2865195972f6Sopenharmony_ci some code (like we have talk in "patch #5919 : Create compile switch to remove 2866195972f6Sopenharmony_ci select code"), but it could be done later. 2867195972f6Sopenharmony_ci 2868195972f6Sopenharmony_ci 2007-10-08 Simon Goldschmidt 2869195972f6Sopenharmony_ci * many files: Changed initialization: many init functions are not needed any 2870195972f6Sopenharmony_ci more since we now rely on the compiler initializing global and static 2871195972f6Sopenharmony_ci variables to zero! 2872195972f6Sopenharmony_ci 2873195972f6Sopenharmony_ci 2007-10-06 Simon Goldschmidt 2874195972f6Sopenharmony_ci * ip_frag.c, memp.c, mib2.c, ip_frag.h, memp_std.h, opt.h: Changed IP_REASSEMBLY 2875195972f6Sopenharmony_ci to enqueue the received pbufs so that multiple packets can be reassembled 2876195972f6Sopenharmony_ci simultaneously and no static reassembly buffer is needed. 2877195972f6Sopenharmony_ci 2878195972f6Sopenharmony_ci 2007-10-05 Simon Goldschmidt 2879195972f6Sopenharmony_ci * tcpip.c, etharp.h, etharp.c: moved ethernet_input from tcpip.c to etharp.c so 2880195972f6Sopenharmony_ci all netifs (or ports) can use it. 2881195972f6Sopenharmony_ci 2882195972f6Sopenharmony_ci 2007-10-05 Frédéric Bernon 2883195972f6Sopenharmony_ci * netifapi.h, netifapi.c: add function netifapi_netif_set_default. Change the 2884195972f6Sopenharmony_ci common function to reduce a little bit the footprint (for all functions using 2885195972f6Sopenharmony_ci only the "netif" parameter). 2886195972f6Sopenharmony_ci 2887195972f6Sopenharmony_ci 2007-10-03 Frédéric Bernon 2888195972f6Sopenharmony_ci * netifapi.h, netifapi.c: add functions netifapi_netif_set_up, netifapi_netif_set_down, 2889195972f6Sopenharmony_ci netifapi_autoip_start and netifapi_autoip_stop. Use a common function to reduce 2890195972f6Sopenharmony_ci a little bit the footprint (for all functions using only the "netif" parameter). 2891195972f6Sopenharmony_ci 2892195972f6Sopenharmony_ci 2007-09-15 Frédéric Bernon 2893195972f6Sopenharmony_ci * udp.h, udp.c, sockets.c: Changes for "#20503 IGMP Improvement". Add IP_MULTICAST_IF 2894195972f6Sopenharmony_ci option in socket API, and a new field "multicast_ip" in "struct udp_pcb" (for 2895195972f6Sopenharmony_ci netconn and raw API users), only if LWIP_IGMP=1. Add getsockopt processing for 2896195972f6Sopenharmony_ci IP_MULTICAST_TTL and IP_MULTICAST_IF. 2897195972f6Sopenharmony_ci 2898195972f6Sopenharmony_ci 2007-09-10 Frédéric Bernon 2899195972f6Sopenharmony_ci * snmp.h, mib2.c: enable to remove SNMP timer (which consumne several cycles 2900195972f6Sopenharmony_ci even when it's not necessary). snmp_agent.txt tell to call snmp_inc_sysuptime() 2901195972f6Sopenharmony_ci each 10ms (but, it's intrusive if you use sys_timeout feature). Now, you can 2902195972f6Sopenharmony_ci decide to call snmp_add_sysuptime(100) each 1000ms (which is bigger "step", but 2903195972f6Sopenharmony_ci call to a lower frequency). Or, you can decide to not call snmp_inc_sysuptime() 2904195972f6Sopenharmony_ci or snmp_add_sysuptime(), and to define the SNMP_GET_SYSUPTIME(sysuptime) macro. 2905195972f6Sopenharmony_ci This one is undefined by default in mib2.c. SNMP_GET_SYSUPTIME is called inside 2906195972f6Sopenharmony_ci snmp_get_sysuptime(u32_t *value), and enable to change "sysuptime" value only 2907195972f6Sopenharmony_ci when it's queried (any direct call to "sysuptime" is changed by a call to 2908195972f6Sopenharmony_ci snmp_get_sysuptime). 2909195972f6Sopenharmony_ci 2910195972f6Sopenharmony_ci 2007-09-09 Frédéric Bernon, Bill Florac 2911195972f6Sopenharmony_ci * igmp.h, igmp.c, netif.h, netif.c, ip.c: To enable to have interfaces with IGMP, 2912195972f6Sopenharmony_ci and others without it, there is a new NETIF_FLAG_IGMP flag to set in netif->flags 2913195972f6Sopenharmony_ci if you want IGMP on an interface. igmp_stop() is now called inside netif_remove(). 2914195972f6Sopenharmony_ci igmp_report_groups() is now called inside netif_set_link_up() (need to have 2915195972f6Sopenharmony_ci LWIP_NETIF_LINK_CALLBACK=1) to resend reports once the link is up (avoid to wait 2916195972f6Sopenharmony_ci the next query message to receive the matching multicast streams). 2917195972f6Sopenharmony_ci 2918195972f6Sopenharmony_ci 2007-09-08 Frédéric Bernon 2919195972f6Sopenharmony_ci * sockets.c, ip.h, api.h, tcp.h: declare a "struct ip_pcb" which only contains 2920195972f6Sopenharmony_ci IP_PCB. Add in the netconn's "pcb" union a "struct ip_pcb *ip;" (no size change). 2921195972f6Sopenharmony_ci Use this new field to access to common pcb fields (ttl, tos, so_options, etc...). 2922195972f6Sopenharmony_ci Enable to access to these fields with LWIP_TCP=0. 2923195972f6Sopenharmony_ci 2924195972f6Sopenharmony_ci 2007-09-05 Frédéric Bernon 2925195972f6Sopenharmony_ci * udp.c, ipv4/icmp.c, ipv4/ip.c, ipv6/icmp.c, ipv6/ip6.c, ipv4/icmp.h, 2926195972f6Sopenharmony_ci ipv6/icmp.h, opt.h: Integrate "task #7272 : LWIP_ICMP option". The new option 2927195972f6Sopenharmony_ci LWIP_ICMP enable/disable ICMP module inside the IP stack (enable per default). 2928195972f6Sopenharmony_ci Be careful, disabling ICMP make your product non-compliant to RFC1122, but 2929195972f6Sopenharmony_ci help to reduce footprint, and to reduce "visibility" on the Internet. 2930195972f6Sopenharmony_ci 2931195972f6Sopenharmony_ci 2007-09-05 Frédéric Bernon, Bill Florac 2932195972f6Sopenharmony_ci * opt.h, sys.h, tcpip.c, slipif.c, ppp.c, sys_arch.txt: Change parameters list 2933195972f6Sopenharmony_ci for sys_thread_new (see "task #7252 : Create sys_thread_new_ex()"). Two new 2934195972f6Sopenharmony_ci parameters have to be provided: a task name, and a task stack size. For this 2935195972f6Sopenharmony_ci one, since it's platform dependant, you could define the best one for you in 2936195972f6Sopenharmony_ci your lwipopts.h. For port maintainers, you can just add these new parameters 2937195972f6Sopenharmony_ci in your sys_arch.c file, and but it's not mandatory, use them in your OS 2938195972f6Sopenharmony_ci specific functions. 2939195972f6Sopenharmony_ci 2940195972f6Sopenharmony_ci 2007-09-05 Frédéric Bernon 2941195972f6Sopenharmony_ci * inet.c, autoip.c, msg_in.c, msg_out.c, init.c: Move some build time checkings 2942195972f6Sopenharmony_ci inside init.c for task #7142 "Sanity check user-configurable values". 2943195972f6Sopenharmony_ci 2944195972f6Sopenharmony_ci 2007-09-04 Frédéric Bernon, Bill Florac 2945195972f6Sopenharmony_ci * igmp.h, igmp.c, memp_std.h, memp.c, init.c, opt.h: Replace mem_malloc call by 2946195972f6Sopenharmony_ci memp_malloc, and use a new MEMP_NUM_IGMP_GROUP option (see opt.h to define the 2947195972f6Sopenharmony_ci value). It will avoid potential fragmentation problems, use a counter to know 2948195972f6Sopenharmony_ci how many times a group is used on an netif, and free it when all applications 2949195972f6Sopenharmony_ci leave it. MEMP_NUM_IGMP_GROUP got 8 as default value (and init.c got a sanity 2950195972f6Sopenharmony_ci check if LWIP_IGMP!=0). 2951195972f6Sopenharmony_ci 2952195972f6Sopenharmony_ci 2007-09-03 Frédéric Bernon 2953195972f6Sopenharmony_ci * igmp.h, igmp.c, sockets.c, api_msg.c: Changes for "#20503 IGMP Improvement". 2954195972f6Sopenharmony_ci Initialize igmp_mac_filter to NULL in netif_add (this field should be set in 2955195972f6Sopenharmony_ci the netif's "init" function). Use the "imr_interface" field (for socket layer) 2956195972f6Sopenharmony_ci and/or the "interface" field (for netconn layer), for join/leave operations. 2957195972f6Sopenharmony_ci The igmp_join/leavegroup first parameter change from a netif to an ipaddr. 2958195972f6Sopenharmony_ci This field could be a netif's ipaddr, or "any" (same meaning than ip_addr_isany). 2959195972f6Sopenharmony_ci 2960195972f6Sopenharmony_ci 2007-08-30 Frédéric Bernon 2961195972f6Sopenharmony_ci * Add netbuf.h, netbuf.c, Change api.h, api_lib.c: #7249 "Split netbuf functions 2962195972f6Sopenharmony_ci from api/api_lib". Now netbuf API is independant of netconn, and can be used 2963195972f6Sopenharmony_ci with other API (application based on raw API, or future "socket2" API). Ports 2964195972f6Sopenharmony_ci maintainers just have to add src/api/netbuf.c in their makefile/projects. 2965195972f6Sopenharmony_ci 2966195972f6Sopenharmony_ci 2007-08-30 Frédéric Bernon, Jonathan Larmour 2967195972f6Sopenharmony_ci * init.c: Add first version of lwip_sanity_check for task #7142 "Sanity check 2968195972f6Sopenharmony_ci user-configurable values". 2969195972f6Sopenharmony_ci 2970195972f6Sopenharmony_ci 2007-08-29 Frédéric Bernon 2971195972f6Sopenharmony_ci * igmp.h, igmp.c, tcpip.c, init.c, netif.c: change igmp_init and add igmp_start. 2972195972f6Sopenharmony_ci igmp_start is call inside netif_add. Now, igmp initialization is in the same 2973195972f6Sopenharmony_ci spirit than the others modules. Modify some IGMP debug traces. 2974195972f6Sopenharmony_ci 2975195972f6Sopenharmony_ci 2007-08-29 Frédéric Bernon 2976195972f6Sopenharmony_ci * Add init.h, init.c, Change opt.h, tcpip.c: Task #7213 "Add a lwip_init function" 2977195972f6Sopenharmony_ci Add lwip_init function to regroup all modules initializations, and to provide 2978195972f6Sopenharmony_ci a place to add code for task #7142 "Sanity check user-configurable values". 2979195972f6Sopenharmony_ci Ports maintainers should remove direct initializations calls from their code, 2980195972f6Sopenharmony_ci and add init.c in their makefiles. Note that lwip_init() function is called 2981195972f6Sopenharmony_ci inside tcpip_init, but can also be used by raw api users since all calls are 2982195972f6Sopenharmony_ci disabled when matching options are disabled. Also note that their is new options 2983195972f6Sopenharmony_ci in opt.h, you should configure in your lwipopts.h (they are enabled per default). 2984195972f6Sopenharmony_ci 2985195972f6Sopenharmony_ci 2007-08-26 Marc Boucher 2986195972f6Sopenharmony_ci * api_msg.c: do_close_internal(): Reset the callbacks and arg (conn) to NULL 2987195972f6Sopenharmony_ci since they can under certain circumstances be called with an invalid conn 2988195972f6Sopenharmony_ci pointer after the connection has been closed (and conn has been freed). 2989195972f6Sopenharmony_ci 2990195972f6Sopenharmony_ci 2007-08-25 Frédéric Bernon (Artem Migaev's Patch) 2991195972f6Sopenharmony_ci * netif.h, netif.c: Integrate "patch #6163 : Function to check if link layer is up". 2992195972f6Sopenharmony_ci Add a netif_is_link_up() function if LWIP_NETIF_LINK_CALLBACK option is set. 2993195972f6Sopenharmony_ci 2994195972f6Sopenharmony_ci 2007-08-22 Frédéric Bernon 2995195972f6Sopenharmony_ci * netif.h, netif.c, opt.h: Rename LWIP_NETIF_CALLBACK in LWIP_NETIF_STATUS_CALLBACK 2996195972f6Sopenharmony_ci to be coherent with new LWIP_NETIF_LINK_CALLBACK option before next release. 2997195972f6Sopenharmony_ci 2998195972f6Sopenharmony_ci 2007-08-22 Frédéric Bernon 2999195972f6Sopenharmony_ci * tcpip.h, tcpip.c, ethernetif.c, opt.h: remove options ETHARP_TCPIP_INPUT & 3000195972f6Sopenharmony_ci ETHARP_TCPIP_ETHINPUT, now, only "ethinput" code is supported, even if the 3001195972f6Sopenharmony_ci name is tcpip_input (we keep the name of 1.2.0 function). 3002195972f6Sopenharmony_ci 3003195972f6Sopenharmony_ci 2007-08-17 Jared Grubb 3004195972f6Sopenharmony_ci * memp_std.h, memp.h, memp.c, mem.c, stats.c: (Task #7136) Centralize mempool 3005195972f6Sopenharmony_ci settings into new memp_std.h and optional user file lwippools.h. This adds 3006195972f6Sopenharmony_ci more dynamic mempools, and allows the user to create an arbitrary number of 3007195972f6Sopenharmony_ci mempools for mem_malloc. 3008195972f6Sopenharmony_ci 3009195972f6Sopenharmony_ci 2007-08-16 Marc Boucher 3010195972f6Sopenharmony_ci * api_msg.c: Initialize newconn->state to NETCONN_NONE in accept_function; 3011195972f6Sopenharmony_ci otherwise it was left to NETCONN_CLOSE and sent_tcp() could prematurely 3012195972f6Sopenharmony_ci close the connection. 3013195972f6Sopenharmony_ci 3014195972f6Sopenharmony_ci 2007-08-16 Marc Boucher 3015195972f6Sopenharmony_ci * sockets.c: lwip_accept(): check netconn_peer() error return. 3016195972f6Sopenharmony_ci 3017195972f6Sopenharmony_ci 2007-08-16 Marc Boucher 3018195972f6Sopenharmony_ci * mem.c, mem.h: Added mem_calloc(). 3019195972f6Sopenharmony_ci 3020195972f6Sopenharmony_ci 2007-08-16 Marc Boucher 3021195972f6Sopenharmony_ci * tcpip.c, tcpip.h memp.c, memp.h: Added distinct memp (MEMP_TCPIP_MSG_INPKT) 3022195972f6Sopenharmony_ci for input packets to prevent floods from consuming all of MEMP_TCPIP_MSG 3023195972f6Sopenharmony_ci and starving other message types. 3024195972f6Sopenharmony_ci Renamed MEMP_TCPIP_MSG to MEMP_TCPIP_MSG_API 3025195972f6Sopenharmony_ci 3026195972f6Sopenharmony_ci 2007-08-16 Marc Boucher 3027195972f6Sopenharmony_ci * pbuf.c, pbuf.h, etharp.c, tcp_in.c, sockets.c: Split pbuf flags in pbuf 3028195972f6Sopenharmony_ci type and flgs (later renamed to flags). 3029195972f6Sopenharmony_ci Use enum pbuf_flag as pbuf_type. Renumber PBUF_FLAG_*. 3030195972f6Sopenharmony_ci Improved lwip_recvfrom(). TCP push now propagated. 3031195972f6Sopenharmony_ci 3032195972f6Sopenharmony_ci 2007-08-16 Marc Boucher 3033195972f6Sopenharmony_ci * ethernetif.c, contrib/ports/various: ethbroadcast now a shared global 3034195972f6Sopenharmony_ci provided by etharp. 3035195972f6Sopenharmony_ci 3036195972f6Sopenharmony_ci 2007-08-16 Marc Boucher 3037195972f6Sopenharmony_ci * ppp_oe.c ppp_oe.h, auth.c chap.c fsm.c lcp.c ppp.c ppp.h, 3038195972f6Sopenharmony_ci etharp.c ethernetif.c, etharp.h, opt.h tcpip.h, tcpip.c: 3039195972f6Sopenharmony_ci Added PPPoE support and various PPP improvements. 3040195972f6Sopenharmony_ci 3041195972f6Sopenharmony_ci 2007-07-25 Simon Goldschmidt 3042195972f6Sopenharmony_ci * api_lib.c, ip_frag.c, pbuf.c, api.h, pbuf.h: Introduced pbuf_copy_partial, 3043195972f6Sopenharmony_ci making netbuf_copy_partial use this function. 3044195972f6Sopenharmony_ci 3045195972f6Sopenharmony_ci 2007-07-25 Simon Goldschmidt 3046195972f6Sopenharmony_ci * tcp_in.c: Fix bug #20506: Slow start / initial congestion window starts with 3047195972f6Sopenharmony_ci 2 * mss (instead of 1 * mss previously) to comply with some newer RFCs and 3048195972f6Sopenharmony_ci other stacks. 3049195972f6Sopenharmony_ci 3050195972f6Sopenharmony_ci 2007-07-13 Jared Grubb (integrated by Frédéric Bernon) 3051195972f6Sopenharmony_ci * opt.h, netif.h, netif.c, ethernetif.c: Add new configuration option to add 3052195972f6Sopenharmony_ci a link callback in the netif struct, and functions to handle it. Be carefull 3053195972f6Sopenharmony_ci for port maintainers to add the NETIF_FLAG_LINK_UP flag (like in ethernetif.c) 3054195972f6Sopenharmony_ci if you want to be sure to be compatible with future changes... 3055195972f6Sopenharmony_ci 3056195972f6Sopenharmony_ci 2007-06-30 Frédéric Bernon 3057195972f6Sopenharmony_ci * sockets.h, sockets.c: Implement MSG_PEEK flag for recv/recvfrom functions. 3058195972f6Sopenharmony_ci 3059195972f6Sopenharmony_ci 2007-06-21 Simon Goldschmidt 3060195972f6Sopenharmony_ci * etharp.h, etharp.c: Combined etharp_request with etharp_raw for both 3061195972f6Sopenharmony_ci LWIP_AUTOIP =0 and =1 to remove redundant code. 3062195972f6Sopenharmony_ci 3063195972f6Sopenharmony_ci 2007-06-21 Simon Goldschmidt 3064195972f6Sopenharmony_ci * mem.c, memp.c, mem.h, memp.h, opt.h: task #6863: Introduced the option 3065195972f6Sopenharmony_ci MEM_USE_POOLS to use 4 pools with different sized elements instead of a 3066195972f6Sopenharmony_ci heap. This both prevents memory fragmentation and gives a higher speed 3067195972f6Sopenharmony_ci at the cost of more memory consumption. Turned off by default. 3068195972f6Sopenharmony_ci 3069195972f6Sopenharmony_ci 2007-06-21 Simon Goldschmidt 3070195972f6Sopenharmony_ci * api_lib.c, api_msg.c, api.h, api_msg.h: Converted the length argument of 3071195972f6Sopenharmony_ci netconn_write (and therefore also api_msg_msg.msg.w.len) from u16_t into 3072195972f6Sopenharmony_ci int to be able to send a bigger buffer than 64K with one time (mainly 3073195972f6Sopenharmony_ci used from lwip_send). 3074195972f6Sopenharmony_ci 3075195972f6Sopenharmony_ci 2007-06-21 Simon Goldschmidt 3076195972f6Sopenharmony_ci * tcp.h, api_msg.c: Moved the nagle algorithm from netconn_write/do_write 3077195972f6Sopenharmony_ci into a define (tcp_output_nagle) in tcp.h to provide it to raw api users, too. 3078195972f6Sopenharmony_ci 3079195972f6Sopenharmony_ci 2007-06-21 Simon Goldschmidt 3080195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c: Fixed bug #20021: Moved sendbuf-processing in 3081195972f6Sopenharmony_ci netconn_write from api_lib.c to api_msg.c to also prevent multiple context- 3082195972f6Sopenharmony_ci changes on low memory or empty send-buffer. 3083195972f6Sopenharmony_ci 3084195972f6Sopenharmony_ci 2007-06-18 Simon Goldschmidt 3085195972f6Sopenharmony_ci * etharp.c, etharp.h: Changed etharp to use a defined hardware address length 3086195972f6Sopenharmony_ci of 6 to avoid loading netif->hwaddr_len every time (since this file is only 3087195972f6Sopenharmony_ci used for ethernet and struct eth_addr already had a defined length of 6). 3088195972f6Sopenharmony_ci 3089195972f6Sopenharmony_ci 2007-06-17 Simon Goldschmidt 3090195972f6Sopenharmony_ci * sockets.c, sockets.h: Implemented socket options SO_NO_CHECK for UDP sockets 3091195972f6Sopenharmony_ci to disable UDP checksum generation on transmit. 3092195972f6Sopenharmony_ci 3093195972f6Sopenharmony_ci 2007-06-13 Frédéric Bernon, Simon Goldschmidt 3094195972f6Sopenharmony_ci * debug.h, api_msg.c: change LWIP_ERROR to use it to check errors like invalid 3095195972f6Sopenharmony_ci pointers or parameters, and let the possibility to redefined it in cc.h. Use 3096195972f6Sopenharmony_ci this macro to check "conn" parameter in api_msg.c functions. 3097195972f6Sopenharmony_ci 3098195972f6Sopenharmony_ci 2007-06-11 Simon Goldschmidt 3099195972f6Sopenharmony_ci * sockets.c, sockets.h: Added UDP lite support for sockets 3100195972f6Sopenharmony_ci 3101195972f6Sopenharmony_ci 2007-06-10 Simon Goldschmidt 3102195972f6Sopenharmony_ci * udp.h, opt.h, api_msg.c, ip.c, udp.c: Included switch LWIP_UDPLITE (enabled 3103195972f6Sopenharmony_ci by default) to switch off UDP-Lite support if not needed (reduces udp.c code 3104195972f6Sopenharmony_ci size) 3105195972f6Sopenharmony_ci 3106195972f6Sopenharmony_ci 2007-06-09 Dominik Spies (integrated by Frédéric Bernon) 3107195972f6Sopenharmony_ci * autoip.h, autoip.c, dhcp.h, dhcp.c, netif.h, netif.c, etharp.h, etharp.c, opt.h: 3108195972f6Sopenharmony_ci AutoIP implementation available for IPv4, with new options LWIP_AUTOIP and 3109195972f6Sopenharmony_ci LWIP_DHCP_AUTOIP_COOP if you want to cooperate with DHCP. Some tips to adapt 3110195972f6Sopenharmony_ci (see TODO mark in the source code). 3111195972f6Sopenharmony_ci 3112195972f6Sopenharmony_ci 2007-06-09 Simon Goldschmidt 3113195972f6Sopenharmony_ci * etharp.h, etharp.c, ethernetif.c: Modified order of parameters for 3114195972f6Sopenharmony_ci etharp_output() to match netif->output so etharp_output() can be used 3115195972f6Sopenharmony_ci directly as netif->output to save one function call. 3116195972f6Sopenharmony_ci 3117195972f6Sopenharmony_ci 2007-06-08 Simon Goldschmidt 3118195972f6Sopenharmony_ci * netif.h, ethernetif.c, slipif.c, loopif.c: Added define 3119195972f6Sopenharmony_ci NETIF_INIT_SNMP(netif, type, speed) to initialize per-netif snmp variables, 3120195972f6Sopenharmony_ci added initialization of those to ethernetif, slipif and loopif. 3121195972f6Sopenharmony_ci 3122195972f6Sopenharmony_ci 2007-05-18 Simon Goldschmidt 3123195972f6Sopenharmony_ci * opt.h, ip_frag.c, ip_frag.h, ip.c: Added option IP_FRAG_USES_STATIC_BUF 3124195972f6Sopenharmony_ci (defaulting to off for now) that can be set to 0 to send fragmented 3125195972f6Sopenharmony_ci packets by passing PBUF_REFs down the stack. 3126195972f6Sopenharmony_ci 3127195972f6Sopenharmony_ci 2007-05-23 Frédéric Bernon 3128195972f6Sopenharmony_ci * api_lib.c: Implement SO_RCVTIMEO for accept and recv on TCP 3129195972f6Sopenharmony_ci connections, such present in patch #5959. 3130195972f6Sopenharmony_ci 3131195972f6Sopenharmony_ci 2007-05-23 Frédéric Bernon 3132195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c, sockets.c: group the different NETCONN_UDPxxx 3133195972f6Sopenharmony_ci code in only one part... 3134195972f6Sopenharmony_ci 3135195972f6Sopenharmony_ci 2007-05-18 Simon Goldschmidt 3136195972f6Sopenharmony_ci * opt.h, memp.h, memp.c: Added option MEMP_OVERFLOW_CHECK to check for memp 3137195972f6Sopenharmony_ci elements to overflow. This is achieved by adding some bytes before and after 3138195972f6Sopenharmony_ci each pool element (increasing their size, of course), filling them with a 3139195972f6Sopenharmony_ci prominent value and checking them on freeing the element. 3140195972f6Sopenharmony_ci Set it to 2 to also check every element in every pool each time memp_malloc() 3141195972f6Sopenharmony_ci or memp_free() is called (slower but more helpful). 3142195972f6Sopenharmony_ci 3143195972f6Sopenharmony_ci 2007-05-10 Simon Goldschmidt 3144195972f6Sopenharmony_ci * opt.h, memp.h, memp.c, pbuf.c (see task #6831): use a new memp pool for 3145195972f6Sopenharmony_ci PBUF_POOL pbufs instead of the old pool implementation in pbuf.c to reduce 3146195972f6Sopenharmony_ci code size. 3147195972f6Sopenharmony_ci 3148195972f6Sopenharmony_ci 2007-05-11 Frédéric Bernon 3149195972f6Sopenharmony_ci * sockets.c, api_lib.c, api_msg.h, api_msg.c, netifapi.h, netifapi.c, tcpip.c: 3150195972f6Sopenharmony_ci Include a function pointer instead of a table index in the message to reduce 3151195972f6Sopenharmony_ci footprint. Disable some part of lwip_send and lwip_sendto if some options are 3152195972f6Sopenharmony_ci not set (LWIP_TCP, LWIP_UDP, LWIP_RAW). 3153195972f6Sopenharmony_ci 3154195972f6Sopenharmony_ci 2007-05-10 Simon Goldschmidt 3155195972f6Sopenharmony_ci * *.h (except netif/ppp/*.h): Included patch #5448: include '#ifdef __cplusplus 3156195972f6Sopenharmony_ci \ extern "C" {' in all header files. Now you can write your application using 3157195972f6Sopenharmony_ci the lwIP stack in C++ and simply #include the core files. Note I have left 3158195972f6Sopenharmony_ci out the netif/ppp/*h header files for now, since I don't know which files are 3159195972f6Sopenharmony_ci included by applications and which are for internal use only. 3160195972f6Sopenharmony_ci 3161195972f6Sopenharmony_ci 2007-05-09 Simon Goldschmidt 3162195972f6Sopenharmony_ci * opt.h, *.c/*.h: Included patch #5920: Create define to override C-library 3163195972f6Sopenharmony_ci memcpy. 2 Defines are created: MEMCPY() for normal memcpy, SMEMCPY() for 3164195972f6Sopenharmony_ci situations where some compilers might inline the copy and save a function 3165195972f6Sopenharmony_ci call. Also replaced all calls to memcpy() with calls to (S)MEMCPY(). 3166195972f6Sopenharmony_ci 3167195972f6Sopenharmony_ci 2007-05-08 Simon Goldschmidt 3168195972f6Sopenharmony_ci * mem.h: If MEM_LIBC_MALLOC==1, allow the defines (e.g. mem_malloc() -> malloc()) 3169195972f6Sopenharmony_ci to be overriden in case the C-library malloc implementation is not protected 3170195972f6Sopenharmony_ci against concurrent access. 3171195972f6Sopenharmony_ci 3172195972f6Sopenharmony_ci 2007-05-04 Simon Goldschmidt (Atte Kojo) 3173195972f6Sopenharmony_ci * etharp.c: Introduced fast one-entry-cache to speed up ARP lookup when sending 3174195972f6Sopenharmony_ci multiple packets to the same host. 3175195972f6Sopenharmony_ci 3176195972f6Sopenharmony_ci 2007-05-04 Frédéric Bernon, Jonathan Larmour 3177195972f6Sopenharmony_ci * sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c: Fix bug #19162 "lwip_sento: a possible 3178195972f6Sopenharmony_ci to corrupt remote addr/port connection state". Reduce problems "not enought memory" with 3179195972f6Sopenharmony_ci netbuf (if we receive lot of datagrams). Improve lwip_sendto (only one exchange between 3180195972f6Sopenharmony_ci sockets api and api_msg which run in tcpip_thread context). Add netconn_sento function. 3181195972f6Sopenharmony_ci Warning, if you directly access to "fromaddr" & "fromport" field from netbuf struct, 3182195972f6Sopenharmony_ci these fields are now renamed "addr" & "port". 3183195972f6Sopenharmony_ci 3184195972f6Sopenharmony_ci 2007-04-11 Jonathan Larmour 3185195972f6Sopenharmony_ci * sys.h, api_lib.c: Provide new sys_mbox_tryfetch function. Require ports to provide new 3186195972f6Sopenharmony_ci sys_arch_mbox_tryfetch function to get a message if one is there, otherwise return 3187195972f6Sopenharmony_ci with SYS_MBOX_EMPTY. sys_arch_mbox_tryfetch can be implemented as a function-like macro 3188195972f6Sopenharmony_ci by the port in sys_arch.h if desired. 3189195972f6Sopenharmony_ci 3190195972f6Sopenharmony_ci 2007-04-06 Frédéric Bernon, Simon Goldschmidt 3191195972f6Sopenharmony_ci * opt.h, tcpip.h, tcpip.c, netifapi.h, netifapi.c: New configuration option LWIP_NETIF_API 3192195972f6Sopenharmony_ci allow to use thread-safe functions to add/remove netif in list, and to start/stop dhcp 3193195972f6Sopenharmony_ci clients, using new functions from netifapi.h. Disable as default (no port change to do). 3194195972f6Sopenharmony_ci 3195195972f6Sopenharmony_ci 2007-04-05 Frédéric Bernon 3196195972f6Sopenharmony_ci * sockets.c: remplace ENOBUFS errors on alloc_socket by ENFILE to be more BSD compliant. 3197195972f6Sopenharmony_ci 3198195972f6Sopenharmony_ci 2007-04-04 Simon Goldschmidt 3199195972f6Sopenharmony_ci * arch.h, api_msg.c, dhcp.c, msg_in.c, sockets.c: Introduced #define LWIP_UNUSED_ARG(x) 3200195972f6Sopenharmony_ci use this for and architecture-independent form to tell the compiler you intentionally 3201195972f6Sopenharmony_ci are not using this variable. Can be overriden in cc.h. 3202195972f6Sopenharmony_ci 3203195972f6Sopenharmony_ci 2007-03-28 Frédéric Bernon 3204195972f6Sopenharmony_ci * opt.h, netif.h, dhcp.h, dhcp.c: New configuration option LWIP_NETIF_HOSTNAME allow to 3205195972f6Sopenharmony_ci define a hostname in netif struct (this is just a pointer, so, you can use a hardcoded 3206195972f6Sopenharmony_ci string, point on one of your's ethernetif field, or alloc a string you will free yourself). 3207195972f6Sopenharmony_ci It will be used by DHCP to register a client hostname, but can also be use when you call 3208195972f6Sopenharmony_ci snmp_set_sysname. 3209195972f6Sopenharmony_ci 3210195972f6Sopenharmony_ci 2007-03-28 Frédéric Bernon 3211195972f6Sopenharmony_ci * netif.h, netif.c: A new NETIF_FLAG_ETHARP flag is defined in netif.h, to allow to 3212195972f6Sopenharmony_ci initialize a network interface's flag with. It tell this interface is an ethernet 3213195972f6Sopenharmony_ci device, and we can use ARP with it to do a "gratuitous ARP" (RFC 3220 "IP Mobility 3214195972f6Sopenharmony_ci Support for IPv4" section 4.6) when interface is "up" with netif_set_up(). 3215195972f6Sopenharmony_ci 3216195972f6Sopenharmony_ci 2007-03-26 Frédéric Bernon, Jonathan Larmour 3217195972f6Sopenharmony_ci * opt.h, tcpip.c: New configuration option LWIP_ARP allow to disable ARP init at build 3218195972f6Sopenharmony_ci time if you only use PPP or SLIP. The default is enable. Note we don't have to call 3219195972f6Sopenharmony_ci etharp_init in your port's initilization sequence if you use tcpip.c, because this call 3220195972f6Sopenharmony_ci is done in tcpip_init function. 3221195972f6Sopenharmony_ci 3222195972f6Sopenharmony_ci 2007-03-22 Frédéric Bernon 3223195972f6Sopenharmony_ci * stats.h, stats.c, msg_in.c: Stats counters can be change to u32_t if necessary with the 3224195972f6Sopenharmony_ci new option LWIP_STATS_LARGE. If you need this option, define LWIP_STATS_LARGE to 1 in 3225195972f6Sopenharmony_ci your lwipopts.h. More, unused counters are not defined in the stats structs, and not 3226195972f6Sopenharmony_ci display by stats_display(). Note that some options (SYS_STATS and RAW_STATS) are defined 3227195972f6Sopenharmony_ci but never used. Fix msg_in.c with the correct #if test for a stat display. 3228195972f6Sopenharmony_ci 3229195972f6Sopenharmony_ci 2007-03-21 Kieran Mansley 3230195972f6Sopenharmony_ci * netif.c, netif.h: Apply patch#4197 with some changes (originator: rireland@hmgsl.com). 3231195972f6Sopenharmony_ci Provides callback on netif up/down state change. 3232195972f6Sopenharmony_ci 3233195972f6Sopenharmony_ci 2007-03-11 Frédéric Bernon, Mace Gael, Steve Reynolds 3234195972f6Sopenharmony_ci * sockets.h, sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c, igmp.h, igmp.c, 3235195972f6Sopenharmony_ci ip.c, netif.h, tcpip.c, opt.h: 3236195972f6Sopenharmony_ci New configuration option LWIP_IGMP to enable IGMP processing. Based on only one 3237195972f6Sopenharmony_ci filter per all network interfaces. Declare a new function in netif to enable to 3238195972f6Sopenharmony_ci control the MAC filter (to reduce lwIP traffic processing). 3239195972f6Sopenharmony_ci 3240195972f6Sopenharmony_ci 2007-03-11 Frédéric Bernon 3241195972f6Sopenharmony_ci * tcp.h, tcp.c, sockets.c, tcp_out.c, tcp_in.c, opt.h: Keepalive values can 3242195972f6Sopenharmony_ci be configured at run time with LWIP_TCP_KEEPALIVE, but don't change this 3243195972f6Sopenharmony_ci unless you know what you're doing (default are RFC1122 compliant). Note 3244195972f6Sopenharmony_ci that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set in seconds. 3245195972f6Sopenharmony_ci 3246195972f6Sopenharmony_ci 2007-03-08 Frédéric Bernon 3247195972f6Sopenharmony_ci * tcp.h: Keepalive values can be configured at compile time, but don't change 3248195972f6Sopenharmony_ci this unless you know what you're doing (default are RFC1122 compliant). 3249195972f6Sopenharmony_ci 3250195972f6Sopenharmony_ci 2007-03-08 Frédéric Bernon 3251195972f6Sopenharmony_ci * sockets.c, api.h, api_lib.c, tcpip.c, sys.h, sys.c, err.c, opt.h: 3252195972f6Sopenharmony_ci Implement LWIP_SO_RCVTIMEO configuration option to enable/disable SO_RCVTIMEO 3253195972f6Sopenharmony_ci on UDP sockets/netconn. 3254195972f6Sopenharmony_ci 3255195972f6Sopenharmony_ci 2007-03-08 Simon Goldschmidt 3256195972f6Sopenharmony_ci * snmp_msg.h, msg_in.c: SNMP UDP ports can be configured at compile time. 3257195972f6Sopenharmony_ci 3258195972f6Sopenharmony_ci 2007-03-06 Frédéric Bernon 3259195972f6Sopenharmony_ci * api.h, api_lib.c, sockets.h, sockets.c, tcpip.c, sys.h, sys.c, err.h: 3260195972f6Sopenharmony_ci Implement SO_RCVTIMEO on UDP sockets/netconn. 3261195972f6Sopenharmony_ci 3262195972f6Sopenharmony_ci 2007-02-28 Kieran Mansley (based on patch from Simon Goldschmidt) 3263195972f6Sopenharmony_ci * api_lib.c, tcpip.c, memp.c, memp.h: make API msg structs allocated 3264195972f6Sopenharmony_ci on the stack and remove the API msg type from memp 3265195972f6Sopenharmony_ci 3266195972f6Sopenharmony_ci 2007-02-26 Jonathan Larmour (based on patch from Simon Goldschmidt) 3267195972f6Sopenharmony_ci * sockets.h, sockets.c: Move socket initialization to new 3268195972f6Sopenharmony_ci lwip_socket_init() function. 3269195972f6Sopenharmony_ci NOTE: this changes the API with ports. Ports will have to be 3270195972f6Sopenharmony_ci updated to call lwip_socket_init() now. 3271195972f6Sopenharmony_ci 3272195972f6Sopenharmony_ci 2007-02-26 Jonathan Larmour (based on patch from Simon Goldschmidt) 3273195972f6Sopenharmony_ci * api_lib.c: Use memcpy in netbuf_copy_partial. 3274195972f6Sopenharmony_ci 3275195972f6Sopenharmony_ci 3276195972f6Sopenharmony_ci ++ Bug fixes: 3277195972f6Sopenharmony_ci 3278195972f6Sopenharmony_ci 2008-03-17 Frédéric Bernon, Ed Kerekes 3279195972f6Sopenharmony_ci * igmp.h, igmp.c: Fix bug #22613 "IGMP iphdr problem" (could have 3280195972f6Sopenharmony_ci some problems to fill the IP header on some targets, use now the 3281195972f6Sopenharmony_ci ip.h macros to do it). 3282195972f6Sopenharmony_ci 3283195972f6Sopenharmony_ci 2008-03-13 Frédéric Bernon 3284195972f6Sopenharmony_ci * sockets.c: Fix bug #22435 "lwip_recvfrom with TCP break;". Using 3285195972f6Sopenharmony_ci (lwip_)recvfrom with valid "from" and "fromlen" parameters, on a 3286195972f6Sopenharmony_ci TCP connection caused a crash. Note that using (lwip_)recvfrom 3287195972f6Sopenharmony_ci like this is a bit slow and that using (lwip)getpeername is the 3288195972f6Sopenharmony_ci good lwip way to do it (so, using recv is faster on tcp sockets). 3289195972f6Sopenharmony_ci 3290195972f6Sopenharmony_ci 2008-03-12 Frédéric Bernon, Jonathan Larmour 3291195972f6Sopenharmony_ci * api_msg.c, contrib/apps/ping.c: Fix bug #22530 "api_msg.c's 3292195972f6Sopenharmony_ci recv_raw() does not consume data", and the ping sample (with 3293195972f6Sopenharmony_ci LWIP_SOCKET=1, the code did the wrong supposition that lwip_recvfrom 3294195972f6Sopenharmony_ci returned the IP payload, without the IP header). 3295195972f6Sopenharmony_ci 3296195972f6Sopenharmony_ci 2008-03-04 Jonathan Larmour 3297195972f6Sopenharmony_ci * mem.c, stats.c, mem.h: apply patch #6414 to avoid compiler errors 3298195972f6Sopenharmony_ci and/or warnings on some systems where mem_size_t and size_t differ. 3299195972f6Sopenharmony_ci * pbuf.c, ppp.c: Fix warnings on some systems with mem_malloc. 3300195972f6Sopenharmony_ci 3301195972f6Sopenharmony_ci 2008-03-04 Kieran Mansley (contributions by others) 3302195972f6Sopenharmony_ci * Numerous small compiler error/warning fixes from contributions to 3303195972f6Sopenharmony_ci mailing list after 1.3.0 release candidate made. 3304195972f6Sopenharmony_ci 3305195972f6Sopenharmony_ci 2008-01-25 Cui hengbin (integrated by Frédéric Bernon) 3306195972f6Sopenharmony_ci * dns.c: Fix bug #22108 "DNS problem" caused by unaligned structures. 3307195972f6Sopenharmony_ci 3308195972f6Sopenharmony_ci 2008-01-15 Kieran Mansley 3309195972f6Sopenharmony_ci * tcp_out.c: BUG20511. Modify persist timer to start when we are 3310195972f6Sopenharmony_ci prevented from sending by a small send window, not just a zero 3311195972f6Sopenharmony_ci send window. 3312195972f6Sopenharmony_ci 3313195972f6Sopenharmony_ci 2008-01-09 Jonathan Larmour 3314195972f6Sopenharmony_ci * opt.h, ip.c: Rename IP_OPTIONS define to IP_OPTIONS_ALLOWED to avoid 3315195972f6Sopenharmony_ci conflict with Linux system headers. 3316195972f6Sopenharmony_ci 3317195972f6Sopenharmony_ci 2008-01-06 Jonathan Larmour 3318195972f6Sopenharmony_ci * dhcp.c: fix bug #19927: "DHCP NACK problem" by clearing any existing set IP 3319195972f6Sopenharmony_ci address entirely on receiving a DHCPNAK, and restarting discovery. 3320195972f6Sopenharmony_ci 3321195972f6Sopenharmony_ci 2007-12-21 Simon Goldschmidt 3322195972f6Sopenharmony_ci * sys.h, api_lib.c, api_msg.c, sockets.c: fix bug #21698: "netconn->recv_avail 3323195972f6Sopenharmony_ci is not protected" by using new macros for interlocked access to modify/test 3324195972f6Sopenharmony_ci netconn->recv_avail. 3325195972f6Sopenharmony_ci 3326195972f6Sopenharmony_ci 2007-12-20 Kieran Mansley (based on patch from Oleg Tyshev) 3327195972f6Sopenharmony_ci * tcp_in.c: fix bug# 21535 (nrtx not reset correctly in SYN_SENT state) 3328195972f6Sopenharmony_ci 3329195972f6Sopenharmony_ci 2007-12-20 Kieran Mansley (based on patch from Per-Henrik Lundbolm) 3330195972f6Sopenharmony_ci * tcp.c, tcp_in.c, tcp_out.c, tcp.h: fix bug #20199 (better handling 3331195972f6Sopenharmony_ci of silly window avoidance and prevent lwIP from shrinking the window) 3332195972f6Sopenharmony_ci 3333195972f6Sopenharmony_ci 2007-12-04 Simon Goldschmidt 3334195972f6Sopenharmony_ci * tcp.c, tcp_in.c: fix bug #21699 (segment leak in ooseq processing when last 3335195972f6Sopenharmony_ci data packet was lost): add assert that all segment lists are empty in 3336195972f6Sopenharmony_ci tcp_pcb_remove before setting pcb to CLOSED state; don't directly set CLOSED 3337195972f6Sopenharmony_ci state from LAST_ACK in tcp_process 3338195972f6Sopenharmony_ci 3339195972f6Sopenharmony_ci 2007-12-02 Simon Goldschmidt 3340195972f6Sopenharmony_ci * sockets.h: fix bug #21654: exclude definition of struct timeval from #ifndef FD_SET 3341195972f6Sopenharmony_ci If including <sys/time.h> for system-struct timeval, LWIP_TIMEVAL_PRIVATE now 3342195972f6Sopenharmony_ci has to be set to 0 in lwipopts.h 3343195972f6Sopenharmony_ci 3344195972f6Sopenharmony_ci 2007-12-02 Simon Goldschmidt 3345195972f6Sopenharmony_ci * api_msg.c, api_lib.c: fix bug #21656 (recvmbox problem in netconn API): always 3346195972f6Sopenharmony_ci allocate a recvmbox in netconn_new_with_proto_and_callback. For a tcp-listen 3347195972f6Sopenharmony_ci netconn, this recvmbox is later freed and a new mbox is allocated for acceptmbox. 3348195972f6Sopenharmony_ci This is a fix for thread-safety and allocates all items needed for a netconn 3349195972f6Sopenharmony_ci when the netconn is created. 3350195972f6Sopenharmony_ci 3351195972f6Sopenharmony_ci 2007-11-30 Simon Goldschmidt 3352195972f6Sopenharmony_ci * udp.c: first attempt to fix bug #21655 (DHCP doesn't work reliably with multiple 3353195972f6Sopenharmony_ci netifs): if LWIP_DHCP is enabled, UDP packets to DHCP_CLIENT_PORT are passed 3354195972f6Sopenharmony_ci to netif->dhcp->pcb only (if that exists) and not to any other pcb for the same 3355195972f6Sopenharmony_ci port (only solution to let UDP pcbs 'bind' to a netif instead of an IP address) 3356195972f6Sopenharmony_ci 3357195972f6Sopenharmony_ci 2007-11-27 Simon Goldschmidt 3358195972f6Sopenharmony_ci * ip.c: fixed bug #21643 (udp_send/raw_send don't fail if netif is down) by 3359195972f6Sopenharmony_ci letting ip_route only use netifs that are up. 3360195972f6Sopenharmony_ci 3361195972f6Sopenharmony_ci 2007-11-27 Simon Goldschmidt 3362195972f6Sopenharmony_ci * err.h, api_lib.c, api_msg.c, sockets.c: Changed error handling: ERR_MEM, ERR_BUF 3363195972f6Sopenharmony_ci and ERR_RTE are seen as non-fatal, all other errors are fatal. netconns and 3364195972f6Sopenharmony_ci sockets block most operations once they have seen a fatal error. 3365195972f6Sopenharmony_ci 3366195972f6Sopenharmony_ci 2007-11-27 Simon Goldschmidt 3367195972f6Sopenharmony_ci * udp.h, udp.c, dhcp.c: Implemented new function udp_sendto_if which takes the 3368195972f6Sopenharmony_ci netif to send as an argument (to be able to send on netifs that are down). 3369195972f6Sopenharmony_ci 3370195972f6Sopenharmony_ci 2007-11-26 Simon Goldschmidt 3371195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #21582: pcb->acked accounting can be wrong when ACKs 3372195972f6Sopenharmony_ci arrive out-of-order 3373195972f6Sopenharmony_ci 3374195972f6Sopenharmony_ci 2007-11-21 Simon Goldschmidt 3375195972f6Sopenharmony_ci * tcp.h, tcp_out.c, api_msg.c: Fixed bug #20287: tcp_output_nagle sends too early 3376195972f6Sopenharmony_ci Fixed the nagle algorithm; nagle now also works for all raw API applications 3377195972f6Sopenharmony_ci and has to be explicitly disabled with 'tcp_pcb->flags |= TF_NODELAY' 3378195972f6Sopenharmony_ci 3379195972f6Sopenharmony_ci 2007-11-12 Frédéric Bernon 3380195972f6Sopenharmony_ci * sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c: Fixed bug #20900. Now, most 3381195972f6Sopenharmony_ci of the netconn_peer and netconn_addr processing is done inside tcpip_thread 3382195972f6Sopenharmony_ci context in do_getaddr. 3383195972f6Sopenharmony_ci 3384195972f6Sopenharmony_ci 2007-11-10 Simon Goldschmidt 3385195972f6Sopenharmony_ci * etharp.c: Fixed bug: assert fired when MEMP_ARP_QUEUE was empty (which can 3386195972f6Sopenharmony_ci happen any time). Now the packet simply isn't enqueued when out of memory. 3387195972f6Sopenharmony_ci 3388195972f6Sopenharmony_ci 2007-11-01 Simon Goldschmidt 3389195972f6Sopenharmony_ci * tcp.c, tcp_in.c: Fixed bug #21494: The send mss (pcb->mss) is set to 536 (or 3390195972f6Sopenharmony_ci TCP_MSS if that is smaller) as long as no MSS option is received from the 3391195972f6Sopenharmony_ci remote host. 3392195972f6Sopenharmony_ci 3393195972f6Sopenharmony_ci 2007-11-01 Simon Goldschmidt 3394195972f6Sopenharmony_ci * tcp.h, tcp.c, tcp_in.c: Fixed bug #21491: The MSS option sent (with SYN) 3395195972f6Sopenharmony_ci is now based on TCP_MSS instead of pcb->mss (on passive open now effectively 3396195972f6Sopenharmony_ci sending our configured TCP_MSS instead of the one received). 3397195972f6Sopenharmony_ci 3398195972f6Sopenharmony_ci 2007-11-01 Simon Goldschmidt 3399195972f6Sopenharmony_ci * tcp_in.c: Fixed bug #21181: On active open, the initial congestion window was 3400195972f6Sopenharmony_ci calculated based on the configured TCP_MSS, not on the MSS option received 3401195972f6Sopenharmony_ci with SYN+ACK. 3402195972f6Sopenharmony_ci 3403195972f6Sopenharmony_ci 2007-10-09 Simon Goldschmidt 3404195972f6Sopenharmony_ci * udp.c, inet.c, inet.h: Fixed UDPLite: send: Checksum was always generated too 3405195972f6Sopenharmony_ci short and also was generated wrong if checksum coverage != tot_len; 3406195972f6Sopenharmony_ci receive: checksum was calculated wrong if checksum coverage != tot_len 3407195972f6Sopenharmony_ci 3408195972f6Sopenharmony_ci 2007-10-08 Simon Goldschmidt 3409195972f6Sopenharmony_ci * mem.c: lfree was not updated in mem_realloc! 3410195972f6Sopenharmony_ci 3411195972f6Sopenharmony_ci 2007-10-07 Frédéric Bernon 3412195972f6Sopenharmony_ci * sockets.c, api.h, api_lib.c: First step to fix "bug #20900 : Potential 3413195972f6Sopenharmony_ci crash error problem with netconn_peer & netconn_addr". VERY IMPORTANT: 3414195972f6Sopenharmony_ci this change cause an API breakage for netconn_addr, since a parameter 3415195972f6Sopenharmony_ci type change. Any compiler should cause an error without any changes in 3416195972f6Sopenharmony_ci yours netconn_peer calls (so, it can't be a "silent change"). It also 3417195972f6Sopenharmony_ci reduce a little bit the footprint for socket layer (lwip_getpeername & 3418195972f6Sopenharmony_ci lwip_getsockname use now a common lwip_getaddrname function since 3419195972f6Sopenharmony_ci netconn_peer & netconn_addr have the same parameters). 3420195972f6Sopenharmony_ci 3421195972f6Sopenharmony_ci 2007-09-20 Simon Goldschmidt 3422195972f6Sopenharmony_ci * tcp.c: Fixed bug #21080 (tcp_bind without check pcbs in TIME_WAIT state) 3423195972f6Sopenharmony_ci by checking tcp_tw_pcbs also 3424195972f6Sopenharmony_ci 3425195972f6Sopenharmony_ci 2007-09-19 Simon Goldschmidt 3426195972f6Sopenharmony_ci * icmp.c: Fixed bug #21107 (didn't reset IP TTL in ICMP echo replies) 3427195972f6Sopenharmony_ci 3428195972f6Sopenharmony_ci 2007-09-15 Mike Kleshov 3429195972f6Sopenharmony_ci * mem.c: Fixed bug #21077 (inaccuracy in calculation of lwip_stat.mem.used) 3430195972f6Sopenharmony_ci 3431195972f6Sopenharmony_ci 2007-09-06 Frédéric Bernon 3432195972f6Sopenharmony_ci * several-files: replace some #include "arch/cc.h" by "lwip/arch.h", or simply remove 3433195972f6Sopenharmony_ci it as long as "lwip/opt.h" is included before (this one include "lwip/debug.h" which 3434195972f6Sopenharmony_ci already include "lwip/arch.h"). Like that, default defines are provided by "lwip/arch.h" 3435195972f6Sopenharmony_ci if they are not defined in cc.h, in the same spirit than "lwip/opt.h" for lwipopts.h. 3436195972f6Sopenharmony_ci 3437195972f6Sopenharmony_ci 2007-08-30 Frédéric Bernon 3438195972f6Sopenharmony_ci * igmp.h, igmp.c: Some changes to remove some redundant code, add some traces, 3439195972f6Sopenharmony_ci and fix some coding style. 3440195972f6Sopenharmony_ci 3441195972f6Sopenharmony_ci 2007-08-28 Frédéric Bernon 3442195972f6Sopenharmony_ci * tcpip.c: Fix TCPIP_MSG_INPKT processing: now, tcpip_input can be used for any 3443195972f6Sopenharmony_ci kind of packets. These packets are considered like Ethernet packets (payload 3444195972f6Sopenharmony_ci pointing to ethhdr) if the netif got the NETIF_FLAG_ETHARP flag. Else, packets 3445195972f6Sopenharmony_ci are considered like IP packets (payload pointing to iphdr). 3446195972f6Sopenharmony_ci 3447195972f6Sopenharmony_ci 2007-08-27 Frédéric Bernon 3448195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c: First fix for "bug #20900 : Potential crash error 3449195972f6Sopenharmony_ci problem with netconn_peer & netconn_addr". Introduce NETCONN_LISTEN netconn_state 3450195972f6Sopenharmony_ci and remove obsolete ones (NETCONN_RECV & NETCONN_ACCEPT). 3451195972f6Sopenharmony_ci 3452195972f6Sopenharmony_ci 2007-08-24 Kieran Mansley 3453195972f6Sopenharmony_ci * inet.c Modify (acc >> 16) test to ((acc >> 16) != 0) to help buggy 3454195972f6Sopenharmony_ci compiler (Paradigm C++) 3455195972f6Sopenharmony_ci 3456195972f6Sopenharmony_ci 2007-08-09 Frédéric Bernon, Bill Florac 3457195972f6Sopenharmony_ci * stats.h, stats.c, igmp.h, igmp.c, opt.h: Fix for bug #20503 : IGMP Improvement. 3458195972f6Sopenharmony_ci Introduce IGMP_STATS to centralize statistics management. 3459195972f6Sopenharmony_ci 3460195972f6Sopenharmony_ci 2007-08-09 Frédéric Bernon, Bill Florac 3461195972f6Sopenharmony_ci * udp.c: Fix for bug #20503 : IGMP Improvement. Enable to receive a multicast 3462195972f6Sopenharmony_ci packet on a udp pcb binded on an netif's IP address, and not on "any". 3463195972f6Sopenharmony_ci 3464195972f6Sopenharmony_ci 2007-08-09 Frédéric Bernon, Bill Florac 3465195972f6Sopenharmony_ci * igmp.h, igmp.c, ip.c: Fix minor changes from bug #20503 : IGMP Improvement. 3466195972f6Sopenharmony_ci This is mainly on using lookup/lookfor, and some coding styles... 3467195972f6Sopenharmony_ci 3468195972f6Sopenharmony_ci 2007-07-26 Frédéric Bernon (and "thedoctor") 3469195972f6Sopenharmony_ci * igmp.c: Fix bug #20595 to accept IGMPv3 "Query" messages. 3470195972f6Sopenharmony_ci 3471195972f6Sopenharmony_ci 2007-07-25 Simon Goldschmidt 3472195972f6Sopenharmony_ci * api_msg.c, tcp.c: Another fix for bug #20021: by not returning an error if 3473195972f6Sopenharmony_ci tcp_output fails in tcp_close, the code in do_close_internal gets simpler 3474195972f6Sopenharmony_ci (tcp_output is called again later from tcp timers). 3475195972f6Sopenharmony_ci 3476195972f6Sopenharmony_ci 2007-07-25 Simon Goldschmidt 3477195972f6Sopenharmony_ci * ip_frag.c: Fixed bug #20429: use the new pbuf_copy_partial instead of the old 3478195972f6Sopenharmony_ci copy_from_pbuf, which illegally modified the given pbuf. 3479195972f6Sopenharmony_ci 3480195972f6Sopenharmony_ci 2007-07-25 Simon Goldschmidt 3481195972f6Sopenharmony_ci * tcp_out.c: tcp_enqueue: pcb->snd_queuelen didn't work for chaine PBUF_RAMs: 3482195972f6Sopenharmony_ci changed snd_queuelen++ to snd_queuelen += pbuf_clen(p). 3483195972f6Sopenharmony_ci 3484195972f6Sopenharmony_ci 2007-07-24 Simon Goldschmidt 3485195972f6Sopenharmony_ci * api_msg.c, tcp.c: Fix bug #20480: Check the pcb passed to tcp_listen() for the 3486195972f6Sopenharmony_ci correct state (must be CLOSED). 3487195972f6Sopenharmony_ci 3488195972f6Sopenharmony_ci 2007-07-13 Thomas Taranowski (commited by Jared Grubb) 3489195972f6Sopenharmony_ci * memp.c: Fix bug #20478: memp_malloc returned NULL+MEMP_SIZE on failed 3490195972f6Sopenharmony_ci allocation. It now returns NULL. 3491195972f6Sopenharmony_ci 3492195972f6Sopenharmony_ci 2007-07-13 Frédéric Bernon 3493195972f6Sopenharmony_ci * api_msg.c: Fix bug #20318: api_msg "recv" callbacks don't call pbuf_free in 3494195972f6Sopenharmony_ci all error cases. 3495195972f6Sopenharmony_ci 3496195972f6Sopenharmony_ci 2007-07-13 Frédéric Bernon 3497195972f6Sopenharmony_ci * api_msg.c: Fix bug #20315: possible memory leak problem if tcp_listen failed, 3498195972f6Sopenharmony_ci because current code doesn't follow rawapi.txt documentation. 3499195972f6Sopenharmony_ci 3500195972f6Sopenharmony_ci 2007-07-13 Kieran Mansley 3501195972f6Sopenharmony_ci * src/core/tcp_in.c Apply patch#5741 from Oleg Tyshev to fix bug in 3502195972f6Sopenharmony_ci out of sequence processing of received packets 3503195972f6Sopenharmony_ci 3504195972f6Sopenharmony_ci 2007-07-03 Simon Goldschmidt 3505195972f6Sopenharmony_ci * nearly-all-files: Added assertions where PBUF_RAM pbufs are used and an 3506195972f6Sopenharmony_ci assumption is made that this pbuf is in one piece (i.e. not chained). These 3507195972f6Sopenharmony_ci assumptions clash with the possibility of converting to fully pool-based 3508195972f6Sopenharmony_ci pbuf implementations, where PBUF_RAM pbufs might be chained. 3509195972f6Sopenharmony_ci 3510195972f6Sopenharmony_ci 2007-07-03 Simon Goldschmidt 3511195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.c: Final fix for bug #20021 and some other problems 3512195972f6Sopenharmony_ci when closing tcp netconns: removed conn->sem, less context switches when 3513195972f6Sopenharmony_ci closing, both netconn_close and netconn_delete should safely close tcp 3514195972f6Sopenharmony_ci connections. 3515195972f6Sopenharmony_ci 3516195972f6Sopenharmony_ci 2007-07-02 Simon Goldschmidt 3517195972f6Sopenharmony_ci * ipv4/ip.h, ipv6/ip.h, opt.h, netif.h, etharp.h, ipv4/ip.c, netif.c, raw.c, 3518195972f6Sopenharmony_ci tcp_out.c, udp.c, etharp.c: Added option LWIP_NETIF_HWADDRHINT (default=off) 3519195972f6Sopenharmony_ci to cache ARP table indices with each pcb instead of single-entry cache for 3520195972f6Sopenharmony_ci the complete stack. 3521195972f6Sopenharmony_ci 3522195972f6Sopenharmony_ci 2007-07-02 Simon Goldschmidt 3523195972f6Sopenharmony_ci * tcp.h, tcp.c, tcp_in.c, tcp_out.c: Added some ASSERTS and casts to prevent 3524195972f6Sopenharmony_ci warnings when assigning to smaller types. 3525195972f6Sopenharmony_ci 3526195972f6Sopenharmony_ci 2007-06-28 Simon Goldschmidt 3527195972f6Sopenharmony_ci * tcp_out.c: Added check to prevent tcp_pcb->snd_queuelen from overflowing. 3528195972f6Sopenharmony_ci 3529195972f6Sopenharmony_ci 2007-06-28 Simon Goldschmidt 3530195972f6Sopenharmony_ci * tcp.h: Fixed bug #20287: Fixed nagle algorithm (sending was done too early if 3531195972f6Sopenharmony_ci a segment contained chained pbufs) 3532195972f6Sopenharmony_ci 3533195972f6Sopenharmony_ci 2007-06-28 Frédéric Bernon 3534195972f6Sopenharmony_ci * autoip.c: replace most of rand() calls by a macro LWIP_AUTOIP_RAND which compute 3535195972f6Sopenharmony_ci a "pseudo-random" value based on netif's MAC and some autoip fields. It's always 3536195972f6Sopenharmony_ci possible to define this macro in your own lwipopts.h to always use C library's 3537195972f6Sopenharmony_ci rand(). Note that autoip_create_rand_addr doesn't use this macro. 3538195972f6Sopenharmony_ci 3539195972f6Sopenharmony_ci 2007-06-28 Frédéric Bernon 3540195972f6Sopenharmony_ci * netifapi.h, netifapi.c, tcpip.h, tcpip.c: Update code to handle the option 3541195972f6Sopenharmony_ci LWIP_TCPIP_CORE_LOCKING, and do some changes to be coherent with last modifications 3542195972f6Sopenharmony_ci in api_lib/api_msg (use pointers and not type with table, etc...) 3543195972f6Sopenharmony_ci 3544195972f6Sopenharmony_ci 2007-06-26 Simon Goldschmidt 3545195972f6Sopenharmony_ci * udp.h: Fixed bug #20259: struct udp_hdr was lacking the packin defines. 3546195972f6Sopenharmony_ci 3547195972f6Sopenharmony_ci 2007-06-25 Simon Goldschmidt 3548195972f6Sopenharmony_ci * udp.c: Fixed bug #20253: icmp_dest_unreach was called with a wrong p->payload 3549195972f6Sopenharmony_ci for udp packets with no matching pcb. 3550195972f6Sopenharmony_ci 3551195972f6Sopenharmony_ci 2007-06-25 Simon Goldschmidt 3552195972f6Sopenharmony_ci * udp.c: Fixed bug #20220: UDP PCB search in udp_input(): a non-local match 3553195972f6Sopenharmony_ci could get udp input packets if the remote side matched. 3554195972f6Sopenharmony_ci 3555195972f6Sopenharmony_ci 2007-06-13 Simon Goldschmidt 3556195972f6Sopenharmony_ci * netif.c: Fixed bug #20180 (TCP pcbs listening on IP_ADDR_ANY could get 3557195972f6Sopenharmony_ci changed in netif_set_ipaddr if previous netif->ip_addr.addr was 0. 3558195972f6Sopenharmony_ci 3559195972f6Sopenharmony_ci 2007-06-13 Simon Goldschmidt 3560195972f6Sopenharmony_ci * api_msg.c: pcb_new sets conn->err if protocol is not implemented 3561195972f6Sopenharmony_ci -> netconn_new_..() does not allocate a new connection for unsupported 3562195972f6Sopenharmony_ci protocols. 3563195972f6Sopenharmony_ci 3564195972f6Sopenharmony_ci 2007-06-13 Frédéric Bernon, Simon Goldschmidt 3565195972f6Sopenharmony_ci * api_lib.c: change return expression in netconn_addr and netconn_peer, because 3566195972f6Sopenharmony_ci conn->err was reset to ERR_OK without any reasons (and error was lost)... 3567195972f6Sopenharmony_ci 3568195972f6Sopenharmony_ci 2007-06-13 Frédéric Bernon, Matthias Weisser 3569195972f6Sopenharmony_ci * opt.h, mem.h, mem.c, memp.c, pbuf.c, ip_frag.c, vj.c: Fix bug #20162. Rename 3570195972f6Sopenharmony_ci MEM_ALIGN in LWIP_MEM_ALIGN and MEM_ALIGN_SIZE in LWIP_MEM_ALIGN_SIZE to avoid 3571195972f6Sopenharmony_ci some macro names collision with some OS macros. 3572195972f6Sopenharmony_ci 3573195972f6Sopenharmony_ci 2007-06-11 Simon Goldschmidt 3574195972f6Sopenharmony_ci * udp.c: UDP Lite: corrected the use of chksum_len (based on RFC3828: if it's 0, 3575195972f6Sopenharmony_ci create checksum over the complete packet. On RX, if it's < 8 (and not 0), 3576195972f6Sopenharmony_ci discard the packet. Also removed the duplicate 'udphdr->chksum = 0' for both 3577195972f6Sopenharmony_ci UDP & UDP Lite. 3578195972f6Sopenharmony_ci 3579195972f6Sopenharmony_ci 2007-06-11 Srinivas Gollakota & Oleg Tyshev 3580195972f6Sopenharmony_ci * tcp_out.c: Fix for bug #20075 : "A problem with keep-alive timer and TCP flags" 3581195972f6Sopenharmony_ci where TCP flags wasn't initialized in tcp_keepalive. 3582195972f6Sopenharmony_ci 3583195972f6Sopenharmony_ci 2007-06-03 Simon Goldschmidt 3584195972f6Sopenharmony_ci * udp.c: udp_input(): Input pbuf was not freed if pcb had no recv function 3585195972f6Sopenharmony_ci registered, p->payload was modified without modifying p->len if sending 3586195972f6Sopenharmony_ci icmp_dest_unreach() (had no negative effect but was definitively wrong). 3587195972f6Sopenharmony_ci 3588195972f6Sopenharmony_ci 2007-06-03 Simon Goldschmidt 3589195972f6Sopenharmony_ci * icmp.c: Corrected bug #19937: For responding to an icmp echo request, icmp 3590195972f6Sopenharmony_ci re-used the input pbuf even if that didn't have enough space to include the 3591195972f6Sopenharmony_ci link headers. Now the space is tested and a new pbuf is allocated for the 3592195972f6Sopenharmony_ci echo response packet if the echo request pbuf isn't big enough. 3593195972f6Sopenharmony_ci 3594195972f6Sopenharmony_ci 2007-06-01 Simon Goldschmidt 3595195972f6Sopenharmony_ci * sockets.c: Checked in patch #5914: Moved sockopt processing into tcpip_thread. 3596195972f6Sopenharmony_ci 3597195972f6Sopenharmony_ci 2007-05-23 Frédéric Bernon 3598195972f6Sopenharmony_ci * api_lib.c, sockets.c: Fixed bug #5958 for netconn_listen (acceptmbox only 3599195972f6Sopenharmony_ci allocated by do_listen if success) and netconn_accept errors handling. In 3600195972f6Sopenharmony_ci most of api_lib functions, we replace some errors checkings like "if (conn==NULL)" 3601195972f6Sopenharmony_ci by ASSERT, except for netconn_delete. 3602195972f6Sopenharmony_ci 3603195972f6Sopenharmony_ci 2007-05-23 Frédéric Bernon 3604195972f6Sopenharmony_ci * api_lib.c: Fixed bug #5957 "Safe-thread problem inside netconn_recv" to return 3605195972f6Sopenharmony_ci an error code if it's impossible to fetch a pbuf on a TCP connection (and not 3606195972f6Sopenharmony_ci directly close the recvmbox). 3607195972f6Sopenharmony_ci 3608195972f6Sopenharmony_ci 2007-05-22 Simon Goldschmidt 3609195972f6Sopenharmony_ci * tcp.c: Fixed bug #1895 (tcp_bind not correct) by introducing a list of 3610195972f6Sopenharmony_ci bound but unconnected (and non-listening) tcp_pcbs. 3611195972f6Sopenharmony_ci 3612195972f6Sopenharmony_ci 2007-05-22 Frédéric Bernon 3613195972f6Sopenharmony_ci * sys.h, sys.c, api_lib.c, tcpip.c: remove sys_mbox_fetch_timeout() (was only 3614195972f6Sopenharmony_ci used for LWIP_SO_RCVTIMEO option) and use sys_arch_mbox_fetch() instead of 3615195972f6Sopenharmony_ci sys_mbox_fetch() in api files. Now, users SHOULD NOT use internal lwIP features 3616195972f6Sopenharmony_ci like "sys_timeout" in their application threads. 3617195972f6Sopenharmony_ci 3618195972f6Sopenharmony_ci 2007-05-22 Frédéric Bernon 3619195972f6Sopenharmony_ci * api.h, api_lib.c, api_msg.h, api_msg.c: change the struct api_msg_msg to see 3620195972f6Sopenharmony_ci which parameters are used by which do_xxx function, and to avoid "misusing" 3621195972f6Sopenharmony_ci parameters (patch #5938). 3622195972f6Sopenharmony_ci 3623195972f6Sopenharmony_ci 2007-05-22 Simon Goldschmidt 3624195972f6Sopenharmony_ci * api_lib.c, api_msg.c, raw.c, api.h, api_msg.h, raw.h: Included patch #5938: 3625195972f6Sopenharmony_ci changed raw_pcb.protocol from u16_t to u8_t since for IPv4 and IPv6, proto 3626195972f6Sopenharmony_ci is only 8 bits wide. This affects the api, as there, the protocol was 3627195972f6Sopenharmony_ci u16_t, too. 3628195972f6Sopenharmony_ci 3629195972f6Sopenharmony_ci 2007-05-18 Simon Goldschmidt 3630195972f6Sopenharmony_ci * memp.c: addition to patch #5913: smaller pointer was returned but 3631195972f6Sopenharmony_ci memp_memory was the same size -> did not save memory. 3632195972f6Sopenharmony_ci 3633195972f6Sopenharmony_ci 2007-05-16 Simon Goldschmidt 3634195972f6Sopenharmony_ci * loopif.c, slipif.c: Fix bug #19729: free pbuf if netif->input() returns 3635195972f6Sopenharmony_ci != ERR_OK. 3636195972f6Sopenharmony_ci 3637195972f6Sopenharmony_ci 2007-05-16 Simon Goldschmidt 3638195972f6Sopenharmony_ci * api_msg.c, udp.c: If a udp_pcb has a local_ip set, check if it is the same 3639195972f6Sopenharmony_ci as the one of the netif used for sending to prevent sending from old 3640195972f6Sopenharmony_ci addresses after a netif address gets changed (partly fixes bug #3168). 3641195972f6Sopenharmony_ci 3642195972f6Sopenharmony_ci 2007-05-16 Frédéric Bernon 3643195972f6Sopenharmony_ci * tcpip.c, igmp.h, igmp.c: Fixed bug "#19800 : IGMP: igmp_tick() will not work 3644195972f6Sopenharmony_ci with NO_SYS=1". Note that igmp_init is always in tcpip_thread (and not in 3645195972f6Sopenharmony_ci tcpip_init) because we have to be sure that network interfaces are already 3646195972f6Sopenharmony_ci added (mac filter is updated only in igmp_init for the moment). 3647195972f6Sopenharmony_ci 3648195972f6Sopenharmony_ci 2007-05-16 Simon Goldschmidt 3649195972f6Sopenharmony_ci * mem.c, memp.c: Removed semaphores from memp, changed sys_sem_wait calls 3650195972f6Sopenharmony_ci into sys_arch_sem_wait calls to prevent timers from running while waiting 3651195972f6Sopenharmony_ci for the heap. This fixes bug #19167. 3652195972f6Sopenharmony_ci 3653195972f6Sopenharmony_ci 2007-05-13 Simon Goldschmidt 3654195972f6Sopenharmony_ci * tcp.h, sockets.h, sockets.c: Fixed bug from patch #5865 by moving the defines 3655195972f6Sopenharmony_ci for socket options (lwip_set/-getsockopt) used with level IPPROTO_TCP from 3656195972f6Sopenharmony_ci tcp.h to sockets.h. 3657195972f6Sopenharmony_ci 3658195972f6Sopenharmony_ci 2007-05-07 Simon Goldschmidt 3659195972f6Sopenharmony_ci * mem.c: Another attempt to fix bug #17922. 3660195972f6Sopenharmony_ci 3661195972f6Sopenharmony_ci 2007-05-04 Simon Goldschmidt 3662195972f6Sopenharmony_ci * pbuf.c, pbuf.h, etharp.c: Further update to ARP queueing: Changed pbuf_copy() 3663195972f6Sopenharmony_ci implementation so that it can be reused (don't allocate the target 3664195972f6Sopenharmony_ci pbuf inside pbuf_copy()). 3665195972f6Sopenharmony_ci 3666195972f6Sopenharmony_ci 2007-05-04 Simon Goldschmidt 3667195972f6Sopenharmony_ci * memp.c: checked in patch #5913: in memp_malloc() we can return memp as mem 3668195972f6Sopenharmony_ci to save a little RAM (next pointer of memp is not used while not in pool). 3669195972f6Sopenharmony_ci 3670195972f6Sopenharmony_ci 2007-05-03 "maq" 3671195972f6Sopenharmony_ci * sockets.c: Fix ioctl FIONREAD when some data remains from last recv. 3672195972f6Sopenharmony_ci (patch #3574). 3673195972f6Sopenharmony_ci 3674195972f6Sopenharmony_ci 2007-04-23 Simon Goldschmidt 3675195972f6Sopenharmony_ci * loopif.c, loopif.h, opt.h, src/netif/FILES: fix bug #2595: "loopif results 3676195972f6Sopenharmony_ci in NULL reference for incoming TCP packets". Loopif has to be configured 3677195972f6Sopenharmony_ci (using LWIP_LOOPIF_MULTITHREADING) to directly call netif->input() 3678195972f6Sopenharmony_ci (multithreading environments, e.g. netif->input() = tcpip_input()) or 3679195972f6Sopenharmony_ci putting packets on a list that is fed to the stack by calling loopif_poll() 3680195972f6Sopenharmony_ci (single-thread / NO_SYS / polling environment where e.g. 3681195972f6Sopenharmony_ci netif->input() = ip_input). 3682195972f6Sopenharmony_ci 3683195972f6Sopenharmony_ci 2007-04-17 Jonathan Larmour 3684195972f6Sopenharmony_ci * pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold 3685195972f6Sopenharmony_ci the difference between two u16_t's. 3686195972f6Sopenharmony_ci * sockets.h: FD_SETSIZE needs to match number of sockets, which is 3687195972f6Sopenharmony_ci MEMP_NUM_NETCONN in sockets.c right now. 3688195972f6Sopenharmony_ci 3689195972f6Sopenharmony_ci 2007-04-12 Jonathan Larmour 3690195972f6Sopenharmony_ci * icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580). 3691195972f6Sopenharmony_ci 3692195972f6Sopenharmony_ci 2007-04-12 Kieran Mansley 3693195972f6Sopenharmony_ci * tcp.c, tcp_in.c, tcp_out.c, tcp.h: Modify way the retransmission 3694195972f6Sopenharmony_ci timer is reset to fix bug#19434, with help from Oleg Tyshev. 3695195972f6Sopenharmony_ci 3696195972f6Sopenharmony_ci 2007-04-11 Simon Goldschmidt 3697195972f6Sopenharmony_ci * etharp.c, pbuf.c, pbuf.h: 3rd fix for bug #11400 (arp-queuing): More pbufs than 3698195972f6Sopenharmony_ci previously thought need to be copied (everything but PBUF_ROM!). Cleaned up 3699195972f6Sopenharmony_ci pbuf.c: removed functions no needed any more (by etharp). 3700195972f6Sopenharmony_ci 3701195972f6Sopenharmony_ci 2007-04-11 Kieran Mansley 3702195972f6Sopenharmony_ci * inet.c, ip_addr.h, sockets.h, sys.h, tcp.h: Apply patch #5745: Fix 3703195972f6Sopenharmony_ci "Constant is long" warnings with 16bit compilers. Contributed by 3704195972f6Sopenharmony_ci avatar@mmlab.cse.yzu.edu.tw 3705195972f6Sopenharmony_ci 3706195972f6Sopenharmony_ci 2007-04-05 Frédéric Bernon, Jonathan Larmour 3707195972f6Sopenharmony_ci * api_msg.c: Fix bug #16830: "err_tcp() posts to connection mailbox when no pend on 3708195972f6Sopenharmony_ci the mailbox is active". Now, the post is only done during a connect, and do_send, 3709195972f6Sopenharmony_ci do_write and do_join_leave_group don't do anything if a previous error was signaled. 3710195972f6Sopenharmony_ci 3711195972f6Sopenharmony_ci 2007-04-03 Frédéric Bernon 3712195972f6Sopenharmony_ci * ip.c: Don't set the IP_DF ("Don't fragment") flag in the IP header in IP output 3713195972f6Sopenharmony_ci packets. See patch #5834. 3714195972f6Sopenharmony_ci 3715195972f6Sopenharmony_ci 2007-03-30 Frédéric Bernon 3716195972f6Sopenharmony_ci * api_msg.c: add a "pcb_new" helper function to avoid redundant code, and to add 3717195972f6Sopenharmony_ci missing pcb allocations checking (in do_bind, and for each raw_new). Fix style. 3718195972f6Sopenharmony_ci 3719195972f6Sopenharmony_ci 2007-03-30 Frédéric Bernon 3720195972f6Sopenharmony_ci * most of files: prefix all debug.h define with "LWIP_" to avoid any conflict with 3721195972f6Sopenharmony_ci others environment defines (these were too "generic"). 3722195972f6Sopenharmony_ci 3723195972f6Sopenharmony_ci 2007-03-28 Frédéric Bernon 3724195972f6Sopenharmony_ci * api.h, api_lib.c, sockets.c: netbuf_ref doesn't check its internal pbuf_alloc call 3725195972f6Sopenharmony_ci result and can cause a crash. lwip_send now check netbuf_ref result. 3726195972f6Sopenharmony_ci 3727195972f6Sopenharmony_ci 2007-03-28 Simon Goldschmidt 3728195972f6Sopenharmony_ci * sockets.c Remove "#include <errno.h>" from sockets.c to avoid multiple 3729195972f6Sopenharmony_ci definition of macros (in errno.h and lwip/arch.h) if LWIP_PROVIDE_ERRNO is 3730195972f6Sopenharmony_ci defined. This is the way it should have been already (looking at 3731195972f6Sopenharmony_ci doc/sys_arch.txt) 3732195972f6Sopenharmony_ci 3733195972f6Sopenharmony_ci 2007-03-28 Kieran Mansley 3734195972f6Sopenharmony_ci * opt.h Change default PBUF_POOL_BUFSIZE (again) to accomodate default MSS + 3735195972f6Sopenharmony_ci IP and TCP headers *and* physical link headers 3736195972f6Sopenharmony_ci 3737195972f6Sopenharmony_ci 2007-03-26 Frédéric Bernon (based on patch from Dmitry Potapov) 3738195972f6Sopenharmony_ci * api_lib.c: patch for netconn_write(), fixes a possible race condition which cause 3739195972f6Sopenharmony_ci to send some garbage. It is not a definitive solution, but the patch does solve 3740195972f6Sopenharmony_ci the problem for most cases. 3741195972f6Sopenharmony_ci 3742195972f6Sopenharmony_ci 2007-03-22 Frédéric Bernon 3743195972f6Sopenharmony_ci * api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used). 3744195972f6Sopenharmony_ci 3745195972f6Sopenharmony_ci 2007-03-22 Frédéric Bernon 3746195972f6Sopenharmony_ci * api_lib.c: somes resources couldn't be freed if there was errors during 3747195972f6Sopenharmony_ci netconn_new_with_proto_and_callback. 3748195972f6Sopenharmony_ci 3749195972f6Sopenharmony_ci 2007-03-22 Frédéric Bernon 3750195972f6Sopenharmony_ci * ethernetif.c: update netif->input calls to check return value. In older ports, 3751195972f6Sopenharmony_ci it's a good idea to upgrade them, even if before, there could be another problem 3752195972f6Sopenharmony_ci (access to an uninitialized mailbox). 3753195972f6Sopenharmony_ci 3754195972f6Sopenharmony_ci 2007-03-21 Simon Goldschmidt 3755195972f6Sopenharmony_ci * sockets.c: fixed bug #5067 (essentialy a signed/unsigned warning fixed 3756195972f6Sopenharmony_ci by casting to unsigned). 3757195972f6Sopenharmony_ci 3758195972f6Sopenharmony_ci 2007-03-21 Frédéric Bernon 3759195972f6Sopenharmony_ci * api_lib.c, api_msg.c, tcpip.c: integrate sys_mbox_fetch(conn->mbox, NULL) calls from 3760195972f6Sopenharmony_ci api_lib.c to tcpip.c's tcpip_apimsg(). Now, use a local variable and not a 3761195972f6Sopenharmony_ci dynamic one from memp to send tcpip_msg to tcpip_thread in a synchrone call. 3762195972f6Sopenharmony_ci Free tcpip_msg from tcpip_apimsg is not done in tcpip_thread. This give a 3763195972f6Sopenharmony_ci faster and more reliable communication between api_lib and tcpip. 3764195972f6Sopenharmony_ci 3765195972f6Sopenharmony_ci 2007-03-21 Frédéric Bernon 3766195972f6Sopenharmony_ci * opt.h: Add LWIP_NETIF_CALLBACK (to avoid compiler warning) and set it to 0. 3767195972f6Sopenharmony_ci 3768195972f6Sopenharmony_ci 2007-03-21 Frédéric Bernon 3769195972f6Sopenharmony_ci * api_msg.c, igmp.c, igmp.h: Fix C++ style comments 3770195972f6Sopenharmony_ci 3771195972f6Sopenharmony_ci 2007-03-21 Kieran Mansley 3772195972f6Sopenharmony_ci * opt.h Change default PBUF_POOL_BUFSIZE to accomodate default MSS + 3773195972f6Sopenharmony_ci IP and TCP headers 3774195972f6Sopenharmony_ci 3775195972f6Sopenharmony_ci 2007-03-21 Kieran Mansley 3776195972f6Sopenharmony_ci * Fix all uses of pbuf_header to check the return value. In some 3777195972f6Sopenharmony_ci cases just assert if it fails as I'm not sure how to fix them, but 3778195972f6Sopenharmony_ci this is no worse than before when they would carry on regardless 3779195972f6Sopenharmony_ci of the failure. 3780195972f6Sopenharmony_ci 3781195972f6Sopenharmony_ci 2007-03-21 Kieran Mansley 3782195972f6Sopenharmony_ci * sockets.c, igmp.c, igmp.h, memp.h: Fix C++ style comments and 3783195972f6Sopenharmony_ci comment out missing header include in icmp.c 3784195972f6Sopenharmony_ci 3785195972f6Sopenharmony_ci 2007-03-20 Frédéric Bernon 3786195972f6Sopenharmony_ci * memp.h, stats.c: Fix stats_display function where memp_names table wasn't 3787195972f6Sopenharmony_ci synchronized with memp.h. 3788195972f6Sopenharmony_ci 3789195972f6Sopenharmony_ci 2007-03-20 Frédéric Bernon 3790195972f6Sopenharmony_ci * tcpip.c: Initialize tcpip's mbox, and verify if initialized in tcpip_input, 3791195972f6Sopenharmony_ci tcpip_ethinput, tcpip_callback, tcpip_apimsg, to fix a init problem with 3792195972f6Sopenharmony_ci network interfaces. Also fix a compiler warning. 3793195972f6Sopenharmony_ci 3794195972f6Sopenharmony_ci 2007-03-20 Kieran Mansley 3795195972f6Sopenharmony_ci * udp.c: Only try and use pbuf_header() to make space for headers if 3796195972f6Sopenharmony_ci not a ROM or REF pbuf. 3797195972f6Sopenharmony_ci 3798195972f6Sopenharmony_ci 2007-03-19 Frédéric Bernon 3799195972f6Sopenharmony_ci * api_msg.h, api_msg.c, tcpip.h, tcpip.c: Add return types to tcpip_apimsg() 3800195972f6Sopenharmony_ci and api_msg_post(). 3801195972f6Sopenharmony_ci 3802195972f6Sopenharmony_ci 2007-03-19 Frédéric Bernon 3803195972f6Sopenharmony_ci * Remove unimplemented "memp_realloc" function from memp.h. 3804195972f6Sopenharmony_ci 3805195972f6Sopenharmony_ci 2007-03-11 Simon Goldschmidt 3806195972f6Sopenharmony_ci * pbuf.c: checked in patch #5796: pbuf_alloc: len field claculation caused 3807195972f6Sopenharmony_ci memory corruption. 3808195972f6Sopenharmony_ci 3809195972f6Sopenharmony_ci 2007-03-11 Simon Goldschmidt (based on patch from Dmitry Potapov) 3810195972f6Sopenharmony_ci * api_lib.c, sockets.c, api.h, api_msg.h, sockets.h: Fixed bug #19251 3811195972f6Sopenharmony_ci (missing `const' qualifier in socket functions), to get more compatible to 3812195972f6Sopenharmony_ci standard POSIX sockets. 3813195972f6Sopenharmony_ci 3814195972f6Sopenharmony_ci 2007-03-11 Frédéric Bernon (based on patch from Dmitry Potapov) 3815195972f6Sopenharmony_ci * sockets.c: Add asserts inside bind, connect and sendto to check input 3816195972f6Sopenharmony_ci parameters. Remove excessive set_errno() calls after get_socket(), because 3817195972f6Sopenharmony_ci errno is set inside of get_socket(). Move last sock_set_errno() inside 3818195972f6Sopenharmony_ci lwip_close. 3819195972f6Sopenharmony_ci 3820195972f6Sopenharmony_ci 2007-03-09 Simon Goldschmidt 3821195972f6Sopenharmony_ci * memp.c: Fixed bug #11400: New etharp queueing introduced bug: memp_memory 3822195972f6Sopenharmony_ci was allocated too small. 3823195972f6Sopenharmony_ci 3824195972f6Sopenharmony_ci 2007-03-06 Simon Goldschmidt 3825195972f6Sopenharmony_ci * tcpip.c: Initialize dhcp timers in tcpip_thread (if LWIP_DHCP) to protect 3826195972f6Sopenharmony_ci the stack from concurrent access. 3827195972f6Sopenharmony_ci 3828195972f6Sopenharmony_ci 2007-03-06 Frédéric Bernon, Dmitry Potapov 3829195972f6Sopenharmony_ci * tcpip.c, ip_frag.c, ethernetif.c: Fix some build problems, and a redundancy 3830195972f6Sopenharmony_ci call to "lwip_stats.link.recv++;" in low_level_input() & ethernetif_input(). 3831195972f6Sopenharmony_ci 3832195972f6Sopenharmony_ci 2007-03-06 Simon Goldschmidt 3833195972f6Sopenharmony_ci * ip_frag.c, ip_frag.h: Reduce code size: don't include code in those files 3834195972f6Sopenharmony_ci if IP_FRAG == 0 and IP_REASSEMBLY == 0 3835195972f6Sopenharmony_ci 3836195972f6Sopenharmony_ci 2007-03-06 Frédéric Bernon, Simon Goldschmidt 3837195972f6Sopenharmony_ci * opt.h, ip_frag.h, tcpip.h, tcpip.c, ethernetif.c: add new configuration 3838195972f6Sopenharmony_ci option named ETHARP_TCPIP_ETHINPUT, which enable the new tcpip_ethinput. 3839195972f6Sopenharmony_ci Allow to do ARP processing for incoming packets inside tcpip_thread 3840195972f6Sopenharmony_ci (protecting ARP layer against concurrent access). You can also disable 3841195972f6Sopenharmony_ci old code using tcp_input with new define ETHARP_TCPIP_INPUT set to 0. 3842195972f6Sopenharmony_ci Older ports have to use tcpip_ethinput. 3843195972f6Sopenharmony_ci 3844195972f6Sopenharmony_ci 2007-03-06 Simon Goldschmidt (based on patch from Dmitry Potapov) 3845195972f6Sopenharmony_ci * err.h, err.c: fixed compiler warning "initialization dircards qualifiers 3846195972f6Sopenharmony_ci from pointer target type" 3847195972f6Sopenharmony_ci 3848195972f6Sopenharmony_ci 2007-03-05 Frédéric Bernon 3849195972f6Sopenharmony_ci * opt.h, sockets.h: add new configuration options (LWIP_POSIX_SOCKETS_IO_NAMES, 3850195972f6Sopenharmony_ci ETHARP_TRUST_IP_MAC, review SO_REUSE) 3851195972f6Sopenharmony_ci 3852195972f6Sopenharmony_ci 2007-03-04 Frédéric Bernon 3853195972f6Sopenharmony_ci * api_msg.c: Remove some compiler warnings : parameter "pcb" was never 3854195972f6Sopenharmony_ci referenced. 3855195972f6Sopenharmony_ci 3856195972f6Sopenharmony_ci 2007-03-04 Frédéric Bernon 3857195972f6Sopenharmony_ci * api_lib.c: Fix "[patch #5764] api_lib.c cleanup: after patch #5687" (from 3858195972f6Sopenharmony_ci Dmitry Potapov). 3859195972f6Sopenharmony_ci The api_msg struct stay on the stack (not moved to netconn struct). 3860195972f6Sopenharmony_ci 3861195972f6Sopenharmony_ci 2007-03-04 Simon Goldschmidt (based on patch from Dmitry Potapov) 3862195972f6Sopenharmony_ci * pbuf.c: Fix BUG#19168 - pbuf_free can cause deadlock (if 3863195972f6Sopenharmony_ci SYS_LIGHTWEIGHT_PROT=1 & freeing PBUF_RAM when mem_sem is not available) 3864195972f6Sopenharmony_ci Also fixed cast warning in pbuf_alloc() 3865195972f6Sopenharmony_ci 3866195972f6Sopenharmony_ci 2007-03-04 Simon Goldschmidt 3867195972f6Sopenharmony_ci * etharp.c, etharp.h, memp.c, memp.h, opt.h: Fix BUG#11400 - don't corrupt 3868195972f6Sopenharmony_ci existing pbuf chain when enqueuing multiple pbufs to a pending ARP request 3869195972f6Sopenharmony_ci 3870195972f6Sopenharmony_ci 2007-03-03 Frédéric Bernon 3871195972f6Sopenharmony_ci * udp.c: remove obsolete line "static struct udp_pcb *pcb_cache = NULL;" 3872195972f6Sopenharmony_ci It is static, and never used in udp.c except udp_init(). 3873195972f6Sopenharmony_ci 3874195972f6Sopenharmony_ci 2007-03-02 Simon Goldschmidt 3875195972f6Sopenharmony_ci * tcpip.c: Moved call to ip_init(), udp_init() and tcp_init() from 3876195972f6Sopenharmony_ci tcpip_thread() to tcpip_init(). This way, raw API connections can be 3877195972f6Sopenharmony_ci initialized before tcpip_thread is running (e.g. before OS is started) 3878195972f6Sopenharmony_ci 3879195972f6Sopenharmony_ci 2007-03-02 Frédéric Bernon 3880195972f6Sopenharmony_ci * rawapi.txt: Fix documentation mismatch with etharp.h about etharp_tmr's call 3881195972f6Sopenharmony_ci interval. 3882195972f6Sopenharmony_ci 3883195972f6Sopenharmony_ci 2007-02-28 Kieran Mansley 3884195972f6Sopenharmony_ci * pbuf.c: Fix BUG#17645 - ensure pbuf payload pointer is not moved 3885195972f6Sopenharmony_ci outside the region of the pbuf by pbuf_header() 3886195972f6Sopenharmony_ci 3887195972f6Sopenharmony_ci 2007-02-28 Kieran Mansley 3888195972f6Sopenharmony_ci * sockets.c: Fix BUG#19161 - ensure milliseconds timeout is non-zero 3889195972f6Sopenharmony_ci when supplied timeout is also non-zero 3890195972f6Sopenharmony_ci 3891195972f6Sopenharmony_ci(STABLE-1.2.0) 3892195972f6Sopenharmony_ci 3893195972f6Sopenharmony_ci 2006-12-05 Leon Woestenberg 3894195972f6Sopenharmony_ci * CHANGELOG: Mention STABLE-1.2.0 release. 3895195972f6Sopenharmony_ci 3896195972f6Sopenharmony_ci ++ New features: 3897195972f6Sopenharmony_ci 3898195972f6Sopenharmony_ci 2006-12-01 Christiaan Simons 3899195972f6Sopenharmony_ci * mem.h, opt.h: Added MEM_LIBC_MALLOC option. 3900195972f6Sopenharmony_ci Note this is a workaround. Currently I have no other options left. 3901195972f6Sopenharmony_ci 3902195972f6Sopenharmony_ci 2006-10-26 Christiaan Simons (accepted patch by Jonathan Larmour) 3903195972f6Sopenharmony_ci * ipv4/ip_frag.c: rename MAX_MTU to IP_FRAG_MAX_MTU and move define 3904195972f6Sopenharmony_ci to include/lwip/opt.h. 3905195972f6Sopenharmony_ci * ipv4/lwip/ip_frag.h: Remove unused IP_REASS_INTERVAL. 3906195972f6Sopenharmony_ci Move IP_REASS_MAXAGE and IP_REASS_BUFSIZE to include/lwip/opt.h. 3907195972f6Sopenharmony_ci * opt.h: Add above new options. 3908195972f6Sopenharmony_ci 3909195972f6Sopenharmony_ci 2006-08-18 Christiaan Simons 3910195972f6Sopenharmony_ci * tcp_{in,out}.c: added SNMP counters. 3911195972f6Sopenharmony_ci * ipv4/ip.c: added SNMP counters. 3912195972f6Sopenharmony_ci * ipv4/ip_frag.c: added SNMP counters. 3913195972f6Sopenharmony_ci 3914195972f6Sopenharmony_ci 2006-08-08 Christiaan Simons 3915195972f6Sopenharmony_ci * etharp.{c,h}: added etharp_find_addr() to read 3916195972f6Sopenharmony_ci (stable) ethernet/IP address pair from ARP table 3917195972f6Sopenharmony_ci 3918195972f6Sopenharmony_ci 2006-07-14 Christiaan Simons 3919195972f6Sopenharmony_ci * mib_structs.c: added 3920195972f6Sopenharmony_ci * include/lwip/snmp_structs.h: added 3921195972f6Sopenharmony_ci * netif.{c,h}, netif/ethernetif.c: added SNMP statistics to netif struct 3922195972f6Sopenharmony_ci 3923195972f6Sopenharmony_ci 2006-07-06 Christiaan Simons 3924195972f6Sopenharmony_ci * snmp/asn1_{enc,dec}.c added 3925195972f6Sopenharmony_ci * snmp/mib2.c added 3926195972f6Sopenharmony_ci * snmp/msg_{in,out}.c added 3927195972f6Sopenharmony_ci * include/lwip/snmp_asn1.h added 3928195972f6Sopenharmony_ci * include/lwip/snmp_msg.h added 3929195972f6Sopenharmony_ci * doc/snmp_agent.txt added 3930195972f6Sopenharmony_ci 3931195972f6Sopenharmony_ci 2006-03-29 Christiaan Simons 3932195972f6Sopenharmony_ci * inet.c, inet.h: Added platform byteswap support. 3933195972f6Sopenharmony_ci Added LWIP_PLATFORM_BYTESWAP define (defaults to 0) and 3934195972f6Sopenharmony_ci optional LWIP_PLATFORM_HTONS(), LWIP_PLATFORM_HTONL() macros. 3935195972f6Sopenharmony_ci 3936195972f6Sopenharmony_ci ++ Bug fixes: 3937195972f6Sopenharmony_ci 3938195972f6Sopenharmony_ci 2006-11-30 Christiaan Simons 3939195972f6Sopenharmony_ci * dhcp.c: Fixed false triggers of request_timeout. 3940195972f6Sopenharmony_ci 3941195972f6Sopenharmony_ci 2006-11-28 Christiaan Simons 3942195972f6Sopenharmony_ci * netif.c: In netif_add() fixed missing clear of ip_addr, netmask, gw and flags. 3943195972f6Sopenharmony_ci 3944195972f6Sopenharmony_ci 2006-10-11 Christiaan Simons 3945195972f6Sopenharmony_ci * api_lib.c etharp.c, ip.c, memp.c, stats.c, sys.{c,h} tcp.h: 3946195972f6Sopenharmony_ci Partially accepted patch #5449 for ANSI C compatibility / build fixes. 3947195972f6Sopenharmony_ci * ipv4/lwip/ip.h ipv6/lwip/ip.h: Corrected UDP-Lite protocol 3948195972f6Sopenharmony_ci identifier from 170 to 136 (bug #17574). 3949195972f6Sopenharmony_ci 3950195972f6Sopenharmony_ci 2006-10-10 Christiaan Simons 3951195972f6Sopenharmony_ci * api_msg.c: Fixed Nagle algorithm as reported by Bob Grice. 3952195972f6Sopenharmony_ci 3953195972f6Sopenharmony_ci 2006-08-17 Christiaan Simons 3954195972f6Sopenharmony_ci * udp.c: Fixed bug #17200, added check for broadcast 3955195972f6Sopenharmony_ci destinations for PCBs bound to a unicast address. 3956195972f6Sopenharmony_ci 3957195972f6Sopenharmony_ci 2006-08-07 Christiaan Simons 3958195972f6Sopenharmony_ci * api_msg.c: Flushing TCP output in do_close() (bug #15926). 3959195972f6Sopenharmony_ci 3960195972f6Sopenharmony_ci 2006-06-27 Christiaan Simons 3961195972f6Sopenharmony_ci * api_msg.c: Applied patch for cold case (bug #11135). 3962195972f6Sopenharmony_ci In accept_function() ensure newconn->callback is always initialized. 3963195972f6Sopenharmony_ci 3964195972f6Sopenharmony_ci 2006-06-15 Christiaan Simons 3965195972f6Sopenharmony_ci * mem.h: added MEM_SIZE_F alias to fix an ancient cold case (bug #1748), 3966195972f6Sopenharmony_ci facilitate printing of mem_size_t and u16_t statistics. 3967195972f6Sopenharmony_ci 3968195972f6Sopenharmony_ci 2006-06-14 Christiaan Simons 3969195972f6Sopenharmony_ci * api_msg.c: Applied patch #5146 to handle allocation failures 3970195972f6Sopenharmony_ci in accept() by Kevin Lawson. 3971195972f6Sopenharmony_ci 3972195972f6Sopenharmony_ci 2006-05-26 Christiaan Simons 3973195972f6Sopenharmony_ci * api_lib.c: Removed conn->sem creation and destruction 3974195972f6Sopenharmony_ci from netconn_write() and added sys_sem_new to netconn_new_*. 3975195972f6Sopenharmony_ci 3976195972f6Sopenharmony_ci(STABLE-1_1_1) 3977195972f6Sopenharmony_ci 3978195972f6Sopenharmony_ci 2006-03-03 Christiaan Simons 3979195972f6Sopenharmony_ci * ipv4/ip_frag.c: Added bound-checking assertions on ip_reassbitmap 3980195972f6Sopenharmony_ci access and added pbuf_alloc() return value checks. 3981195972f6Sopenharmony_ci 3982195972f6Sopenharmony_ci 2006-01-01 Leon Woestenberg <leon.woestenberg@gmx.net> 3983195972f6Sopenharmony_ci * tcp_{in,out}.c, tcp_out.c: Removed 'even sndbuf' fix in TCP, which is 3984195972f6Sopenharmony_ci now handled by the checksum routine properly. 3985195972f6Sopenharmony_ci 3986195972f6Sopenharmony_ci 2006-02-27 Leon Woestenberg <leon.woestenberg@gmx.net> 3987195972f6Sopenharmony_ci * pbuf.c: Fix alignment; pbuf_init() would not work unless 3988195972f6Sopenharmony_ci pbuf_pool_memory[] was properly aligned. (Patch by Curt McDowell.) 3989195972f6Sopenharmony_ci 3990195972f6Sopenharmony_ci 2005-12-20 Leon Woestenberg <leon.woestenberg@gmx.net> 3991195972f6Sopenharmony_ci * tcp.c: Remove PCBs which stay in LAST_ACK state too long. Patch 3992195972f6Sopenharmony_ci submitted by Mitrani Hiroshi. 3993195972f6Sopenharmony_ci 3994195972f6Sopenharmony_ci 2005-12-15 Christiaan Simons 3995195972f6Sopenharmony_ci * inet.c: Disabled the added summing routine to preserve code space. 3996195972f6Sopenharmony_ci 3997195972f6Sopenharmony_ci 2005-12-14 Leon Woestenberg <leon.woestenberg@gmx.net> 3998195972f6Sopenharmony_ci * tcp_in.c: Duplicate FIN ACK race condition fix by Kelvin Lawson. 3999195972f6Sopenharmony_ci Added Curt McDowell's optimized checksumming routine for future 4000195972f6Sopenharmony_ci inclusion. Need to create test case for unaliged, aligned, odd, 4001195972f6Sopenharmony_ci even length combination of cases on various endianess machines. 4002195972f6Sopenharmony_ci 4003195972f6Sopenharmony_ci 2005-12-09 Christiaan Simons 4004195972f6Sopenharmony_ci * inet.c: Rewrote standard checksum routine in proper portable C. 4005195972f6Sopenharmony_ci 4006195972f6Sopenharmony_ci 2005-11-25 Christiaan Simons 4007195972f6Sopenharmony_ci * udp.c tcp.c: Removed SO_REUSE hack. Should reside in socket code only. 4008195972f6Sopenharmony_ci * *.c: introduced cc.h LWIP_DEBUG formatters matching the u16_t, s16_t, 4009195972f6Sopenharmony_ci u32_t, s32_t typedefs. This solves most debug word-length assumes. 4010195972f6Sopenharmony_ci 4011195972f6Sopenharmony_ci 2005-07-17 Leon Woestenberg <leon.woestenberg@gmx.net> 4012195972f6Sopenharmony_ci * inet.c: Fixed unaligned 16-bit access in the standard checksum 4013195972f6Sopenharmony_ci routine by Peter Jolasson. 4014195972f6Sopenharmony_ci * slipif.c: Fixed implementation assumption of single-pbuf datagrams. 4015195972f6Sopenharmony_ci 4016195972f6Sopenharmony_ci 2005-02-04 Leon Woestenberg <leon.woestenberg@gmx.net> 4017195972f6Sopenharmony_ci * tcp_out.c: Fixed uninitialized 'queue' referenced in memerr branch. 4018195972f6Sopenharmony_ci * tcp_{out|in}.c: Applied patch fixing unaligned access. 4019195972f6Sopenharmony_ci 4020195972f6Sopenharmony_ci 2005-01-04 Leon Woestenberg <leon.woestenberg@gmx.net> 4021195972f6Sopenharmony_ci * pbuf.c: Fixed missing semicolon after LWIP_DEBUG statement. 4022195972f6Sopenharmony_ci 4023195972f6Sopenharmony_ci 2005-01-03 Leon Woestenberg <leon.woestenberg@gmx.net> 4024195972f6Sopenharmony_ci * udp.c: UDP pcb->recv() was called even when it was NULL. 4025195972f6Sopenharmony_ci 4026195972f6Sopenharmony_ci(STABLE-1_1_0) 4027195972f6Sopenharmony_ci 4028195972f6Sopenharmony_ci 2004-12-28 Leon Woestenberg <leon.woestenberg@gmx.net> 4029195972f6Sopenharmony_ci * etharp.*: Disabled multiple packets on the ARP queue. 4030195972f6Sopenharmony_ci This clashes with TCP queueing. 4031195972f6Sopenharmony_ci 4032195972f6Sopenharmony_ci 2004-11-28 Leon Woestenberg <leon.woestenberg@gmx.net> 4033195972f6Sopenharmony_ci * etharp.*: Fixed race condition from ARP request to ARP timeout. 4034195972f6Sopenharmony_ci Halved the ARP period, doubled the period counts. 4035195972f6Sopenharmony_ci ETHARP_MAX_PENDING now should be at least 2. This prevents 4036195972f6Sopenharmony_ci the counter from reaching 0 right away (which would allow 4037195972f6Sopenharmony_ci too little time for ARP responses to be received). 4038195972f6Sopenharmony_ci 4039195972f6Sopenharmony_ci 2004-11-25 Leon Woestenberg <leon.woestenberg@gmx.net> 4040195972f6Sopenharmony_ci * dhcp.c: Decline messages were not multicast but unicast. 4041195972f6Sopenharmony_ci * etharp.c: ETHARP_CREATE is renamed to ETHARP_TRY_HARD. 4042195972f6Sopenharmony_ci Do not try hard to insert arbitrary packet's source address, 4043195972f6Sopenharmony_ci etharp_ip_input() now calls etharp_update() without ETHARP_TRY_HARD. 4044195972f6Sopenharmony_ci etharp_query() now always DOES call ETHARP_TRY_HARD so that users 4045195972f6Sopenharmony_ci querying an address will see it appear in the cache (DHCP could 4046195972f6Sopenharmony_ci suffer from this when a server invalidly gave an in-use address.) 4047195972f6Sopenharmony_ci * ipv4/ip_addr.h: Renamed ip_addr_maskcmp() to _netcmp() as we are 4048195972f6Sopenharmony_ci comparing network addresses (identifiers), not the network masks 4049195972f6Sopenharmony_ci themselves. 4050195972f6Sopenharmony_ci * ipv4/ip_addr.c: ip_addr_isbroadcast() now checks that the given 4051195972f6Sopenharmony_ci IP address actually belongs to the network of the given interface. 4052195972f6Sopenharmony_ci 4053195972f6Sopenharmony_ci 2004-11-24 Kieran Mansley <kjm25@cam.ac.uk> 4054195972f6Sopenharmony_ci * tcp.c: Increment pcb->snd_buf when ACK is received in SYN_SENT state. 4055195972f6Sopenharmony_ci 4056195972f6Sopenharmony_ci(STABLE-1_1_0-RC1) 4057195972f6Sopenharmony_ci 4058195972f6Sopenharmony_ci 2004-10-16 Kieran Mansley <kjm25@cam.ac.uk> 4059195972f6Sopenharmony_ci * tcp.c: Add code to tcp_recved() to send an ACK (window update) immediately, 4060195972f6Sopenharmony_ci even if one is already pending, if the rcv_wnd is above a threshold 4061195972f6Sopenharmony_ci (currently TCP_WND/2). This avoids waiting for a timer to expire to send a 4062195972f6Sopenharmony_ci delayed ACK in order to open the window if the stack is only receiving data. 4063195972f6Sopenharmony_ci 4064195972f6Sopenharmony_ci 2004-09-12 Kieran Mansley <kjm25@cam.ac.uk> 4065195972f6Sopenharmony_ci * tcp*.*: Retransmit time-out handling improvement by Sam Jansen. 4066195972f6Sopenharmony_ci 4067195972f6Sopenharmony_ci 2004-08-20 Tony Mountifield <tony@softins.co.uk> 4068195972f6Sopenharmony_ci * etharp.c: Make sure the first pbuf queued on an ARP entry 4069195972f6Sopenharmony_ci is properly ref counted. 4070195972f6Sopenharmony_ci 4071195972f6Sopenharmony_ci 2004-07-27 Tony Mountifield <tony@softins.co.uk> 4072195972f6Sopenharmony_ci * debug.h: Added (int) cast in LWIP_DEBUGF() to avoid compiler 4073195972f6Sopenharmony_ci warnings about comparison. 4074195972f6Sopenharmony_ci * pbuf.c: Stopped compiler complaining of empty if statement 4075195972f6Sopenharmony_ci when LWIP_DEBUGF() empty. Closed an unclosed comment. 4076195972f6Sopenharmony_ci * tcp.c: Stopped compiler complaining of empty if statement 4077195972f6Sopenharmony_ci when LWIP_DEBUGF() empty. 4078195972f6Sopenharmony_ci * ip.h Corrected IPH_TOS() macro: returns a byte, so doesn't need htons(). 4079195972f6Sopenharmony_ci * inet.c: Added a couple of casts to quiet the compiler. 4080195972f6Sopenharmony_ci No need to test isascii(c) before isdigit(c) or isxdigit(c). 4081195972f6Sopenharmony_ci 4082195972f6Sopenharmony_ci 2004-07-22 Tony Mountifield <tony@softins.co.uk> 4083195972f6Sopenharmony_ci * inet.c: Made data types consistent in inet_ntoa(). 4084195972f6Sopenharmony_ci Added casts for return values of checksum routines, to pacify compiler. 4085195972f6Sopenharmony_ci * ip_frag.c, tcp_out.c, sockets.c, pbuf.c 4086195972f6Sopenharmony_ci Small corrections to some debugging statements, to pacify compiler. 4087195972f6Sopenharmony_ci 4088195972f6Sopenharmony_ci 2004-07-21 Tony Mountifield <tony@softins.co.uk> 4089195972f6Sopenharmony_ci * etharp.c: Removed spurious semicolon and added missing end-of-comment. 4090195972f6Sopenharmony_ci * ethernetif.c Updated low_level_output() to match prototype for 4091195972f6Sopenharmony_ci netif->linkoutput and changed low_level_input() similarly for consistency. 4092195972f6Sopenharmony_ci * api_msg.c: Changed recv_raw() from int to u8_t, to match prototype 4093195972f6Sopenharmony_ci of raw_recv() in raw.h and so avoid compiler error. 4094195972f6Sopenharmony_ci * sockets.c: Added trivial (int) cast to keep compiler happier. 4095195972f6Sopenharmony_ci * ip.c, netif.c Changed debug statements to use the tidier ip4_addrN() macros. 4096195972f6Sopenharmony_ci 4097195972f6Sopenharmony_ci(STABLE-1_0_0) 4098195972f6Sopenharmony_ci 4099195972f6Sopenharmony_ci ++ Changes: 4100195972f6Sopenharmony_ci 4101195972f6Sopenharmony_ci 2004-07-05 Leon Woestenberg <leon.woestenberg@gmx.net> 4102195972f6Sopenharmony_ci * sockets.*: Restructured LWIP_PRIVATE_TIMEVAL. Make sure 4103195972f6Sopenharmony_ci your cc.h file defines this either 1 or 0. If non-defined, 4104195972f6Sopenharmony_ci defaults to 1. 4105195972f6Sopenharmony_ci * .c: Added <string.h> and <errno.h> includes where used. 4106195972f6Sopenharmony_ci * etharp.c: Made some array indices unsigned. 4107195972f6Sopenharmony_ci 4108195972f6Sopenharmony_ci 2004-06-27 Leon Woestenberg <leon.woestenberg@gmx.net> 4109195972f6Sopenharmony_ci * netif.*: Added netif_set_up()/down(). 4110195972f6Sopenharmony_ci * dhcp.c: Changes to restart program flow. 4111195972f6Sopenharmony_ci 4112195972f6Sopenharmony_ci 2004-05-07 Leon Woestenberg <leon.woestenberg@gmx.net> 4113195972f6Sopenharmony_ci * etharp.c: In find_entry(), instead of a list traversal per candidate, do a 4114195972f6Sopenharmony_ci single-pass lookup for different candidates. Should exploit locality. 4115195972f6Sopenharmony_ci 4116195972f6Sopenharmony_ci 2004-04-29 Leon Woestenberg <leon.woestenberg@gmx.net> 4117195972f6Sopenharmony_ci * tcp*.c: Cleaned up source comment documentation for Doxygen processing. 4118195972f6Sopenharmony_ci * opt.h: ETHARP_ALWAYS_INSERT option removed to comply with ARP RFC. 4119195972f6Sopenharmony_ci * etharp.c: update_arp_entry() only adds new ARP entries when adviced to by 4120195972f6Sopenharmony_ci the caller. This deprecates the ETHARP_ALWAYS_INSERT overrule option. 4121195972f6Sopenharmony_ci 4122195972f6Sopenharmony_ci ++ Bug fixes: 4123195972f6Sopenharmony_ci 4124195972f6Sopenharmony_ci 2004-04-27 Leon Woestenberg <leon.woestenberg@gmx.net> 4125195972f6Sopenharmony_ci * etharp.c: Applied patch of bug #8708 by Toni Mountifield with a solution 4126195972f6Sopenharmony_ci suggested by Timmy Brolin. Fix for 32-bit processors that cannot access 4127195972f6Sopenharmony_ci non-aligned 32-bit words, such as soms 32-bit TCP/IP header fields. Fix 4128195972f6Sopenharmony_ci is to prefix the 14-bit Ethernet headers with two padding bytes. 4129195972f6Sopenharmony_ci 4130195972f6Sopenharmony_ci 2004-04-23 Leon Woestenberg <leon.woestenberg@gmx.net> 4131195972f6Sopenharmony_ci * ip_addr.c: Fix in the ip_addr_isbroadcast() check. 4132195972f6Sopenharmony_ci * etharp.c: Fixed the case where the packet that initiates the ARP request 4133195972f6Sopenharmony_ci is not queued, and gets lost. Fixed the case where the packets destination 4134195972f6Sopenharmony_ci address is already known; we now always queue the packet and perform an ARP 4135195972f6Sopenharmony_ci request. 4136195972f6Sopenharmony_ci 4137195972f6Sopenharmony_ci(STABLE-0_7_0) 4138195972f6Sopenharmony_ci 4139195972f6Sopenharmony_ci ++ Bug fixes: 4140195972f6Sopenharmony_ci 4141195972f6Sopenharmony_ci * Fixed TCP bug for SYN_SENT to ESTABLISHED state transition. 4142195972f6Sopenharmony_ci * Fixed TCP bug in dequeueing of FIN from out of order segment queue. 4143195972f6Sopenharmony_ci * Fixed two possible NULL references in rare cases. 4144195972f6Sopenharmony_ci 4145195972f6Sopenharmony_ci(STABLE-0_6_6) 4146195972f6Sopenharmony_ci 4147195972f6Sopenharmony_ci ++ Bug fixes: 4148195972f6Sopenharmony_ci 4149195972f6Sopenharmony_ci * Fixed DHCP which did not include the IP address in DECLINE messages. 4150195972f6Sopenharmony_ci 4151195972f6Sopenharmony_ci ++ Changes: 4152195972f6Sopenharmony_ci 4153195972f6Sopenharmony_ci * etharp.c has been hauled over a bit. 4154195972f6Sopenharmony_ci 4155195972f6Sopenharmony_ci(STABLE-0_6_5) 4156195972f6Sopenharmony_ci 4157195972f6Sopenharmony_ci ++ Bug fixes: 4158195972f6Sopenharmony_ci 4159195972f6Sopenharmony_ci * Fixed TCP bug induced by bad window resizing with unidirectional TCP traffic. 4160195972f6Sopenharmony_ci * Packets sent from ARP queue had invalid source hardware address. 4161195972f6Sopenharmony_ci 4162195972f6Sopenharmony_ci ++ Changes: 4163195972f6Sopenharmony_ci 4164195972f6Sopenharmony_ci * Pass-by ARP requests do now update the cache. 4165195972f6Sopenharmony_ci 4166195972f6Sopenharmony_ci ++ New features: 4167195972f6Sopenharmony_ci 4168195972f6Sopenharmony_ci * No longer dependent on ctype.h. 4169195972f6Sopenharmony_ci * New socket options. 4170195972f6Sopenharmony_ci * Raw IP pcb support. 4171195972f6Sopenharmony_ci 4172195972f6Sopenharmony_ci(STABLE-0_6_4) 4173195972f6Sopenharmony_ci 4174195972f6Sopenharmony_ci ++ Bug fixes: 4175195972f6Sopenharmony_ci 4176195972f6Sopenharmony_ci * Some debug formatters and casts fixed. 4177195972f6Sopenharmony_ci * Numereous fixes in PPP. 4178195972f6Sopenharmony_ci 4179195972f6Sopenharmony_ci ++ Changes: 4180195972f6Sopenharmony_ci 4181195972f6Sopenharmony_ci * DEBUGF now is LWIP_DEBUGF 4182195972f6Sopenharmony_ci * pbuf_dechain() has been re-enabled. 4183195972f6Sopenharmony_ci * Mentioned the changed use of CVS branches in README. 4184195972f6Sopenharmony_ci 4185195972f6Sopenharmony_ci(STABLE-0_6_3) 4186195972f6Sopenharmony_ci 4187195972f6Sopenharmony_ci ++ Bug fixes: 4188195972f6Sopenharmony_ci 4189195972f6Sopenharmony_ci * Fixed pool pbuf memory leak in pbuf_alloc(). 4190195972f6Sopenharmony_ci Occured if not enough PBUF_POOL pbufs for a packet pbuf chain. 4191195972f6Sopenharmony_ci Reported by Savin Zlobec. 4192195972f6Sopenharmony_ci 4193195972f6Sopenharmony_ci * PBUF_POOL chains had their tot_len field not set for non-first 4194195972f6Sopenharmony_ci pbufs. Fixed in pbuf_alloc(). 4195195972f6Sopenharmony_ci 4196195972f6Sopenharmony_ci ++ New features: 4197195972f6Sopenharmony_ci 4198195972f6Sopenharmony_ci * Added PPP stack contributed by Marc Boucher 4199195972f6Sopenharmony_ci 4200195972f6Sopenharmony_ci ++ Changes: 4201195972f6Sopenharmony_ci 4202195972f6Sopenharmony_ci * Now drops short packets for ICMP/UDP/TCP protocols. More robust. 4203195972f6Sopenharmony_ci 4204195972f6Sopenharmony_ci * ARP queueuing now queues the latest packet instead of the first. 4205195972f6Sopenharmony_ci This is the RFC recommended behaviour, but can be overridden in 4206195972f6Sopenharmony_ci lwipopts.h. 4207195972f6Sopenharmony_ci 4208195972f6Sopenharmony_ci(0.6.2) 4209195972f6Sopenharmony_ci 4210195972f6Sopenharmony_ci ++ Bugfixes: 4211195972f6Sopenharmony_ci 4212195972f6Sopenharmony_ci * TCP has been fixed to deal with the new use of the pbuf->ref 4213195972f6Sopenharmony_ci counter. 4214195972f6Sopenharmony_ci 4215195972f6Sopenharmony_ci * DHCP dhcp_inform() crash bug fixed. 4216195972f6Sopenharmony_ci 4217195972f6Sopenharmony_ci ++ Changes: 4218195972f6Sopenharmony_ci 4219195972f6Sopenharmony_ci * Removed pbuf_pool_free_cache and pbuf_pool_alloc_cache. Also removed 4220195972f6Sopenharmony_ci pbuf_refresh(). This has sped up pbuf pool operations considerably. 4221195972f6Sopenharmony_ci Implemented by David Haas. 4222195972f6Sopenharmony_ci 4223195972f6Sopenharmony_ci(0.6.1) 4224195972f6Sopenharmony_ci 4225195972f6Sopenharmony_ci ++ New features: 4226195972f6Sopenharmony_ci 4227195972f6Sopenharmony_ci * The packet buffer implementation has been enhanced to support 4228195972f6Sopenharmony_ci zero-copy and copy-on-demand for packet buffers which have their 4229195972f6Sopenharmony_ci payloads in application-managed memory. 4230195972f6Sopenharmony_ci Implemented by David Haas. 4231195972f6Sopenharmony_ci 4232195972f6Sopenharmony_ci Use PBUF_REF to make a pbuf refer to RAM. lwIP will use zero-copy 4233195972f6Sopenharmony_ci if an outgoing packet can be directly sent on the link, or perform 4234195972f6Sopenharmony_ci a copy-on-demand when necessary. 4235195972f6Sopenharmony_ci 4236195972f6Sopenharmony_ci The application can safely assume the packet is sent, and the RAM 4237195972f6Sopenharmony_ci is available to the application directly after calling udp_send() 4238195972f6Sopenharmony_ci or similar function. 4239195972f6Sopenharmony_ci 4240195972f6Sopenharmony_ci ++ Bugfixes: 4241195972f6Sopenharmony_ci 4242195972f6Sopenharmony_ci * ARP_QUEUEING should now correctly work for all cases, including 4243195972f6Sopenharmony_ci PBUF_REF. 4244195972f6Sopenharmony_ci Implemented by Leon Woestenberg. 4245195972f6Sopenharmony_ci 4246195972f6Sopenharmony_ci ++ Changes: 4247195972f6Sopenharmony_ci 4248195972f6Sopenharmony_ci * IP_ADDR_ANY is no longer a NULL pointer. Instead, it is a pointer 4249195972f6Sopenharmony_ci to a '0.0.0.0' IP address. 4250195972f6Sopenharmony_ci 4251195972f6Sopenharmony_ci * The packet buffer implementation is changed. The pbuf->ref counter 4252195972f6Sopenharmony_ci meaning has changed, and several pbuf functions have been 4253195972f6Sopenharmony_ci adapted accordingly. 4254195972f6Sopenharmony_ci 4255195972f6Sopenharmony_ci * netif drivers have to be changed to set the hardware address length field 4256195972f6Sopenharmony_ci that must be initialized correctly by the driver (hint: 6 for Ethernet MAC). 4257195972f6Sopenharmony_ci See the contrib/ports/c16x cs8900 driver as a driver example. 4258195972f6Sopenharmony_ci 4259195972f6Sopenharmony_ci * netif's have a dhcp field that must be initialized to NULL by the driver. 4260195972f6Sopenharmony_ci See the contrib/ports/c16x cs8900 driver as a driver example. 4261195972f6Sopenharmony_ci 4262195972f6Sopenharmony_ci(0.5.x) This file has been unmaintained up to 0.6.1. All changes are 4263195972f6Sopenharmony_ci logged in CVS but have not been explained here. 4264195972f6Sopenharmony_ci 4265195972f6Sopenharmony_ci(0.5.3) Changes since version 0.5.2 4266195972f6Sopenharmony_ci 4267195972f6Sopenharmony_ci ++ Bugfixes: 4268195972f6Sopenharmony_ci 4269195972f6Sopenharmony_ci * memp_malloc(MEMP_API_MSG) could fail with multiple application 4270195972f6Sopenharmony_ci threads because it wasn't protected by semaphores. 4271195972f6Sopenharmony_ci 4272195972f6Sopenharmony_ci ++ Other changes: 4273195972f6Sopenharmony_ci 4274195972f6Sopenharmony_ci * struct ip_addr now packed. 4275195972f6Sopenharmony_ci 4276195972f6Sopenharmony_ci * The name of the time variable in arp.c has been changed to ctime 4277195972f6Sopenharmony_ci to avoid conflicts with the time() function. 4278195972f6Sopenharmony_ci 4279195972f6Sopenharmony_ci(0.5.2) Changes since version 0.5.1 4280195972f6Sopenharmony_ci 4281195972f6Sopenharmony_ci ++ New features: 4282195972f6Sopenharmony_ci 4283195972f6Sopenharmony_ci * A new TCP function, tcp_tmr(), now handles both TCP timers. 4284195972f6Sopenharmony_ci 4285195972f6Sopenharmony_ci ++ Bugfixes: 4286195972f6Sopenharmony_ci 4287195972f6Sopenharmony_ci * A bug in tcp_parseopt() could cause the stack to hang because of a 4288195972f6Sopenharmony_ci malformed TCP option. 4289195972f6Sopenharmony_ci 4290195972f6Sopenharmony_ci * The address of new connections in the accept() function in the BSD 4291195972f6Sopenharmony_ci socket library was not handled correctly. 4292195972f6Sopenharmony_ci 4293195972f6Sopenharmony_ci * pbuf_dechain() did not update the ->tot_len field of the tail. 4294195972f6Sopenharmony_ci 4295195972f6Sopenharmony_ci * Aborted TCP connections were not handled correctly in all 4296195972f6Sopenharmony_ci situations. 4297195972f6Sopenharmony_ci 4298195972f6Sopenharmony_ci ++ Other changes: 4299195972f6Sopenharmony_ci 4300195972f6Sopenharmony_ci * All protocol header structs are now packed. 4301195972f6Sopenharmony_ci 4302195972f6Sopenharmony_ci * The ->len field in the tcp_seg structure now counts the actual 4303195972f6Sopenharmony_ci amount of data, and does not add one for SYN and FIN segments. 4304195972f6Sopenharmony_ci 4305195972f6Sopenharmony_ci(0.5.1) Changes since version 0.5.0 4306195972f6Sopenharmony_ci 4307195972f6Sopenharmony_ci ++ New features: 4308195972f6Sopenharmony_ci 4309195972f6Sopenharmony_ci * Possible to run as a user process under Linux. 4310195972f6Sopenharmony_ci 4311195972f6Sopenharmony_ci * Preliminary support for cross platform packed structs. 4312195972f6Sopenharmony_ci 4313195972f6Sopenharmony_ci * ARP timer now implemented. 4314195972f6Sopenharmony_ci 4315195972f6Sopenharmony_ci ++ Bugfixes: 4316195972f6Sopenharmony_ci 4317195972f6Sopenharmony_ci * TCP output queue length was badly initialized when opening 4318195972f6Sopenharmony_ci connections. 4319195972f6Sopenharmony_ci 4320195972f6Sopenharmony_ci * TCP delayed ACKs were not sent correctly. 4321195972f6Sopenharmony_ci 4322195972f6Sopenharmony_ci * Explicit initialization of BSS segment variables. 4323195972f6Sopenharmony_ci 4324195972f6Sopenharmony_ci * read() in BSD socket library could drop data. 4325195972f6Sopenharmony_ci 4326195972f6Sopenharmony_ci * Problems with memory alignment. 4327195972f6Sopenharmony_ci 4328195972f6Sopenharmony_ci * Situations when all TCP buffers were used could lead to 4329195972f6Sopenharmony_ci starvation. 4330195972f6Sopenharmony_ci 4331195972f6Sopenharmony_ci * TCP MSS option wasn't parsed correctly. 4332195972f6Sopenharmony_ci 4333195972f6Sopenharmony_ci * Problems with UDP checksum calculation. 4334195972f6Sopenharmony_ci 4335195972f6Sopenharmony_ci * IP multicast address tests had endianess problems. 4336195972f6Sopenharmony_ci 4337195972f6Sopenharmony_ci * ARP requests had wrong destination hardware address. 4338195972f6Sopenharmony_ci 4339195972f6Sopenharmony_ci ++ Other changes: 4340195972f6Sopenharmony_ci 4341195972f6Sopenharmony_ci * struct eth_addr changed from u16_t[3] array to u8_t[6]. 4342195972f6Sopenharmony_ci 4343195972f6Sopenharmony_ci * A ->linkoutput() member was added to struct netif. 4344195972f6Sopenharmony_ci 4345195972f6Sopenharmony_ci * TCP and UDP ->dest_* struct members where changed to ->remote_*. 4346195972f6Sopenharmony_ci 4347195972f6Sopenharmony_ci * ntoh* macros are now null definitions for big endian CPUs. 4348195972f6Sopenharmony_ci 4349195972f6Sopenharmony_ci(0.5.0) Changes since version 0.4.2 4350195972f6Sopenharmony_ci 4351195972f6Sopenharmony_ci ++ New features: 4352195972f6Sopenharmony_ci 4353195972f6Sopenharmony_ci * Redesigned operating system emulation layer to make porting easier. 4354195972f6Sopenharmony_ci 4355195972f6Sopenharmony_ci * Better control over TCP output buffers. 4356195972f6Sopenharmony_ci 4357195972f6Sopenharmony_ci * Documenation added. 4358195972f6Sopenharmony_ci 4359195972f6Sopenharmony_ci ++ Bugfixes: 4360195972f6Sopenharmony_ci 4361195972f6Sopenharmony_ci * Locking issues in buffer management. 4362195972f6Sopenharmony_ci 4363195972f6Sopenharmony_ci * Bugfixes in the sequential API. 4364195972f6Sopenharmony_ci 4365195972f6Sopenharmony_ci * IP forwarding could cause memory leakage. This has been fixed. 4366195972f6Sopenharmony_ci 4367195972f6Sopenharmony_ci ++ Other changes: 4368195972f6Sopenharmony_ci 4369195972f6Sopenharmony_ci * Directory structure somewhat changed; the core/ tree has been 4370195972f6Sopenharmony_ci collapsed. 4371195972f6Sopenharmony_ci 4372195972f6Sopenharmony_ci(0.4.2) Changes since version 0.4.1 4373195972f6Sopenharmony_ci 4374195972f6Sopenharmony_ci ++ New features: 4375195972f6Sopenharmony_ci 4376195972f6Sopenharmony_ci * Experimental ARP implementation added. 4377195972f6Sopenharmony_ci 4378195972f6Sopenharmony_ci * Skeleton Ethernet driver added. 4379195972f6Sopenharmony_ci 4380195972f6Sopenharmony_ci * Experimental BSD socket API library added. 4381195972f6Sopenharmony_ci 4382195972f6Sopenharmony_ci ++ Bugfixes: 4383195972f6Sopenharmony_ci 4384195972f6Sopenharmony_ci * In very intense situations, memory leakage could occur. This has 4385195972f6Sopenharmony_ci been fixed. 4386195972f6Sopenharmony_ci 4387195972f6Sopenharmony_ci ++ Other changes: 4388195972f6Sopenharmony_ci 4389195972f6Sopenharmony_ci * Variables named "data" and "code" have been renamed in order to 4390195972f6Sopenharmony_ci avoid name conflicts in certain compilers. 4391195972f6Sopenharmony_ci 4392195972f6Sopenharmony_ci * Variable++ have in appliciable cases been translated to ++variable 4393195972f6Sopenharmony_ci since some compilers generate better code in the latter case. 4394195972f6Sopenharmony_ci 4395195972f6Sopenharmony_ci(0.4.1) Changes since version 0.4 4396195972f6Sopenharmony_ci 4397195972f6Sopenharmony_ci ++ New features: 4398195972f6Sopenharmony_ci 4399195972f6Sopenharmony_ci * TCP: Connection attempts time out earlier than data 4400195972f6Sopenharmony_ci transmissions. Nagle algorithm implemented. Push flag set on the 4401195972f6Sopenharmony_ci last segment in a burst. 4402195972f6Sopenharmony_ci 4403195972f6Sopenharmony_ci * UDP: experimental support for UDP-Lite extensions. 4404195972f6Sopenharmony_ci 4405195972f6Sopenharmony_ci ++ Bugfixes: 4406195972f6Sopenharmony_ci 4407195972f6Sopenharmony_ci * TCP: out of order segments were in some cases handled incorrectly, 4408195972f6Sopenharmony_ci and this has now been fixed. Delayed acknowledgements was broken 4409195972f6Sopenharmony_ci in 0.4, has now been fixed. Binding to an address that is in use 4410195972f6Sopenharmony_ci now results in an error. Reset connections sometimes hung an 4411195972f6Sopenharmony_ci application; this has been fixed. 4412195972f6Sopenharmony_ci 4413195972f6Sopenharmony_ci * Checksum calculation sometimes failed for chained pbufs with odd 4414195972f6Sopenharmony_ci lengths. This has been fixed. 4415195972f6Sopenharmony_ci 4416195972f6Sopenharmony_ci * API: a lot of bug fixes in the API. The UDP API has been improved 4417195972f6Sopenharmony_ci and tested. Error reporting and handling has been 4418195972f6Sopenharmony_ci improved. Logical flaws and race conditions for incoming TCP 4419195972f6Sopenharmony_ci connections has been found and removed. 4420195972f6Sopenharmony_ci 4421195972f6Sopenharmony_ci * Memory manager: alignment issues. Reallocating memory sometimes 4422195972f6Sopenharmony_ci failed, this has been fixed. 4423195972f6Sopenharmony_ci 4424195972f6Sopenharmony_ci * Generic library: bcopy was flawed and has been fixed. 4425195972f6Sopenharmony_ci 4426195972f6Sopenharmony_ci ++ Other changes: 4427195972f6Sopenharmony_ci 4428195972f6Sopenharmony_ci * API: all datatypes has been changed from generic ones such as 4429195972f6Sopenharmony_ci ints, to specified ones such as u16_t. Functions that return 4430195972f6Sopenharmony_ci errors now have the correct type (err_t). 4431195972f6Sopenharmony_ci 4432195972f6Sopenharmony_ci * General: A lot of code cleaned up and debugging code removed. Many 4433195972f6Sopenharmony_ci portability issues have been fixed. 4434195972f6Sopenharmony_ci 4435195972f6Sopenharmony_ci * The license was changed; the advertising clause was removed. 4436195972f6Sopenharmony_ci 4437195972f6Sopenharmony_ci * C64 port added. 4438195972f6Sopenharmony_ci 4439195972f6Sopenharmony_ci * Thanks: Huge thanks go to Dagan Galarneau, Horst Garnetzke, Petri 4440195972f6Sopenharmony_ci Kosunen, Mikael Caleres, and Frits Wilmink for reporting and 4441195972f6Sopenharmony_ci fixing bugs! 4442195972f6Sopenharmony_ci 4443195972f6Sopenharmony_ci(0.4) Changes since version 0.3.1 4444195972f6Sopenharmony_ci 4445195972f6Sopenharmony_ci * Memory management has been radically changed; instead of 4446195972f6Sopenharmony_ci allocating memory from a shared heap, memory for objects that are 4447195972f6Sopenharmony_ci rapidly allocated and deallocated is now kept in pools. Allocation 4448195972f6Sopenharmony_ci and deallocation from those memory pools is very fast. The shared 4449195972f6Sopenharmony_ci heap is still present but is used less frequently. 4450195972f6Sopenharmony_ci 4451195972f6Sopenharmony_ci * The memory, memory pool, and packet buffer subsystems now support 4452195972f6Sopenharmony_ci 4-, 2-, or 1-byte alignment. 4453195972f6Sopenharmony_ci 4454195972f6Sopenharmony_ci * "Out of memory" situations are handled in a more robust way. 4455195972f6Sopenharmony_ci 4456195972f6Sopenharmony_ci * Stack usage has been reduced. 4457195972f6Sopenharmony_ci 4458195972f6Sopenharmony_ci * Easier configuration of lwIP parameters such as memory usage, 4459195972f6Sopenharmony_ci TTLs, statistics gathering, etc. All configuration parameters are 4460195972f6Sopenharmony_ci now kept in a single header file "lwipopts.h". 4461195972f6Sopenharmony_ci 4462195972f6Sopenharmony_ci * The directory structure has been changed slightly so that all 4463195972f6Sopenharmony_ci architecture specific files are kept under the src/arch 4464195972f6Sopenharmony_ci hierarchy. 4465195972f6Sopenharmony_ci 4466195972f6Sopenharmony_ci * Error propagation has been improved, both in the protocol modules 4467195972f6Sopenharmony_ci and in the API. 4468195972f6Sopenharmony_ci 4469195972f6Sopenharmony_ci * The code for the RTXC architecture has been implemented, tested 4470195972f6Sopenharmony_ci and put to use. 4471195972f6Sopenharmony_ci 4472195972f6Sopenharmony_ci * Bugs have been found and corrected in the TCP, UDP, IP, API, and 4473195972f6Sopenharmony_ci the Internet checksum modules. 4474195972f6Sopenharmony_ci 4475195972f6Sopenharmony_ci * Bugs related to porting between a 32-bit and a 16-bit architecture 4476195972f6Sopenharmony_ci have been found and corrected. 4477195972f6Sopenharmony_ci 4478195972f6Sopenharmony_ci * The license has been changed slightly to conform more with the 4479195972f6Sopenharmony_ci original BSD license, including the advertisement clause. 4480195972f6Sopenharmony_ci 4481195972f6Sopenharmony_ci(0.3.1) Changes since version 0.3 4482195972f6Sopenharmony_ci 4483195972f6Sopenharmony_ci * Fix of a fatal bug in the buffer management. Pbufs with allocated 4484195972f6Sopenharmony_ci RAM never returned the RAM when the pbuf was deallocated. 4485195972f6Sopenharmony_ci 4486195972f6Sopenharmony_ci * TCP congestion control, window updates and retransmissions did not 4487195972f6Sopenharmony_ci work correctly. This has now been fixed. 4488195972f6Sopenharmony_ci 4489195972f6Sopenharmony_ci * Bugfixes in the API. 4490195972f6Sopenharmony_ci 4491195972f6Sopenharmony_ci(0.3) Changes since version 0.2 4492195972f6Sopenharmony_ci 4493195972f6Sopenharmony_ci * New and improved directory structure. All include files are now 4494195972f6Sopenharmony_ci kept in a dedicated include/ directory. 4495195972f6Sopenharmony_ci 4496195972f6Sopenharmony_ci * The API now has proper error handling. A new function, 4497195972f6Sopenharmony_ci netconn_err(), now returns an error code for the connection in 4498195972f6Sopenharmony_ci case of errors. 4499195972f6Sopenharmony_ci 4500195972f6Sopenharmony_ci * Improvements in the memory management subsystem. The system now 4501195972f6Sopenharmony_ci keeps a pointer to the lowest free memory block. A new function, 4502195972f6Sopenharmony_ci mem_malloc2() tries to allocate memory once, and if it fails tries 4503195972f6Sopenharmony_ci to free some memory and retry the allocation. 4504195972f6Sopenharmony_ci 4505195972f6Sopenharmony_ci * Much testing has been done with limited memory 4506195972f6Sopenharmony_ci configurations. lwIP now does a better job when overloaded. 4507195972f6Sopenharmony_ci 4508195972f6Sopenharmony_ci * Some bugfixes and improvements to the buffer (pbuf) subsystem. 4509195972f6Sopenharmony_ci 4510195972f6Sopenharmony_ci * Many bugfixes in the TCP code: 4511195972f6Sopenharmony_ci 4512195972f6Sopenharmony_ci - Fixed a bug in tcp_close(). 4513195972f6Sopenharmony_ci 4514195972f6Sopenharmony_ci - The TCP receive window was incorrectly closed when out of 4515195972f6Sopenharmony_ci sequence segments was received. This has been fixed. 4516195972f6Sopenharmony_ci 4517195972f6Sopenharmony_ci - Connections are now timed-out of the FIN-WAIT-2 state. 4518195972f6Sopenharmony_ci 4519195972f6Sopenharmony_ci - The initial congestion window could in some cases be too 4520195972f6Sopenharmony_ci large. This has been fixed. 4521195972f6Sopenharmony_ci 4522195972f6Sopenharmony_ci - The retransmission queue could in some cases be screwed up. This 4523195972f6Sopenharmony_ci has been fixed. 4524195972f6Sopenharmony_ci 4525195972f6Sopenharmony_ci - TCP RST flag now handled correctly. 4526195972f6Sopenharmony_ci 4527195972f6Sopenharmony_ci - Out of sequence data was in some cases never delivered to the 4528195972f6Sopenharmony_ci application. This has been fixed. 4529195972f6Sopenharmony_ci 4530195972f6Sopenharmony_ci - Retransmitted segments now contain the correct acknowledgment 4531195972f6Sopenharmony_ci number and advertised window. 4532195972f6Sopenharmony_ci 4533195972f6Sopenharmony_ci - TCP retransmission timeout backoffs are not correctly computed 4534195972f6Sopenharmony_ci (ala BSD). After a number of retransmissions, TCP now gives up 4535195972f6Sopenharmony_ci the connection. 4536195972f6Sopenharmony_ci 4537195972f6Sopenharmony_ci * TCP connections now are kept on three lists, one for active 4538195972f6Sopenharmony_ci connections, one for listening connections, and one for 4539195972f6Sopenharmony_ci connections that are in TIME-WAIT. This greatly speeds up the fast 4540195972f6Sopenharmony_ci timeout processing for sending delayed ACKs. 4541195972f6Sopenharmony_ci 4542195972f6Sopenharmony_ci * TCP now provides proper feedback to the application when a 4543195972f6Sopenharmony_ci connection has been successfully set up. 4544195972f6Sopenharmony_ci 4545195972f6Sopenharmony_ci * More comments have been added to the code. The code has also been 4546195972f6Sopenharmony_ci somewhat cleaned up. 4547195972f6Sopenharmony_ci 4548195972f6Sopenharmony_ci(0.2) Initial public release. 4549