X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..3903760236c30e3b5ace7a4eefac3a269d68957c:/bsd/netinet/ip_encap.h?ds=sidebyside diff --git a/bsd/netinet/ip_encap.h b/bsd/netinet/ip_encap.h index 93ba512c2..34f39d29d 100644 --- a/bsd/netinet/ip_encap.h +++ b/bsd/netinet/ip_encap.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2012 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -58,9 +58,7 @@ #ifndef _NETINET_IP_ENCAP_H_ #define _NETINET_IP_ENCAP_H_ -#include - -#ifdef KERNEL_PRIVATE +#ifdef BSD_KERNEL_PRIVATE struct encaptab { LIST_ENTRY(encaptab) chain; @@ -75,9 +73,15 @@ struct encaptab { void *arg; /* passed via m->m_pkthdr.aux */ }; -void encap_init(void) __attribute__((section("__TEXT, initcode"))); +struct protosw; +struct ip6protosw; +struct domain; + +__BEGIN_DECLS +void encap4_init(struct protosw *, struct domain *); +void encap6_init(struct ip6protosw *, struct domain *); void encap4_input(struct mbuf *, int); -int encap6_input(struct mbuf **, int *); +int encap6_input(struct mbuf **, int *, int); const struct encaptab *encap_attach(int, int, const struct sockaddr *, const struct sockaddr *, const struct sockaddr *, const struct sockaddr *, const struct protosw *, void *); @@ -86,6 +90,7 @@ const struct encaptab *encap_attach_func(int, int, const struct protosw *, void *); int encap_detach(const struct encaptab *); void *encap_getarg(struct mbuf *); -#endif KERNEL_PRIVATE +__END_DECLS +#endif /* BSD_KERNEL_PRIVATE */ #endif /*_NETINET_IP_ENCAP_H_*/