+/* $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.
#ifndef _NETINET6_IPCOMP_H_
#define _NETINET6_IPCOMP_H_
+#include <sys/appleapiopts.h>
+#include <netinet6/ipsec.h>
struct ipcomp {
u_int8_t comp_nxt; /* Next Header */
#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_ */