X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..04b8595b18b1b41ac7a206e4b3d51a635f8413d7:/bsd/netinet6/ipcomp.h?ds=inline diff --git a/bsd/netinet6/ipcomp.h b/bsd/netinet6/ipcomp.h index 25ca896f0..b976f138a 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,8 @@ #ifndef _NETINET6_IPCOMP_H_ #define _NETINET6_IPCOMP_H_ +#include +#include struct ipcomp { u_int8_t comp_nxt; /* Next Header */ @@ -48,22 +53,17 @@ struct ipcomp { #define IPCOMP_CPI_NEGOTIATE_MIN 256 -#if defined(KERNEL) || defined(_KERNEL) +#ifdef BSD_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 secasvar *); +#endif /* BSD_KERNEL_PRIVATE */ -#endif /*_NETINET6_IPCOMP_H_*/ +#endif /* _NETINET6_IPCOMP_H_ */