硬汉嵌入式论坛

 找回密码
 立即注册
查看: 5783|回复: 7
收起左侧

[以太网] 在lwip官网找资料,上来发现最新的2.1.2版本有4个TCP bug要修改。。。

[复制链接]

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106833
QQ
发表于 2019-12-10 10:28:14 | 显示全部楼层 |阅读模式
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106833
QQ
 楼主| 发表于 2019-12-10 10:37:55 | 显示全部楼层
我眼花了,是2.1.1和2.1.0用户要做的升级

(STABLE-2.1.2):

  ++ Bugfixes:

  2018-11-21: Jens Nielsen
  * netbiosns.c: fix expecting too large packet (bug #55069)

  2018-11-19: Dirk Ziegelmeier
  * smtp.c: fix compiling with strict C compatibility because of strnlen (bug #55034)

  2018-11-12: Simon Goldschmidt
  * tcp.c: fix overflow check in tcp_recved triggering invalid assertion (bug #55015)

  2018-11-12: Simon Goldschmidt
  * tcp.c: fix a bug in sending RST segments (sent from port 0)


回复

使用道具 举报

3

主题

1223

回帖

1232

积分

至尊会员

积分
1232
发表于 2019-12-10 14:15:56 | 显示全部楼层
硬汉大哥,保重身体哈!
回复

使用道具 举报

20

主题

249

回帖

309

积分

高级会员

积分
309
发表于 2019-12-10 15:31:39 | 显示全部楼层
是的,上面的发布说明中说2.1.0和2.1.1的用户强烈建议升级到2.1.2

现在2.1.2发布已经满1年的,应该没啥大的问题。。。但是去年我使用时发现2.1.2的tcp client偶尔掉线,没有找原因又用原来的2.0.3了
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106833
QQ
 楼主| 发表于 2019-12-10 16:23:40 | 显示全部楼层
小狐狸 发表于 2019-12-10 15:31
是的,上面的发布说明中说2.1.0和2.1.1的用户强烈建议升级到2.1.2

现在2.1.2发布已经满1年的,应该没啥 ...

2.0.3的话,那还是用最新的好些,新发布的2.0版本bug有点多,看他们的更新记录,更正了好些东西。
回复

使用道具 举报

20

主题

249

回帖

309

积分

高级会员

积分
309
发表于 2019-12-10 20:37:51 | 显示全部楼层
eric2013 发表于 2019-12-10 16:23
2.0.3的话,那还是用最新的好些,新发布的2.0版本bug有点多,看他们的更新记录,更正了好些东西。

嗯,上新版本好
回复

使用道具 举报

18

主题

321

回帖

375

积分

高级会员

积分
375
发表于 2019-12-11 08:58:39 | 显示全部楼层
eric2013 发表于 2019-12-10 16:23
2.0.3的话,那还是用最新的好些,新发布的2.0版本bug有点多,看他们的更新记录,更正了好些东西。

用modbus tcp的时候,2.0.2没事。2.1.2多次拔插后内存就炸了。
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106833
QQ
 楼主| 发表于 2019-12-11 09:40:33 | 显示全部楼层
王海靖 发表于 2019-12-11 08:58
用modbus tcp的时候,2.0.2没事。2.1.2多次拔插后内存就炸了。

2.0.2 到 2.1.2修改了太多bug,还是2.1.2放心点

  1. (STABLE-2.1.2):

  2.   ++ Bugfixes:

  3.   2018-11-21: Jens Nielsen
  4.   * netbiosns.c: fix expecting too large packet (bug #55069)

  5.   2018-11-19: Dirk Ziegelmeier
  6.   * smtp.c: fix compiling with strict C compatibility because of strnlen (bug #55034)

  7.   2018-11-12: Simon Goldschmidt
  8.   * tcp.c: fix overflow check in tcp_recved triggering invalid assertion (bug #55015)

  9.   2018-11-12: Simon Goldschmidt
  10.   * tcp.c: fix a bug in sending RST segments (sent from port 0)

  11. (STABLE-2.1.1):

  12.   ++ Bugfixes:

  13.   2018-11-01: Joan Lledó
  14.   * sockets.c: fix bad assertion in lwip_poll_dec_sockets_used() (bug #54933)

  15.   2018-11-01: Dirk Ziegelmeier
  16.   * ip4.c: don't send 127.* to default netif (bug #54670)

  17.   2018-10-23: David Girault
  18.   * altcp_tls_mbedtls.c: fix use-after free (bug #54774)

  19.   2018-10-23: Ognjen Bjelica, Dirk Ziegelmeier
  20.   * snmp_scalar.c: Avoid NULL pointer dereference (bug #54886)

  21.   2018-10-23: Simon Goldschmidt
  22.   * Fix missing standard includes in multiple files

  23.   2018-10-17: Ivan Warren
  24.   * def.h: fix casting htonX and ntohX to u16_t (bug #54850)

  25.   2018-10-12: Simon Goldschmidt
  26.   * Revert "tcp_abandon: no need to buffer pcb->local_port" (fix that source port was 0 for RST
  27.     called when aborting a connection)

  28.   2018-10-11: Jonas Rabenstein
  29.   * tcp.c: tcp_recved: check for overflow and warn about too big values (patch #9699)              

  30.   2018-10-06: Joan Lledó
  31.   * sockets.c: alloc_socket(): Check for LWIP_SOCKET_POLL when setting select-
  32.     related variables (patch #9696)

  33.   2018-10-04: Spencer
  34.   * tcp.c: Update prev pointer when skipping entries in tcp_slowtmr (patch #9694)

  35.   2018-09-27: Martine Lenders
  36.   * lowpan6.c: Fix IEEE 802.15.4 address setting (bug #54749)

  37. (STABLE-2.1.0):

  38.   ++ New features:

  39.   2018-06-17: Simon Goldschmidt
  40.   * lwiperf: implemented iPerf client mode

  41.   2018-04-23: Dirk Ziegelmeier
  42.   * added cmake build files

  43.   2018-03-04: Ray Abram
  44.   * netbios responder: respond to '*' queries

  45.   2018-02-23: Benjamin Aigner
  46.   * 6lowpan: add 6lowpan-over-BLE netif (based on existing 6lowpan netif)

  47.   2018-02-22: Simon Goldschmidt
  48.   * ipv6: add support for stateless DHCPv6 (to get DNS servers in SLAAC nets)

  49.   2018-02-16: Simon Goldschmidt
  50.   * add raw API http(s) client (with proxy support)

  51.   2018-02-01: Simon Goldschmidt
  52.   * tcp: add hooks to implement additional socket options

  53.   2018-02-01: Simon Goldschmidt
  54.   * tcp: add hooks to implement tcp md5 signatures or similar (see contrib/addons for an example)

  55.   2018-01-05: Simon Goldschmidt
  56.   * Added sys_mbox_trypost_fromisr() and tcpip_callbackmsg_trycallback_fromisr()
  57.     These can be used to post preallocated messages from an ISR to the tcpip thread
  58.     (e.g. when using FreeRTOS)

  59.   2018-01-02: Dirk Ziegelmeier
  60.   * task #14780: Add debug helper asserts to ensure threading/locking requirements are met

  61.   2017-11-21: Simon Goldschmidt
  62.   * task #14600: tcp_alloc(): kill TF_CLOSEPEND connections before other ESTABLISHED

  63.   2017-11-21: Simon Goldschmidt
  64.   * makefsdata: added option "-ssi:<filename>" to control SSI tag checking/insertion
  65.     through a list of filenames, not by checking the file extension at runtime

  66.   2017-11-20: Joel Cunningham
  67.   * netconn: add LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE to use external DNS resolver (patch #9427)

  68.   2017-11-14: Joel Cunningham
  69.   * netifapi: Add thread safe ARP cache APIs (task #14724)

  70.   2017-11-06: Axel Lin
  71.   * TCP: kill existing connections with a LOWER priority than the one currently being opened.
  72.     Previous implementations also kill existing connections of the SAME priority.

  73.   2017-09-21: Kalle Olavi Niemitalo
  74.   * sockets: add poll() implementation (patch #9450)

  75.   2017-09-10: Joel Cunningham
  76.   * sockets: add readv() implementation (task #14610)

  77.   2017-08-04: Simon Goldschmidt
  78.   * Clean up DHCP a bit: no need keep msg_out and msg_in as members in struct
  79.     dhcp - they are used in a call stack only (p_out and options_out_len as well)

  80.   2017-08-04: Simon Goldschmidt
  81.   * pbuf: split pbuf_header(s16_t) into pbuf_add_header(size_t) and
  82.     pbuf_remove_header(size_t)

  83.   2017-07-20: Douglas
  84.   * sys: deprecate sys_arch_sem_wait and sys_arch_mbox_fetch returning the
  85.     time waited rather they are now defined to return != SYS_ARCH_TIMEOUT
  86.     on success.

  87.   2017-07-03: Jakub Schmidtke
  88.   * tcp: added support for sending TCP SACKs

  89.   2017-06-20: Joel Cunningham
  90.   * netconn/netdb: added core locking support to netconn_gethostbyname (task #14523)

  91.   2017-04-25: Simon Goldschmidt
  92.   * dhcp: added two hooks for adding and parsing user defined DHCP options

  93.   2017-04-25: Joel Cunningham
  94.   * sockets: added recvmsg for UDP (together with CMSG and IP_PKTINFO) (task #14247)

  95.   2017-04-20: Joel Cunningham
  96.   * tcp: added Appropriate Byte Counting support (task #14128)

  97.   2017-04-11: Simon Goldschmidt
  98.   * netconn/sockets: remove fatal error handling, fix asynchronous error handling,
  99.     ensure data before RST can be received

  100.   2017-03-30: Simon Goldschmidt
  101.   * added "application layered TCP" connection API (altcp) for seamless integration
  102.     of TLS or proxy connections

  103.   2017-03-09: Simon Goldschmidt
  104.   * sockets: add recvmsg for TCP

  105.   2017-03-02: Joel Cunningham
  106.   * netconn/sockets: vectorize netconn_write for TCP, treating a vectored I/O write
  107.     atomically in regards to TCP segmentation (patch #8882)

  108.   2017-03-02: Simon Goldschmidt
  109.   * netconn: added nonblocking accept/recv to netconn API (task #14396)

  110.   2017-02-28: Simon Goldschmidt
  111.   * Added LWIP_SINGLE_NETIF for small targets with only one netif

  112.   2017-02-10: David van Moolenbroek
  113.   * Implement UDP and RAW multicast support for IPv6 (core API, not netconn/sockets)

  114.   2017-02-04: David van Moolenbroek
  115.   * IPv6 scopes support

  116.   2017-01-20: Joel Cunningham
  117.   * sockets: add interface name/index APIs (task #14314)
  118.   
  119.   2017-01-08: David van Moolenbroek
  120.   * Extensions to RAW API (patch #9208)
  121.     - Connected RAW PCBs
  122.     - Add raw_sendto_if_src()
  123.     - Support IP_HDRINCL socket option

  124.   ++ Bugfixes:

  125.   2018-06-19: Simon Goldschmidt
  126.   * tcp: fix RTO timer not working if link is down

  127.   2018-06-15: Sylvain Rochet
  128.   * ppp: multiple smaller bugfixes

  129.   2018-05-17: Simon Goldschmidt
  130.   * etharp: arp table can now be bigger than 127 entries

  131.   2018-04-25: Jens Nielsen
  132.   * tftp server: correctly handle retransmissions

  133.   2018-04-18: Simon Goldschmidt
  134.   sockets: fix race conditions when closing full-duplex sockets

  135.   2018-03-09: Simon Goldschmidt
  136.   * 6lowpan: fix to work against contiki; added ZigBee encapsulation netif for tests

  137.   2018-02-04: Simon Goldschmidt
  138.   * sockets: fix inconsistencies on close (inconsistent error codes, double FIN)

  139.   2018-01-05: Dirk Ziegelmeier
  140.   * Fix bug #52748: the bug in timeouts.c by reimplementing timer logic to use
  141.     absolute instead of relative timeout values

  142.   2017-12-31: Dirk Ziegelmeier
  143.   * Fix bug #52704: DHCP and bad OFFER: Stop timeout only if offer is accepted

  144.   2017-11-08: Joel Cunningham
  145.   * netif: ensure link and admin states are up in issue reports (bug #52353)

  146.   2017-09-12: David Lockyer
  147.   * select: allocate select_cb from memp for LWIP_MPU_COMPATIBLE = 1 (bug #51990)

  148.   2017-09-11: Simon Goldschmidt
  149.   * tcp_in.c: fix bug #51937 (leaking tcp_pcbs on passive close with unacked data)

  150.   2017-08-11: Joel Cunningham
  151.   * lwip_itoa: fix converting the number 0 (previously converted to '\0') (bug #51729)

  152.   2017-08-08: Dirk Ziegelmeier
  153.   * ip4_route_src: parameter order is reversed: ip4_route_src(dest, src) -> ip4_route_src(src, dest)
  154.     to make parameter order consistent with other ip*_route*() functions
  155.     Same also applies to LWIP_HOOK_IP4_ROUTE_SRC() parameter order.

  156.   2017-08-04: Joel Cunningham
  157.   * tcp: re-work persist timer to fully close window (details in bug #50837)

  158.   2017-07-26: Simon Goldschmidt
  159.   * snmp_msg.c: fix bug #51578 (SNMP failed to decode some values on non 32bit platforms)

  160.   2017-07-20: Simon Goldschmidt
  161.   * compatibility headers: moved from 'src/include/posix' to 'src/include/compat/posix',
  162.     'src/include/compat/stdc' etc.

  163.   2017-05-09: Joel Cunningham
  164.   * tcp: add zero-window probe timeout (bug #50837)

  165.   2017-04-11: Simon Goldschmidt
  166.   * sockets.c: task #14420 (Remove sys_sem_signal from inside SYS_ARCH_PROTECT
  167.     crit section) done for LWIP_TCPIP_CORE_LOCKING==1

  168.   2017-02-24: Simon Goldschmidt
  169.   * sockets.c: fixed close race conditions in lwip_select (for LWIP_NETCONN_FULLDUPLEX)

  170.   2017-02-24: Simon Goldschmidt
  171.   * sockets.c: fixed that select ignored invalid/not open sockets in the fd_sets (bug #50392)

  172.   2017-01-11: David van Moolenbroek
  173.   * Lots of IPv6 related fixes and improvements

  174. (STABLE-2.0.3)

  175.   ++ Bugfixes:

  176.   2017-09-11: Simon Goldschmidt
  177.   * tcp_in.c: fix bug #51937 (leaking tcp_pcbs on passive close with unacked data)

  178.   2017-08-02: Abroz Bizjak/Simon Goldschmidt
  179.   * multiple fixes in IPv4 reassembly (leading to corrupted datagrams received)
  180.   
  181.   2017-03-30: Simon Goldschmidt
  182.   * dhcp.c: return ERR_VAL instead of asserting on offset-out-of-pbuf

  183.   2017-03-23: Dirk Ziegelmeier
  184.   * dhcp.h: fix bug #50618 (dhcp_remove_struct() macro does not work)
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-6 22:04 , Processed in 0.186942 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表