]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/ethernet.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / bsd / net / ethernet.h
index 9dda79efb8323cb7fd6d5a42330347cd4d1dc4b7..354a563a4f0d2b9dfd96aadf40549e80389c6403 100644 (file)
@@ -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@
  *
 
 #ifndef _NET_ETHERNET_H_
 #define _NET_ETHERNET_H_
+#ifndef DRIVERKIT
 #include <sys/appleapiopts.h>
 #include <sys/types.h>          /* u_ types */
+#else
+#include <sys/_types.h>
+#include <sys/_types/_u_char.h>
+#include <sys/_types/_u_short.h>
+#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_ */