X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..8ad349bb6ed4a0be06e34c92be0d98b92e078db4:/bsd/netinet6/ipcomp.h diff --git a/bsd/netinet6/ipcomp.h b/bsd/netinet6/ipcomp.h index 25ca896f0..41ab61b85 100644 --- a/bsd/netinet6/ipcomp.h +++ b/bsd/netinet6/ipcomp.h @@ -1,3 +1,6 @@ +/* $FreeBSD: src/sys/netinet6/ipcomp.h,v 1.1.2.2 2001/07/03 11:01:54 ume Exp $ */ +/* $KAME: ipcomp.h,v 1.8 2000/09/26 07:55:14 itojun Exp $ */ + /* * Copyright (C) 1999 WIDE Project. * All rights reserved. @@ -33,6 +36,7 @@ #ifndef _NETINET6_IPCOMP_H_ #define _NETINET6_IPCOMP_H_ +#include struct ipcomp { u_int8_t comp_nxt; /* Next Header */ @@ -48,22 +52,19 @@ struct ipcomp { #define IPCOMP_CPI_NEGOTIATE_MIN 256 -#if defined(KERNEL) || defined(_KERNEL) +#ifdef KERNEL +#ifdef KERNEL_PRIVATE struct ipcomp_algorithm { - int (*compress) __P((struct mbuf *, struct mbuf *, size_t *)); - int (*decompress) __P((struct mbuf *, struct mbuf *, size_t *)); + int (*compress)(struct mbuf *, struct mbuf *, size_t *); + int (*decompress)(struct mbuf *, struct mbuf *, size_t *); size_t minplen; /* minimum required length for compression */ }; struct ipsecrequest; -extern struct ipcomp_algorithm ipcomp_algorithms[]; -extern void ipcomp4_input __P((struct mbuf *, int)); -extern int ipcomp4_output __P((struct mbuf *, struct ipsecrequest *)); -#if INET6 -extern int ipcomp6_input __P((struct mbuf **, int *)); -extern int ipcomp6_output __P((struct mbuf *, u_char *, struct mbuf *, - struct ipsecrequest *)); -#endif -#endif /*KERNEL*/ +extern const struct ipcomp_algorithm *ipcomp_algorithm_lookup(int); +extern void ipcomp4_input(struct mbuf *, int); +extern int ipcomp4_output(struct mbuf *, struct ipsecrequest *); +#endif KERNEL_PRIVATE +#endif KERNEL -#endif /*_NETINET6_IPCOMP_H_*/ +#endif _NETINET6_IPCOMP_H_