aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge@foundries.io>2020-12-04 20:59:58 +0100
committerTom Rini <trini@konsulko.com>2021-01-19 09:15:02 -0500
commitc1ab73814515c865896b0abc54d3071a1a273537 (patch)
treefe935251bf5c2b97f6894461c994ed68ba29f1c1 /net
parentbeb61e13b8134c9aeaf1b2c0a2e13ed71d3be59e (diff)
downloadu-boot-c1ab73814515c865896b0abc54d3071a1a273537.zip
u-boot-c1ab73814515c865896b0abc54d3071a1a273537.tar.gz
u-boot-c1ab73814515c865896b0abc54d3071a1a273537.tar.bz2
net: eth_legacy - fix build CMD_PCAP
Fix typo which would cause a build error. Fixes: 3eaac6307df ("net: introduce packet capture support") Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Diffstat (limited to 'net')
-rw-r--r--net/eth_legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth_legacy.c b/net/eth_legacy.c
index 6e0c058..6870afb 100644
--- a/net/eth_legacy.c
+++ b/net/eth_legacy.c
@@ -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;
}