mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-23 00:52:00 +01:00
Replace __be16 by __u16
This commit is contained in:
parent
fce6a542a0
commit
db23fee124
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user