X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..refs/heads/master:/bsd/net/ethernet.h diff --git a/bsd/net/ethernet.h b/bsd/net/ethernet.h index 9dda79efb..354a563a4 100644 --- a/bsd/net/ethernet.h +++ b/bsd/net/ethernet.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2010 Apple Inc. All rights reserved. + * Copyright (c) 2000-2017 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -32,8 +32,14 @@ #ifndef _NET_ETHERNET_H_ #define _NET_ETHERNET_H_ +#ifndef DRIVERKIT #include #include /* u_ types */ +#else +#include +#include +#include +#endif /* DRIVERKIT */ /* * The number of bytes in an ethernet (MAC) address. @@ -108,6 +114,7 @@ typedef struct ether_addr { #define ETHERTYPE_PTP 0x88f7 /* IEEE 1588 Precision Time Protocol */ #define ETHERTYPE_LOOPBACK 0x9000 /* used to test interfaces */ /* XXX - add more useful types here */ +#define ETHERTYPE_IEEE802154 0x0809 /* 802.15.4 */ /* * The ETHERTYPE_NTRAILER packet types starting at ETHERTYPE_TRAIL have @@ -120,6 +127,7 @@ typedef struct ether_addr { #define ETHERMTU (ETHER_MAX_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) #define ETHERMIN (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) +#ifndef DRIVERKIT #ifdef KERNEL_PRIVATE /* * The following are used by ethernet interfaces. @@ -178,5 +186,6 @@ struct ether_addr *ether_aton(const char *); int ether_ntohost(char *, const struct ether_addr *); __END_DECLS #endif /* !KERNEL */ +#endif /* DRIVERKIT */ #endif /* !_NET_ETHERNET_H_ */