mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
net/tcp/tcp_send.c: Commit a52ceac13e broke IPv4 sending. In cp_send.c:tcp_ipv4_sendcomplete(), ‘ipv4->vhl’ now needs to be configured before call to tcp_ipv4_chksum(). Noted by Jussi Kivilinna in comit comments.
This commit is contained in:
+1
-1
@@ -126,5 +126,5 @@ config FS_PROCFS_EXCLUDE_SMARTFS
|
|||||||
depends on FS_SMARTFS
|
depends on FS_SMARTFS
|
||||||
default n
|
default n
|
||||||
|
|
||||||
endmenu #
|
endmenu # Exclude individual procfs entries
|
||||||
endif # FS_PROCFS
|
endif # FS_PROCFS
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ static inline void tcp_ipv4_sendcomplete(FAR struct net_driver_s *dev,
|
|||||||
|
|
||||||
ipv4->proto = IP_PROTO_TCP;
|
ipv4->proto = IP_PROTO_TCP;
|
||||||
ipv4->ttl = IP_TTL;
|
ipv4->ttl = IP_TTL;
|
||||||
|
ipv4->vhl = 0x45;
|
||||||
|
|
||||||
/* At this point the TCP header holds the size of the payload, the
|
/* At this point the TCP header holds the size of the payload, the
|
||||||
* TCP header, and the IP header.
|
* TCP header, and the IP header.
|
||||||
|
|||||||
Reference in New Issue
Block a user