mirror of
https://github.com/apache/nuttx.git
synced 2025-12-19 01:29:44 +08:00
net/: Rename CONFIG_TCP_REASSEMBLY to CONFIG_IPv4_REASSEMBLY. Add some fixes to get a clen compile with CONFIG_IPv4_REASSEMBLY enabled. There are several problems with the current implementation: It is untested (and depends on CONFIG_EXPERMIMENTAL). It uses some Ethernet specific definitions (and depends on CONFIG_NET_ETHERNET). There is only a single reassembly buffer. The last two issues prevent use of this feature in any context where IPv4 packets may be reassembled for multiple network devices concurrently).
This commit is contained in:
@@ -111,7 +111,13 @@ static void tcp_input(FAR struct net_driver_s *dev, uint8_t domain,
|
||||
|
||||
tcp = (FAR struct tcp_hdr_s *)&dev->d_buf[iplen + NET_LL_HDRLEN(dev)];
|
||||
|
||||
/* Get the size of the IP header and the TCP header */
|
||||
/* Get the size of the IP header and the TCP header.
|
||||
*
|
||||
* REVISIT: TCP header is *not* a constant! It can be larger if the
|
||||
* TCP header includes options. The constand TCP_HDRLEN should be
|
||||
* replaced with the macro TCP_OPT_HDRLEN(n) which will calculate the
|
||||
* correct header length in all cases.
|
||||
*/
|
||||
|
||||
tcpiplen = iplen + TCP_HDRLEN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user