diff options
author | Tom Rini <trini@konsulko.com> | 2019-09-04 16:02:03 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-09-04 16:02:03 -0400 |
commit | ece9834f7d223097cec92e3d3c70cd37b3768482 (patch) | |
tree | d2935e582cb3494364bf2b7bc89a3d227d616e97 /net/eth-uclass.c | |
parent | 448f11f7503995746a7b71e5e3b3a831c4651be9 (diff) | |
parent | 5a5d1def59024dd3225e2a6142f8ee3ee10180a8 (diff) |
Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-net
- Assorted CVE fixes
- Other fixes
Diffstat (limited to 'net/eth-uclass.c')
-rw-r--r-- | net/eth-uclass.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 1d5d2f03b7d..3bd98b01ad3 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -11,6 +11,7 @@ #include <net.h> #include <dm/device-internal.h> #include <dm/uclass-internal.h> +#include <net/pcap.h> #include "eth_internal.h" DECLARE_GLOBAL_DATA_PTR; @@ -344,6 +345,10 @@ int eth_send(void *packet, int length) /* We cannot completely return the error at present */ debug("%s: send() returned error %d\n", __func__, ret); } +#if defined(CONFIG_CMD_PCAP) + if (ret >= 0) + pcap_post(packet, length, true); +#endif return ret; } |