提交 c1ab7381 编写于 作者: J Jorge Ramirez-Ortiz 提交者: Tom Rini

net: eth_legacy - fix build CMD_PCAP

Fix typo which would cause a build error.

Fixes: 3eaac630 ("net: introduce packet capture support")
Signed-off-by: NJorge Ramirez-Ortiz <jorge@foundries.io>
上级 beb61e13
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册