net: eth_legacy - fix build CMD_PCAP
authorJorge Ramirez-Ortiz <jorge@foundries.io>
Fri, 4 Dec 2020 19:59:58 +0000 (20:59 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Jan 2021 14:15:02 +0000 (09:15 -0500)
Fix typo which would cause a build error.

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

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
net/eth_legacy.c

index 6e0c058..6870afb 100644 (file)
@@ -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;
 }