]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 6e0c0587616f61d1d8ef5953c6856d6b4a663077..6870afb505c7ab0a0500daf0ae0cb989d0ee8da4 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;
 }