diff --git a/tests/fastnetmon_packet_parser.cpp b/tests/fastnetmon_packet_parser.cpp index 4aed754..aa57e55 100644 --- a/tests/fastnetmon_packet_parser.cpp +++ b/tests/fastnetmon_packet_parser.cpp @@ -226,16 +226,11 @@ char *proto2str(u_short proto); struct ethhdr { unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ unsigned char h_source[ETH_ALEN]; /* source ether addr */ - __be16 h_proto; /* packet type ID field */ + __u16 h_proto; /* packet type ID field */ } __attribute__((packed)); #endif -#if defined(__FreeBSD__) || defined(__APPLE__) -/usr/includes/linux/types.h -typedef __u16 __bitwise __be16; -#endif - #if defined(__FreeBSD__) || defined(__APPLE__) u_int32_t pfring_hash_pkt(struct pfring_pkthdr *hdr) { if (hdr->extended_hdr.parsed_pkt.tunnel.tunnel_id == NO_TUNNEL_ID) {