net: eth_legacy - fix build CMD_PCAP

Fix typo which would cause a build error.

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

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
This commit is contained in:
Jorge Ramirez-Ortiz 2020-12-04 20:59:58 +01:00 committed by Tom Rini
parent beb61e13b8
commit c1ab738145

View 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;
}