#include <sys/appleapiopts.h>
#include <net/if.h>
-#ifdef __APPLE_API_PRIVATE
-#define IP6_FW_CURRENT_API_VERSION 20 /* Version of this API */
+#define IPV6_FW_CURRENT_API_VERSION 20 /* Version of this API */
/*
* Main firewall chains definitions and global var's definitions.
*/
#ifdef KERNEL
+#ifdef __APPLE_API_PRIVATE
#define M_IP6FW M_IPFW
/* Firewall hooks */
struct ip6_hdr;
+struct sockopt;
typedef int ip6_fw_chk_t __P((struct ip6_hdr**, struct ifnet*,
u_short *, struct mbuf**));
-typedef int ip6_fw_ctl_t __P((int, struct mbuf**));
+typedef int ip6_fw_ctl_t __P((struct sockopt *));
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 */
#endif /* __APPLE_API_PRIVATE */
+#endif /* KERNEL */
#endif /* _IP6_FW_H */