UPGRADING 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. (CVS HEAD)
  6. * [Enter new changes just after this line - do not remove this line]
  7. ++ Application changes:
  8. * Replaced struct ip_addr by typedef ip_addr_t (struct ip_addr is kept for
  9. compatibility to old applications, but will be removed in the future).
  10. * Renamed mem_realloc() to mem_trim() to prevent confusion with realloc()
  11. +++ Raw API:
  12. * Changed the semantics of tcp_close() (since it was rather a
  13. shutdown before): Now the application does *NOT* get any calls to the recv
  14. callback (aside from NULL/closed) after calling tcp_close()
  15. * When calling tcp_abort() from a raw API TCP callback function,
  16. make sure you return ERR_ABRT to prevent accessing unallocated memory.
  17. (ERR_ABRT now means the applicaiton has called tcp_abort!)
  18. +++ Netconn API:
  19. * Changed netconn_receive() and netconn_accept() to return
  20. err_t, not a pointer to new data/netconn.
  21. +++ Socket API:
  22. * LWIP_SO_RCVTIMEO: when accept() or recv() time out, they
  23. now set errno to EWOULDBLOCK/EAGAIN, not ETIMEDOUT.
  24. * Added a minimal version of posix fctl() to have a
  25. standardised way to set O_NONBLOCK for nonblocking sockets.
  26. +++ all APIs:
  27. * correctly implemented SO(F)_REUSEADDR
  28. ++ Port changes
  29. +++ new files:
  30. * Added 4 new files: def.c, timers.c, timers.h, tcp_impl.h:
  31. * Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains
  32. the actual application programmer's API
  33. * Separated timer implementation from sys.h/.c, moved to timers.h/.c;
  34. Added timer implementation for NO_SYS==1, set NO_SYS_NO_TIMERS==1 if you
  35. still want to use your own timer implementation for NO_SYS==0 (as before).
  36. +++ sys layer:
  37. * Converted mbox- and semaphore-functions to take pointers to sys_mbox_t/
  38. sys_sem_t;
  39. * Converted sys_mbox_new/sys_sem_new to take pointers and return err_t;
  40. * Added Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use
  41. binary semaphores instead of mutexes - as before)
  42. +++ new options:
  43. * Don't waste memory when chaining segments, added option TCP_OVERSIZE to
  44. prevent creating many small pbufs when calling tcp_write with many small
  45. blocks of data. Instead, pbufs are allocated larger than needed and the
  46. space is used for later calls to tcp_write.
  47. * Added LWIP_NETIF_TX_SINGLE_PBUF to always copy to try to create single pbufs
  48. in tcp_write/udp_send.
  49. * Added an additional option LWIP_ETHERNET to support ethernet without ARP
  50. (necessary for pure PPPoE)
  51. * Add MEMP_SEPARATE_POOLS to place memory pools in separate arrays. This may
  52. be used to place these pools into user-defined memory by using external
  53. declaration.
  54. * Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT
  55. +++ new pools:
  56. * Netdb uses a memp pool for allocating memory when getaddrinfo() is called,
  57. so MEMP_NUM_NETDB has to be set accordingly.
  58. * DNS_LOCAL_HOSTLIST_IS_DYNAMIC uses a memp pool instead of the heap, so
  59. MEMP_NUM_LOCALHOSTLIST has to be set accordingly.
  60. * Snmp-agent uses a memp pools instead of the heap, so MEMP_NUM_SNMP_* have
  61. to be set accordingly.
  62. * PPPoE uses a MEMP pool instead of the heap, so MEMP_NUM_PPPOE_INTERFACES
  63. has to be set accordingly
  64. * Integrated loopif into netif.c - loopif does not have to be created by the
  65. port any more, just define LWIP_HAVE_LOOPIF to 1.
  66. * Added define LWIP_RAND() for lwip-wide randomization (needs to be defined
  67. in cc.h, e.g. used by igmp)
  68. * Added printf-formatter X8_F to printf u8_t as hex
  69. * The heap now may be moved to user-defined memory by defining
  70. LWIP_RAM_HEAP_POINTER as a void pointer to that memory's address
  71. * added autoip_set_struct() and dhcp_set_struct() to let autoip and dhcp work
  72. with user-allocated structs instead of calling mem_malloc
  73. * Added const char* name to mem- and memp-stats for easier debugging.
  74. * Calculate the TCP/UDP checksum while copying to only fetch data once:
  75. Define LWIP_CHKSUM_COPY to a memcpy-like function that returns the checksum
  76. * Added SO_REUSE_RXTOALL to pass received UDP broadcast/multicast packets to
  77. more than one pcb.
  78. ++ Major bugfixes/improvements
  79. * Implemented tcp_shutdown() to only shut down one end of a connection
  80. * Implemented shutdown() at socket- and netconn-level
  81. * Added errorset support to select() + improved select speed overhead
  82. * Merged pppd to v2.3.11 (including some backported bugfixes from 2.4.x)
  83. * Added timer implementation for NO_SYS==1 (may be disabled with NO_SYS_NO_TIMERS==1
  84. * Use macros defined in ip_addr.h to work with IP addresses
  85. * Implemented many nonblocking socket/netconn functions
  86. * Fixed ARP input processing: only add a new entry if a request was directed as us
  87. * mem_realloc() to mem_trim() to prevent confusion with realloc()
  88. * Some improvements for AutoIP (don't route/forward link-local addresses, don't break
  89. existing connections when assigning a routable address)
  90. * Correctly handle remote side overrunning our rcv_wnd in ooseq case
  91. * Removed packing from ip_addr_t, the packed version is now only used in protocol headers
  92. * Corrected PBUF_POOL_BUFSIZE for ports where ETH_PAD_SIZE > 0
  93. * Added support for static ARP table entries
  94. (STABLE-1.3.2)
  95. * initial version of this file