diff options
author | sam <sam@FreeBSD.org> | 2002-11-08 23:37:50 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2002-11-08 23:37:50 +0000 |
commit | ef62292833a3cf488115f6193b9eca7c9dc7a500 (patch) | |
tree | f26b37b0a6bbf393c2051b9b900e5b7d5333f0ba /sys/netinet/in_proto.c | |
parent | 6019e3c767dbfe1e63eea350246a2312d6745abe (diff) | |
download | FreeBSD-src-ef62292833a3cf488115f6193b9eca7c9dc7a500.zip FreeBSD-src-ef62292833a3cf488115f6193b9eca7c9dc7a500.tar.gz |
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>
Diffstat (limited to 'sys/netinet/in_proto.c')
-rw-r--r-- | sys/netinet/in_proto.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 5ecbe65..863b048 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -76,12 +76,8 @@ #include <netinet6/ipcomp.h> #endif /* IPSEC */ -#ifdef FAST_IPESC +#ifdef FAST_IPSEC #include <netipsec/ipsec.h> -#define ah4_input ipsec4_common_input -#define esp4_input ipsec4_common_input -#define ipcomp4_input ipsec4_common_input -#define IPSEC #endif /* FAST_IPSEC */ #ifdef IPXIP @@ -162,6 +158,26 @@ struct protosw inetsw[] = { &nousrreqs }, #endif /* IPSEC */ +#ifdef FAST_IPSEC +{ SOCK_RAW, &inetdomain, IPPROTO_AH, PR_ATOMIC|PR_ADDR, + ah4_input, 0, 0, 0, + 0, + 0, 0, 0, 0, + &nousrreqs +}, +{ SOCK_RAW, &inetdomain, IPPROTO_ESP, PR_ATOMIC|PR_ADDR, + esp4_input, 0, 0, 0, + 0, + 0, 0, 0, 0, + &nousrreqs +}, +{ SOCK_RAW, &inetdomain, IPPROTO_IPCOMP, PR_ATOMIC|PR_ADDR, + ipcomp4_input, 0, 0, 0, + 0, + 0, 0, 0, 0, + &nousrreqs +}, +#endif /* FAST_IPSEC */ { SOCK_RAW, &inetdomain, IPPROTO_IPV4, PR_ATOMIC|PR_ADDR|PR_LASTHDR, encap4_input, 0, 0, rip_ctloutput, 0, |