aboutsummaryrefslogtreecommitdiff
path: root/sys/netipsec
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2002-11-08 23:37:50 +0000
committerSam Leffler <sam@FreeBSD.org>2002-11-08 23:37:50 +0000
commite8539d32f07691cc34a2dea66d4d66db7e23410f (patch)
treef26b37b0a6bbf393c2051b9b900e5b7d5333f0ba /sys/netipsec
parent58fcadfc0f84c593801d42cdfdaacb5782e4b994 (diff)
downloadsrc-e8539d32f07691cc34a2dea66d4d66db7e23410f.tar.gz
src-e8539d32f07691cc34a2dea66d4d66db7e23410f.zip
FAST_IPSEC fixups:
o fix #ifdef typo o must use "bounce functions" when dispatched from the protosw table don't know how this stuff was missed in my testing; must've committed the wrong bits Pointy hat: sam Submitted by: "Doug Ambrisko" <ambrisko@verniernetworks.com>
Notes
Notes: svn path=/head/; revision=106680
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/ipsec.h3
-rw-r--r--sys/netipsec/ipsec_input.c18
2 files changed, 21 insertions, 0 deletions
diff --git a/sys/netipsec/ipsec.h b/sys/netipsec/ipsec.h
index 93b1e23ae69e..7f0a021b23f3 100644
--- a/sys/netipsec/ipsec.h
+++ b/sys/netipsec/ipsec.h
@@ -361,6 +361,9 @@ extern const char *ipsec_logsastr __P((struct secasvar *));
extern void ipsec_dumpmbuf __P((struct mbuf *));
struct m_tag;
+extern void ah4_input(struct mbuf *m, int off);
+extern void esp4_input(struct mbuf *m, int off);
+extern void ipcomp4_input(struct mbuf *m, int off);
extern int ipsec4_common_input(struct mbuf *m, ...);
extern int ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
int skip, int protoff, struct m_tag *mt);
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c
index 1d5a3c9daf0d..9ebb518b5481 100644
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -201,6 +201,24 @@ ipsec4_common_input(struct mbuf *m, ...)
AF_INET, nxt);
}
+void
+ah4_input(struct mbuf *m, int off)
+{
+ ipsec4_common_input(m, off, IPPROTO_AH);
+}
+
+void
+esp4_input(struct mbuf *m, int off)
+{
+ ipsec4_common_input(m, off, IPPROTO_ESP);
+}
+
+void
+ipcomp4_input(struct mbuf *m, int off)
+{
+ ipsec4_common_input(m, off, IPPROTO_IPCOMP);
+}
+
/*
* IPsec input callback for INET protocols.
* This routine is called as the transform callback.