From 7871e983b8f2f18afea3788f650cc77eb5862bf4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 6 Sep 2019 09:48:42 -0600 Subject: [PATCH] =?UTF-8?q?net/tcp/tcp=5Fsend.c:=20=20Commit=20a52ceac13ee?= =?UTF-8?q?598696cb907b62326bfd4c111ac6c=20broke=20IPv4=20sending.=20=20In?= =?UTF-8?q?=20cp=5Fsend.c:tcp=5Fipv4=5Fsendcomplete(),=20=E2=80=98ipv4->vh?= =?UTF-8?q?l=E2=80=99=20now=20needs=20to=20be=20configured=20before=20call?= =?UTF-8?q?=20to=20tcp=5Fipv4=5Fchksum().=20Noted=20by=20Jussi=20Kivilinna?= =?UTF-8?q?=20in=20comit=20comments.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fs/procfs/Kconfig | 2 +- net/tcp/tcp_send.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/procfs/Kconfig b/fs/procfs/Kconfig index ff90e7b9ad4..41a57db8c31 100644 --- a/fs/procfs/Kconfig +++ b/fs/procfs/Kconfig @@ -126,5 +126,5 @@ config FS_PROCFS_EXCLUDE_SMARTFS depends on FS_SMARTFS default n -endmenu # +endmenu # Exclude individual procfs entries endif # FS_PROCFS diff --git a/net/tcp/tcp_send.c b/net/tcp/tcp_send.c index a5ffd198d26..f08d90b92a2 100644 --- a/net/tcp/tcp_send.c +++ b/net/tcp/tcp_send.c @@ -138,6 +138,7 @@ static inline void tcp_ipv4_sendcomplete(FAR struct net_driver_s *dev, ipv4->proto = IP_PROTO_TCP; ipv4->ttl = IP_TTL; + ipv4->vhl = 0x45; /* At this point the TCP header holds the size of the payload, the * TCP header, and the IP header.