X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..5c9f46613a83ebfc29a5b1f099448259e96a98f0:/bsd/netinet6/ip6_fw.h diff --git a/bsd/netinet6/ip6_fw.h b/bsd/netinet6/ip6_fw.h index 1cfa5e116..1debe3fb2 100644 --- a/bsd/netinet6/ip6_fw.h +++ b/bsd/netinet6/ip6_fw.h @@ -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 @@ -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 */