Skip to contentSkip to conversation

net: eth_legacy - fix build CMD_PCAP

PATCH New Jorge Ramirez-Ortiz 2 participants 2 messages Dec 4, 2020 – Jan 19, 2021 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: eth_legacy - fix build CMD_PCAP

Fix typo which would cause a build error.

Fixes 3eaac6307df ("net: introduce packet capture support")
---
 net/eth_legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/eth_legacy.c +1 -1
index 6e0c058761..6870afb505 100644
@@ -365,7 +365,7 @@ int eth_send(void *packet, int length)
 	ret = eth_current->send(eth_current, packet, length);
 #if defined(CONFIG_CMD_PCAP)
 	if (ret >= 0)
-		pcap_post(packet, lengeth, true);
+		pcap_post(packet, length, true);
 #endif
 	return ret;
 }
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 net: eth_legacy - fix build CMD_PCAP

Quoted 5 lines · Jorge Ramirez-Ortiz

Fix typo which would cause a build error.

Fixes 3eaac6307df ("net: introduce packet capture support")

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210119/5d5337f6/attachment.sig>