From db23fee1243fecbb9e77a725fdadc1ca900a7edd Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Fri, 6 Mar 2015 15:40:55 +0300 Subject: [PATCH] Replace __be16 by __u16 --- tests/fastnetmon_packet_parser.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) {