1*10465441SEvalZeroThis file lists major changes between release versions that require 2*10465441SEvalZeroports or applications to be changed. Use it to update a port or an 3*10465441SEvalZeroapplication written for an older version of lwIP to correctly work 4*10465441SEvalZerowith newer versions. 5*10465441SEvalZero 6*10465441SEvalZero 7*10465441SEvalZero(git master) 8*10465441SEvalZero 9*10465441SEvalZero * [Enter new changes just after this line - do not remove this line] 10*10465441SEvalZero 11*10465441SEvalZero(2.1.0) 12*10465441SEvalZero 13*10465441SEvalZero ++ Application changes: 14*10465441SEvalZero 15*10465441SEvalZero * Use the new altcp API for seamless TLS integration into existing TCP applications (see changelog) 16*10465441SEvalZero * TCP only kills existing connections with a LOWER priority than the one currently being opened. 17*10465441SEvalZero Previous implementations also kill existing connections of the SAME priority. 18*10465441SEvalZero * ip4_route_src: parameter order is reversed: ip4_route_src(dest, src) -> ip4_route_src(src, dest) 19*10465441SEvalZero to make parameter order consistent with other ip*_route*() functions. 20*10465441SEvalZero Same also applies to LWIP_HOOK_IP4_ROUTE_SRC() parameter order. 21*10465441SEvalZero * pbuf API: pbuf->type (an u8_t holding the enum 'pbuf_type') has changed to only hold a 22*10465441SEvalZero description of the pbuf (e.g. data following pbuf struct, data volatile, allocation 23*10465441SEvalZero source heap/pool/etc.). As a consequence, applications can't test pbuf->type any more. 24*10465441SEvalZero Use pbuf_match_type(pbuf, type) instead. 25*10465441SEvalZero * socket API: according to the standard, SO_ERROR now only returns asynchronous errors. 26*10465441SEvalZero All other/normal/synchronous errors are (and always were) available via 'errno'. 27*10465441SEvalZero LWIP_SOCKET_SET_ERRNO has been removed - 'errno' is always set - and required! 28*10465441SEvalZero * httpd LWIP_HTTPD_CGI_SSI: httpd_cgi_handler() has an additional parameter "struct fs_file *" 29*10465441SEvalZero 30*10465441SEvalZero ++ Port changes: 31*10465441SEvalZero 32*10465441SEvalZero * tcpip_trycallback() was renamed to tcpip_callbackmsg_trycallback() to avoid confusion 33*10465441SEvalZero with tcpip_try_callback() 34*10465441SEvalZero * compatibility headers: moved from 'src/include/posix' to 'src/include/compat/posix', 35*10465441SEvalZero 'src/include/compat/stdc' etc. 36*10465441SEvalZero * The IPv6 implementation now supports address scopes. (See LWIP_IPV6_SCOPES documentation 37*10465441SEvalZero and ip6_zone.h for more documentation) 38*10465441SEvalZero * LWIP_HOOK_DHCP_APPEND_OPTIONS() has changed, see description in opt.h (options_out_len is not 39*10465441SEvalZero available in struct dhcp any more) 40*10465441SEvalZero * Added debug helper asserts to ensure threading/locking requirements are met (define 41*10465441SEvalZero LWIP_MARK_TCPIP_THREAD() and LWIP_ASSERT_CORE_LOCKED()). 42*10465441SEvalZero * Added sys_mbox_trypost_fromisr() and tcpip_callbackmsg_trycallback_fromisr() 43*10465441SEvalZero These can be used to post preallocated messages from an ISR to the tcpip thread 44*10465441SEvalZero (e.g. when using FreeRTOS) 45*10465441SEvalZero 46*10465441SEvalZero(2.0.2) 47*10465441SEvalZero 48*10465441SEvalZero ++ Application changes: 49*10465441SEvalZero 50*10465441SEvalZero * slipif: The way to pass serial port number has changed. netif->num is not 51*10465441SEvalZero supported any more, netif->state is interpreted as an u8_t port number now 52*10465441SEvalZero (it's not a POINTER to an u8_t any more!) 53*10465441SEvalZero 54*10465441SEvalZero(2.0.1) 55*10465441SEvalZero 56*10465441SEvalZero ++ Application changes: 57*10465441SEvalZero 58*10465441SEvalZero * UDP does NOT receive multicast traffic from ALL netifs on an UDP PCB bound to a specific 59*10465441SEvalZero netif any more. Users need to bind to IP_ADDR_ANY to receive multicast traffic and compare 60*10465441SEvalZero ip_current_netif() to the desired netif for every packet. 61*10465441SEvalZero See bug #49662 for an explanation. 62*10465441SEvalZero 63*10465441SEvalZero(2.0.0) 64*10465441SEvalZero 65*10465441SEvalZero ++ Application changes: 66*10465441SEvalZero 67*10465441SEvalZero * Changed netif "up" flag handling to be an administrative flag (as opposed to the previous meaning of 68*10465441SEvalZero "ip4-address-valid", a netif will now not be used for transmission if not up) -> even a DHCP netif 69*10465441SEvalZero has to be set "up" before starting the DHCP client 70*10465441SEvalZero * Added IPv6 support (dual-stack or IPv4/IPv6 only) 71*10465441SEvalZero * Changed ip_addr_t to be a union in dual-stack mode (use ip4_addr_t where referring to IPv4 only). 72*10465441SEvalZero * Major rewrite of SNMP (added MIB parser that creates code stubs for custom MIBs); 73*10465441SEvalZero supports SNMPv2c (experimental v3 support) 74*10465441SEvalZero * Moved some core applications from contrib repository to src/apps (and include/lwip/apps) 75*10465441SEvalZero 76*10465441SEvalZero +++ Raw API: 77*10465441SEvalZero * Changed TCP listen backlog: removed tcp_accepted(), added the function pair tcp_backlog_delayed()/ 78*10465441SEvalZero tcp_backlog_accepted() to explicitly delay backlog handling on a connection pcb 79*10465441SEvalZero 80*10465441SEvalZero +++ Socket API: 81*10465441SEvalZero * Added an implementation for posix sendmsg() 82*10465441SEvalZero * Added LWIP_FIONREAD_LINUXMODE that makes ioctl/FIONREAD return the size of the next pending datagram 83*10465441SEvalZero 84*10465441SEvalZero ++ Port changes 85*10465441SEvalZero 86*10465441SEvalZero +++ new files: 87*10465441SEvalZero * MANY new and moved files! 88*10465441SEvalZero * Added src/Filelists.mk for use in Makefile projects 89*10465441SEvalZero * Continued moving stack-internal parts from abc.h to abc_priv.h in sub-folder "priv" 90*10465441SEvalZero to let abc.h only contain the actual application programmer's API 91*10465441SEvalZero 92*10465441SEvalZero +++ sys layer: 93*10465441SEvalZero * Made LWIP_TCPIP_CORE_LOCKING==1 the default as it usually performs better than 94*10465441SEvalZero the traditional message passing (although with LWIP_COMPAT_MUTEX you are still 95*10465441SEvalZero open to priority inversion, so this is not recommended any more) 96*10465441SEvalZero * Added LWIP_NETCONN_SEM_PER_THREAD to use one "op_completed" semaphore per thread 97*10465441SEvalZero instead of using one per netconn (these semaphores are used even with core locking 98*10465441SEvalZero enabled as some longer lasting functions like big writes still need to delay) 99*10465441SEvalZero * Added generalized abstraction for itoa(), strnicmp(), stricmp() and strnstr() 100*10465441SEvalZero in def.h (to be overridden in cc.h) instead of config 101*10465441SEvalZero options for netbiosns, httpd, dns, etc. ... 102*10465441SEvalZero * New abstraction for hton* and ntoh* functions in def.h. 103*10465441SEvalZero To override them, use the following in cc.h: 104*10465441SEvalZero #define lwip_htons(x) <your_htons> 105*10465441SEvalZero #define lwip_htonl(x) <your_htonl> 106*10465441SEvalZero 107*10465441SEvalZero +++ new options: 108*10465441SEvalZero * TODO 109*10465441SEvalZero 110*10465441SEvalZero +++ new pools: 111*10465441SEvalZero * Added LWIP_MEMPOOL_* (declare/init/alloc/free) to declare private memp pools 112*10465441SEvalZero that share memp.c code but do not have to be made global via lwippools.h 113*10465441SEvalZero * Added pools for IPv6, MPU_COMPATIBLE, dns-api, netif-api, etc. 114*10465441SEvalZero * added hook LWIP_HOOK_MEMP_AVAILABLE() to get informed when a memp pool was empty and an item 115*10465441SEvalZero is now available 116*10465441SEvalZero 117*10465441SEvalZero * Signature of LWIP_HOOK_VLAN_SET macro was changed 118*10465441SEvalZero 119*10465441SEvalZero * LWIP_DECLARE_MEMORY_ALIGNED() may be used to declare aligned memory buffers (mem/memp) 120*10465441SEvalZero or to move buffers to dedicated memory using compiler attributes 121*10465441SEvalZero 122*10465441SEvalZero * Standard C headers are used to define sized types and printf formatters 123*10465441SEvalZero (disable by setting LWIP_NO_STDINT_H=1 or LWIP_NO_INTTYPES_H=1 if your compiler 124*10465441SEvalZero does not support these) 125*10465441SEvalZero 126*10465441SEvalZero 127*10465441SEvalZero ++ Major bugfixes/improvements 128*10465441SEvalZero 129*10465441SEvalZero * Added IPv6 support (dual-stack or IPv4/IPv6 only) 130*10465441SEvalZero * Major rewrite of PPP (incl. keep-up with apache pppd) 131*10465441SEvalZero see doc/ppp.txt for an upgrading how-to 132*10465441SEvalZero * Major rewrite of SNMP (incl. MIB parser) 133*10465441SEvalZero * Fixed timing issues that might have lead to losing a DHCP lease 134*10465441SEvalZero * Made rx processing path more robust against crafted errors 135*10465441SEvalZero * TCP window scaling support 136*10465441SEvalZero * modification of api modules to support FreeRTOS-MPU (don't pass stack-pointers to other threads) 137*10465441SEvalZero * made DNS client more robust 138*10465441SEvalZero * support PBUF_REF for RX packets 139*10465441SEvalZero * LWIP_NETCONN_FULLDUPLEX allows netconn/sockets to be used for reading/writing from separate 140*10465441SEvalZero threads each (needs LWIP_NETCONN_SEM_PER_THREAD) 141*10465441SEvalZero * Moved and reordered stats (mainly memp/mib2) 142*10465441SEvalZero 143*10465441SEvalZero(1.4.0) 144*10465441SEvalZero 145*10465441SEvalZero ++ Application changes: 146*10465441SEvalZero 147*10465441SEvalZero * Replaced struct ip_addr by typedef ip_addr_t (struct ip_addr is kept for 148*10465441SEvalZero compatibility to old applications, but will be removed in the future). 149*10465441SEvalZero 150*10465441SEvalZero * Renamed mem_realloc() to mem_trim() to prevent confusion with realloc() 151*10465441SEvalZero 152*10465441SEvalZero +++ Raw API: 153*10465441SEvalZero * Changed the semantics of tcp_close() (since it was rather a 154*10465441SEvalZero shutdown before): Now the application does *NOT* get any calls to the recv 155*10465441SEvalZero callback (aside from NULL/closed) after calling tcp_close() 156*10465441SEvalZero 157*10465441SEvalZero * When calling tcp_abort() from a raw API TCP callback function, 158*10465441SEvalZero make sure you return ERR_ABRT to prevent accessing unallocated memory. 159*10465441SEvalZero (ERR_ABRT now means the applicaiton has called tcp_abort!) 160*10465441SEvalZero 161*10465441SEvalZero +++ Netconn API: 162*10465441SEvalZero * Changed netconn_receive() and netconn_accept() to return 163*10465441SEvalZero err_t, not a pointer to new data/netconn. 164*10465441SEvalZero 165*10465441SEvalZero +++ Socket API: 166*10465441SEvalZero * LWIP_SO_RCVTIMEO: when accept() or recv() time out, they 167*10465441SEvalZero now set errno to EWOULDBLOCK/EAGAIN, not ETIMEDOUT. 168*10465441SEvalZero 169*10465441SEvalZero * Added a minimal version of posix fctl() to have a 170*10465441SEvalZero standardised way to set O_NONBLOCK for nonblocking sockets. 171*10465441SEvalZero 172*10465441SEvalZero +++ all APIs: 173*10465441SEvalZero * correctly implemented SO(F)_REUSEADDR 174*10465441SEvalZero 175*10465441SEvalZero ++ Port changes 176*10465441SEvalZero 177*10465441SEvalZero +++ new files: 178*10465441SEvalZero 179*10465441SEvalZero * Added 4 new files: def.c, timers.c, timers.h, tcp_impl.h: 180*10465441SEvalZero 181*10465441SEvalZero * Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains 182*10465441SEvalZero the actual application programmer's API 183*10465441SEvalZero 184*10465441SEvalZero * Separated timer implementation from sys.h/.c, moved to timers.h/.c; 185*10465441SEvalZero Added timer implementation for NO_SYS==1, set NO_SYS_NO_TIMERS==1 if you 186*10465441SEvalZero still want to use your own timer implementation for NO_SYS==0 (as before). 187*10465441SEvalZero 188*10465441SEvalZero +++ sys layer: 189*10465441SEvalZero 190*10465441SEvalZero * Converted mbox- and semaphore-functions to take pointers to sys_mbox_t/ 191*10465441SEvalZero sys_sem_t; 192*10465441SEvalZero 193*10465441SEvalZero * Converted sys_mbox_new/sys_sem_new to take pointers and return err_t; 194*10465441SEvalZero 195*10465441SEvalZero * Added Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use 196*10465441SEvalZero binary semaphores instead of mutexes - as before) 197*10465441SEvalZero 198*10465441SEvalZero +++ new options: 199*10465441SEvalZero 200*10465441SEvalZero * Don't waste memory when chaining segments, added option TCP_OVERSIZE to 201*10465441SEvalZero prevent creating many small pbufs when calling tcp_write with many small 202*10465441SEvalZero blocks of data. Instead, pbufs are allocated larger than needed and the 203*10465441SEvalZero space is used for later calls to tcp_write. 204*10465441SEvalZero 205*10465441SEvalZero * Added LWIP_NETIF_TX_SINGLE_PBUF to always copy to try to create single pbufs 206*10465441SEvalZero in tcp_write/udp_send. 207*10465441SEvalZero 208*10465441SEvalZero * Added an additional option LWIP_ETHERNET to support ethernet without ARP 209*10465441SEvalZero (necessary for pure PPPoE) 210*10465441SEvalZero 211*10465441SEvalZero * Add MEMP_SEPARATE_POOLS to place memory pools in separate arrays. This may 212*10465441SEvalZero be used to place these pools into user-defined memory by using external 213*10465441SEvalZero declaration. 214*10465441SEvalZero 215*10465441SEvalZero * Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT 216*10465441SEvalZero 217*10465441SEvalZero +++ new pools: 218*10465441SEvalZero 219*10465441SEvalZero * Netdb uses a memp pool for allocating memory when getaddrinfo() is called, 220*10465441SEvalZero so MEMP_NUM_NETDB has to be set accordingly. 221*10465441SEvalZero 222*10465441SEvalZero * DNS_LOCAL_HOSTLIST_IS_DYNAMIC uses a memp pool instead of the heap, so 223*10465441SEvalZero MEMP_NUM_LOCALHOSTLIST has to be set accordingly. 224*10465441SEvalZero 225*10465441SEvalZero * Snmp-agent uses a memp pools instead of the heap, so MEMP_NUM_SNMP_* have 226*10465441SEvalZero to be set accordingly. 227*10465441SEvalZero 228*10465441SEvalZero * PPPoE uses a MEMP pool instead of the heap, so MEMP_NUM_PPPOE_INTERFACES 229*10465441SEvalZero has to be set accordingly 230*10465441SEvalZero 231*10465441SEvalZero * Integrated loopif into netif.c - loopif does not have to be created by the 232*10465441SEvalZero port any more, just define LWIP_HAVE_LOOPIF to 1. 233*10465441SEvalZero 234*10465441SEvalZero * Added define LWIP_RAND() for lwip-wide randomization (needs to be defined 235*10465441SEvalZero in cc.h, e.g. used by igmp) 236*10465441SEvalZero 237*10465441SEvalZero * Added printf-formatter X8_F to printf u8_t as hex 238*10465441SEvalZero 239*10465441SEvalZero * The heap now may be moved to user-defined memory by defining 240*10465441SEvalZero LWIP_RAM_HEAP_POINTER as a void pointer to that memory's address 241*10465441SEvalZero 242*10465441SEvalZero * added autoip_set_struct() and dhcp_set_struct() to let autoip and dhcp work 243*10465441SEvalZero with user-allocated structs instead of calling mem_malloc 244*10465441SEvalZero 245*10465441SEvalZero * Added const char* name to mem- and memp-stats for easier debugging. 246*10465441SEvalZero 247*10465441SEvalZero * Calculate the TCP/UDP checksum while copying to only fetch data once: 248*10465441SEvalZero Define LWIP_CHKSUM_COPY to a memcpy-like function that returns the checksum 249*10465441SEvalZero 250*10465441SEvalZero * Added SO_REUSE_RXTOALL to pass received UDP broadcast/multicast packets to 251*10465441SEvalZero more than one pcb. 252*10465441SEvalZero 253*10465441SEvalZero * Changed the semantics of ARP_QUEUEING==0: ARP_QUEUEING now cannot be turned 254*10465441SEvalZero off any more, if this is set to 0, only one packet (the most recent one) is 255*10465441SEvalZero queued (like demanded by RFC 1122). 256*10465441SEvalZero 257*10465441SEvalZero 258*10465441SEvalZero ++ Major bugfixes/improvements 259*10465441SEvalZero 260*10465441SEvalZero * Implemented tcp_shutdown() to only shut down one end of a connection 261*10465441SEvalZero * Implemented shutdown() at socket- and netconn-level 262*10465441SEvalZero * Added errorset support to select() + improved select speed overhead 263*10465441SEvalZero * Merged pppd to v2.3.11 (including some backported bugfixes from 2.4.x) 264*10465441SEvalZero * Added timer implementation for NO_SYS==1 (may be disabled with NO_SYS_NO_TIMERS==1 265*10465441SEvalZero * Use macros defined in ip_addr.h to work with IP addresses 266*10465441SEvalZero * Implemented many nonblocking socket/netconn functions 267*10465441SEvalZero * Fixed ARP input processing: only add a new entry if a request was directed as us 268*10465441SEvalZero * mem_realloc() to mem_trim() to prevent confusion with realloc() 269*10465441SEvalZero * Some improvements for AutoIP (don't route/forward link-local addresses, don't break 270*10465441SEvalZero existing connections when assigning a routable address) 271*10465441SEvalZero * Correctly handle remote side overrunning our rcv_wnd in ooseq case 272*10465441SEvalZero * Removed packing from ip_addr_t, the packed version is now only used in protocol headers 273*10465441SEvalZero * Corrected PBUF_POOL_BUFSIZE for ports where ETH_PAD_SIZE > 0 274*10465441SEvalZero * Added support for static ARP table entries 275*10465441SEvalZero 276*10465441SEvalZero(STABLE-1.3.2) 277*10465441SEvalZero 278*10465441SEvalZero * initial version of this file 279