mmc: fsl_esdhc: drop i.MX DDR support code
[oweals/u-boot.git] / net / eth-uclass.c
index 031d55862583703d43ed33431dcacfe41424a1f9..3bd98b01ad32ac097754c5c3ff78b1b485a32cfb 100644 (file)
@@ -7,10 +7,11 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
+#include <env.h>
 #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;
 }