UPGRADING 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. This file lists major changes between release versions that require
  2. ports or applications to be changed. Use it to update a port or an
  3. application written for an older version of lwIP to correctly work
  4. with newer versions.
  5. (git master)
  6. * [Enter new changes just after this line - do not remove this line]
  7. (2.0.1)
  8. ++ Application changes:
  9. * UDP does NOT receive multicast traffic from ALL netifs on an UDP PCB bound to a specific
  10. netif any more. Users need to bind to IP_ADDR_ANY to receive multicast traffic and compare
  11. ip_current_netif() to the desired netif for every packet.
  12. See bug #49662 for an explanation.
  13. (2.0.0)
  14. ++ Application changes:
  15. * Changed netif "up" flag handling to be an administrative flag (as opposed to the previous meaning of
  16. "ip4-address-valid", a netif will now not be used for transmission if not up) -> even a DHCP netif
  17. has to be set "up" before starting the DHCP client
  18. * Added IPv6 support (dual-stack or IPv4/IPv6 only)
  19. * Changed ip_addr_t to be a union in dual-stack mode (use ip4_addr_t where referring to IPv4 only).
  20. * Major rewrite of SNMP (added MIB parser that creates code stubs for custom MIBs);
  21. supports SNMPv2c (experimental v3 support)
  22. * Moved some core applications from contrib repository to src/apps (and include/lwip/apps)
  23. +++ Raw API:
  24. * Changed TCP listen backlog: removed tcp_accepted(), added the function pair tcp_backlog_delayed()/
  25. tcp_backlog_accepted() to explicitly delay backlog handling on a connection pcb
  26. +++ Socket API:
  27. * Added an implementation for posix sendmsg()
  28. * Added LWIP_FIONREAD_LINUXMODE that makes ioctl/FIONREAD return the size of the next pending datagram
  29. ++ Port changes
  30. +++ new files:
  31. * MANY new and moved files!
  32. * Added src/Filelists.mk for use in Makefile projects
  33. * Continued moving stack-internal parts from abc.h to abc_priv.h in sub-folder "priv"
  34. to let abc.h only contain the actual application programmer's API
  35. +++ sys layer:
  36. * Made LWIP_TCPIP_CORE_LOCKING==1 the default as it usually performs better than
  37. the traditional message passing (although with LWIP_COMPAT_MUTEX you are still
  38. open to priority inversion, so this is not recommended any more)
  39. * Added LWIP_NETCONN_SEM_PER_THREAD to use one "op_completed" semaphore per thread
  40. instead of using one per netconn (these semaphores are used even with core locking
  41. enabled as some longer lasting functions like big writes still need to delay)
  42. * Added generalized abstraction for itoa(), strnicmp(), stricmp() and strnstr()
  43. in def.h (to be overridden in cc.h) instead of config
  44. options for netbiosns, httpd, dns, etc. ...
  45. * New abstraction for hton* and ntoh* functions in def.h.
  46. To override them, use the following in cc.h:
  47. #define lwip_htons(x) <your_htons>
  48. #define lwip_htonl(x) <your_htonl>
  49. +++ new options:
  50. * TODO
  51. +++ new pools:
  52. * Added LWIP_MEMPOOL_* (declare/init/alloc/free) to declare private memp pools
  53. that share memp.c code but do not have to be made global via lwippools.h
  54. * Added pools for IPv6, MPU_COMPATIBLE, dns-api, netif-api, etc.
  55. * added hook LWIP_HOOK_MEMP_AVAILABLE() to get informed when a memp pool was empty and an item
  56. is now available
  57. * Signature of LWIP_HOOK_VLAN_SET macro was changed
  58. * LWIP_DECLARE_MEMORY_ALIGNED() may be used to declare aligned memory buffers (mem/memp)
  59. or to move buffers to dedicated memory using compiler attributes
  60. * Standard C headers are used to define sized types and printf formatters
  61. (disable by setting LWIP_NO_STDINT_H=1 or LWIP_NO_INTTYPES_H=1 if your compiler
  62. does not support these)
  63. ++ Major bugfixes/improvements
  64. * Added IPv6 support (dual-stack or IPv4/IPv6 only)
  65. * Major rewrite of PPP (incl. keep-up with apache pppd)
  66. see doc/ppp.txt for an upgrading how-to
  67. * Major rewrite of SNMP (incl. MIB parser)
  68. * Fixed timing issues that might have lead to losing a DHCP lease
  69. * Made rx processing path more robust against crafted errors
  70. * TCP window scaling support
  71. * modification of api modules to support FreeRTOS-MPU (don't pass stack-pointers to other threads)
  72. * made DNS client more robust
  73. * support PBUF_REF for RX packets
  74. * LWIP_NETCONN_FULLDUPLEX allows netconn/sockets to be used for reading/writing from separate
  75. threads each (needs LWIP_NETCONN_SEM_PER_THREAD)
  76. * Moved and reordered stats (mainly memp/mib2)
  77. (1.4.0)
  78. ++ Application changes:
  79. * Replaced struct ip_addr by typedef ip_addr_t (struct ip_addr is kept for
  80. compatibility to old applications, but will be removed in the future).
  81. * Renamed mem_realloc() to mem_trim() to prevent confusion with realloc()
  82. +++ Raw API:
  83. * Changed the semantics of tcp_close() (since it was rather a
  84. shutdown before): Now the application does *NOT* get any calls to the recv
  85. callback (aside from NULL/closed) after calling tcp_close()
  86. * When calling tcp_abort() from a raw API TCP callback function,
  87. make sure you return ERR_ABRT to prevent accessing unallocated memory.
  88. (ERR_ABRT now means the applicaiton has called tcp_abort!)
  89. +++ Netconn API:
  90. * Changed netconn_receive() and netconn_accept() to return
  91. err_t, not a pointer to new data/netconn.
  92. +++ Socket API:
  93. * LWIP_SO_RCVTIMEO: when accept() or recv() time out, they
  94. now set errno to EWOULDBLOCK/EAGAIN, not ETIMEDOUT.
  95. * Added a minimal version of posix fctl() to have a
  96. standardised way to set O_NONBLOCK for nonblocking sockets.
  97. +++ all APIs:
  98. * correctly implemented SO(F)_REUSEADDR
  99. ++ Port changes
  100. +++ new files:
  101. * Added 4 new files: def.c, timers.c, timers.h, tcp_impl.h:
  102. * Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains
  103. the actual application programmer's API
  104. * Separated timer implementation from sys.h/.c, moved to timers.h/.c;
  105. Added timer implementation for NO_SYS==1, set NO_SYS_NO_TIMERS==1 if you
  106. still want to use your own timer implementation for NO_SYS==0 (as before).
  107. +++ sys layer:
  108. * Converted mbox- and semaphore-functions to take pointers to sys_mbox_t/
  109. sys_sem_t;
  110. * Converted sys_mbox_new/sys_sem_new to take pointers and return err_t;
  111. * Added Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use
  112. binary semaphores instead of mutexes - as before)
  113. +++ new options:
  114. * Don't waste memory when chaining segments, added option TCP_OVERSIZE to
  115. prevent creating many small pbufs when calling tcp_write with many small
  116. blocks of data. Instead, pbufs are allocated larger than needed and the
  117. space is used for later calls to tcp_write.
  118. * Added LWIP_NETIF_TX_SINGLE_PBUF to always copy to try to create single pbufs
  119. in tcp_write/udp_send.
  120. * Added an additional option LWIP_ETHERNET to support ethernet without ARP
  121. (necessary for pure PPPoE)
  122. * Add MEMP_SEPARATE_POOLS to place memory pools in separate arrays. This may
  123. be used to place these pools into user-defined memory by using external
  124. declaration.
  125. * Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT
  126. +++ new pools:
  127. * Netdb uses a memp pool for allocating memory when getaddrinfo() is called,
  128. so MEMP_NUM_NETDB has to be set accordingly.
  129. * DNS_LOCAL_HOSTLIST_IS_DYNAMIC uses a memp pool instead of the heap, so
  130. MEMP_NUM_LOCALHOSTLIST has to be set accordingly.
  131. * Snmp-agent uses a memp pools instead of the heap, so MEMP_NUM_SNMP_* have
  132. to be set accordingly.
  133. * PPPoE uses a MEMP pool instead of the heap, so MEMP_NUM_PPPOE_INTERFACES
  134. has to be set accordingly
  135. * Integrated loopif into netif.c - loopif does not have to be created by the
  136. port any more, just define LWIP_HAVE_LOOPIF to 1.
  137. * Added define LWIP_RAND() for lwip-wide randomization (needs to be defined
  138. in cc.h, e.g. used by igmp)
  139. * Added printf-formatter X8_F to printf u8_t as hex
  140. * The heap now may be moved to user-defined memory by defining
  141. LWIP_RAM_HEAP_POINTER as a void pointer to that memory's address
  142. * added autoip_set_struct() and dhcp_set_struct() to let autoip and dhcp work
  143. with user-allocated structs instead of calling mem_malloc
  144. * Added const char* name to mem- and memp-stats for easier debugging.
  145. * Calculate the TCP/UDP checksum while copying to only fetch data once:
  146. Define LWIP_CHKSUM_COPY to a memcpy-like function that returns the checksum
  147. * Added SO_REUSE_RXTOALL to pass received UDP broadcast/multicast packets to
  148. more than one pcb.
  149. * Changed the semantics of ARP_QUEUEING==0: ARP_QUEUEING now cannot be turned
  150. off any more, if this is set to 0, only one packet (the most recent one) is
  151. queued (like demanded by RFC 1122).
  152. ++ Major bugfixes/improvements
  153. * Implemented tcp_shutdown() to only shut down one end of a connection
  154. * Implemented shutdown() at socket- and netconn-level
  155. * Added errorset support to select() + improved select speed overhead
  156. * Merged pppd to v2.3.11 (including some backported bugfixes from 2.4.x)
  157. * Added timer implementation for NO_SYS==1 (may be disabled with NO_SYS_NO_TIMERS==1
  158. * Use macros defined in ip_addr.h to work with IP addresses
  159. * Implemented many nonblocking socket/netconn functions
  160. * Fixed ARP input processing: only add a new entry if a request was directed as us
  161. * mem_realloc() to mem_trim() to prevent confusion with realloc()
  162. * Some improvements for AutoIP (don't route/forward link-local addresses, don't break
  163. existing connections when assigning a routable address)
  164. * Correctly handle remote side overrunning our rcv_wnd in ooseq case
  165. * Removed packing from ip_addr_t, the packed version is now only used in protocol headers
  166. * Corrected PBUF_POOL_BUFSIZE for ports where ETH_PAD_SIZE > 0
  167. * Added support for static ARP table entries
  168. (STABLE-1.3.2)
  169. * initial version of this file