]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/ethernet.h
xnu-792.tar.gz
[apple/xnu.git] / bsd / net / ethernet.h
index 703660a076a4efb3a02dcfd83f10a696ba12fd1f..b52bd815f79819e5a520033a0dbafb6809b6c6b8 100644 (file)
@@ -102,11 +102,17 @@ 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)
 
-#ifdef KERNEL
-#ifdef __APPLE_API_PRIVATE
-struct ether_addr *ether_aton __P((char *));
-#endif /* __APPLE_API_PRIVATE */
+#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 /* KERNEL_PRIVATE */
 
 #ifndef KERNEL
 #include <sys/cdefs.h>
@@ -116,10 +122,11 @@ struct    ether_addr *ether_aton __P((char *));
  */
 __BEGIN_DECLS
 
-int    ether_hostton __P((char *, struct ether_addr *));
-int    ether_line __P((char *, struct ether_addr *, char *));
-char   *ether_ntoa __P((const 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 */