Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/netinet6 Pull up revision 1.19 (requested by itojun):
details: https://anonhg.NetBSD.org/src/rev/0b7fad596e96
branches: netbsd-1-5
changeset: 491207:0b7fad596e96
user: he <he%NetBSD.org@localhost>
date: Fri Apr 06 00:28:47 2001 +0000
description:
Pull up revision 1.19 (requested by itojun):
Record IPsec packet history in m_aux structure. Let ipfilter
look at wire-format packet only (not the decapsulated ones), so
that VPN setting can work with NAT/ipfilter settings.
diffstat:
sys/netinet6/ipsec.h | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 5fddb5d2238d -r 0b7fad596e96 sys/netinet6/ipsec.h
--- a/sys/netinet6/ipsec.h Fri Apr 06 00:28:34 2001 +0000
+++ b/sys/netinet6/ipsec.h Fri Apr 06 00:28:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec.h,v 1.14.2.2 2000/09/29 06:42:43 itojun Exp $ */
+/* $NetBSD: ipsec.h,v 1.14.2.3 2001/04/06 00:28:47 he Exp $ */
/* $KAME: ipsec.h,v 1.36 2000/08/02 17:58:25 sakane Exp $ */
/*
@@ -261,6 +261,11 @@
struct sockaddr *dst;
};
+struct ipsec_history {
+ int ih_proto;
+ u_int32_t ih_spi;
+};
+
extern int ipsec_debug;
#ifdef INET
@@ -370,8 +375,12 @@
struct secasvar *));
#endif
extern struct mbuf *ipsec_copypkt __P((struct mbuf *));
-extern void ipsec_setsocket __P((struct mbuf *, struct socket *));
+extern void ipsec_delaux __P((struct mbuf *));
+extern int ipsec_setsocket __P((struct mbuf *, struct socket *));
extern struct socket *ipsec_getsocket __P((struct mbuf *));
+extern int ipsec_addhist __P((struct mbuf *, int, u_int32_t));
+extern struct ipsec_history *ipsec_gethist __P((struct mbuf *, int *));
+extern void ipsec_clearhist __P((struct mbuf *));
extern int ipsec_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
extern int ipsec6_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
Home |
Main Index |
Thread Index |
Old Index