/*
- * 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.
#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
#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.
int ether_ntohost(char *, const struct ether_addr *);
__END_DECLS
#endif /* !KERNEL */
+#endif /* DRIVERKIT */
#endif /* !_NET_ETHERNET_H_ */