]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/ethernet.h
xnu-792.6.61.tar.gz
[apple/xnu.git] / bsd / net / ethernet.h
index de84f184e21f2e4e97e51b388eed40c7fee3444d..b52bd815f79819e5a520033a0dbafb6809b6c6b8 100644 (file)
@@ -26,6 +26,7 @@
 
 #ifndef _NET_ETHERNET_H_
 #define _NET_ETHERNET_H_
 
 #ifndef _NET_ETHERNET_H_
 #define _NET_ETHERNET_H_
+#include <sys/appleapiopts.h>
 
 /*
  * The number of bytes in an ethernet (MAC) address.
 
 /*
  * The number of bytes in an ethernet (MAC) address.
@@ -101,11 +102,19 @@ 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)
 
 #define        ETHERMTU        (ETHER_MAX_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN)
 #define        ETHERMIN        (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN)
 
-#if KERNEL
-struct ether_addr *ether_aton __P((char *));
+#ifdef KERNEL_PRIVATE
+/*
+ * The following are used by ethernet interfaces.
+ */
+
+struct ether_addr *ether_aton(const char *);
+
+#ifdef BSD_KERNEL_PRIVATE
+extern u_char  etherbroadcastaddr[ETHER_ADDR_LEN];
 #endif
 #endif
+#endif /* KERNEL_PRIVATE */
 
 
-#if !KERNEL
+#ifndef KERNEL
 #include <sys/cdefs.h>
 
 /*
 #include <sys/cdefs.h>
 
 /*
@@ -113,10 +122,11 @@ struct    ether_addr *ether_aton __P((char *));
  */
 __BEGIN_DECLS
 
  */
 __BEGIN_DECLS
 
-int    ether_hostton __P((char *, struct ether_addr *));
-int    ether_line __P((char *, struct ether_addr *, char *));
-char   *ether_ntoa __P((struct ether_addr *));
-int    ether_ntohost __P((char *, struct ether_addr *));
+int    ether_hostton(const char *, struct ether_addr *);
+int    ether_line(const char *, struct ether_addr *, char *);
+char   *ether_ntoa(const struct ether_addr *);
+struct ether_addr *ether_aton(const char *);
+int    ether_ntohost(char *, const struct ether_addr *);
 __END_DECLS
 #endif /* !KERNEL */
 
 __END_DECLS
 #endif /* !KERNEL */