]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet6/ip6_fw.h
xnu-4570.31.3.tar.gz
[apple/xnu.git] / bsd / netinet6 / ip6_fw.h
index 1cfa5e11644e7deb7327d9d8e60d93115a486f28..1debe3fb22a1c21ac3b7ce49074c4a0f34d0822e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2008-2013 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -42,6 +42,7 @@
 
 #ifndef _IP6_FW_H
 #define _IP6_FW_H
+#ifdef __APPLE_API_OBSOLETE
 
 #include <sys/appleapiopts.h>
 
@@ -148,7 +149,7 @@ struct ip6_fw {
                                        /* count of 0 means match all ports) */
 };
 
-#if defined(KERNEL_PRIVATE)
+#if defined(BSD_KERNEL_PRIVATE)
 #pragma pack(4)
 
 struct ip6_fw_32 {
@@ -216,7 +217,7 @@ struct ip6_fw_64 {
 };
 
 
-#endif /* KERNEL_PRIVATE */
+#endif /* BSD_KERNEL_PRIVATE */
 
 #define IPV6_FW_GETNSRCP(rule)         ((rule)->fw_nports & 0x0f)
 #define IPV6_FW_SETNSRCP(rule, n)              do {                            \
@@ -320,7 +321,7 @@ struct ip6_fw_chain {
 /*
  * Main firewall chains definitions and global var's definitions.
  */
-#ifdef KERNEL_PRIVATE
+#ifdef BSD_KERNEL_PRIVATE
 
 #define M_IP6FW M_IPFW
 
@@ -329,6 +330,7 @@ struct ip6_fw_chain {
  * Function definitions.
  */
 void ip6_fw_init(void);
+void load_ip6fw(void);
 
 /* Firewall hooks */
 struct ip6_hdr;
@@ -340,6 +342,7 @@ extern      ip6_fw_chk_t *ip6_fw_chk_ptr;
 extern ip6_fw_ctl_t *ip6_fw_ctl_ptr;
 extern int ip6_fw_enable;
 
-#endif /* KERNEL_PRIVATE */
+#endif /* BSD_KERNEL_PRIVATE */
 
+#endif /* __APPLE_API_OBSOLETE */
 #endif /* _IP6_FW_H */