Switch from netpacket/packet.h to linux/if_packet.h to pick up both
sockaddr_ll and PACKET_IGNORE_OUTGOING.
Fixes case where PACKET_IGNORE_OUTGOING was compiled out due to ifdef
conditional, which caused Linux zerocopy to break.
Fixes #732
Signed-off-by: Jon Kohler <jon@nutanix.com>
#define PACKET_QDISC_BYPASS 20
#define PACKET_ROLLOVER_STATS 21
#define PACKET_FANOUT_DATA 22
+#define PACKET_IGNORE_OUTGOING 23
#define PACKET_FANOUT_HASH 0
#define PACKET_FANOUT_LB 1
#include <errno.h>
#include <regex.h>
#include <sys/ioctl.h>
-#include <netpacket/packet.h> /* For sockaddr_ll */
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdocumentation"
#include <linux/filter.h> /* For BPF filtering */
#include <linux/sockios.h>
#include <linux/if_ether.h>
+#include <linux/if_packet.h>
#include <linux/ethtool.h>
#if defined(__clang__)
# pragma clang diagnostic pop