summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2013-04-01 22:58:30 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2013-04-01 22:58:30 +0000
commit631b8ed5421652a7626c49118a16807049555fe5 (patch)
treeab10d73469ca2bd3d849b51c4546eeadbae01bc7 /sys/netinet6
parent5f4945087a324d551bfd8c811696c661d424f314 (diff)
Allow raw IPv6 sockets for IPsec protocols. IPv4 does the same.
Ok claudio@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6_proto.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c
index 23061d1218d..e125974024d 100644
--- a/sys/netinet6/in6_proto.c
+++ b/sys/netinet6/in6_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_proto.c,v 1.65 2013/03/14 11:18:37 mpi Exp $ */
+/* $OpenBSD: in6_proto.c,v 1.66 2013/04/01 22:58:29 bluhm Exp $ */
/* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */
/*
@@ -176,20 +176,20 @@ struct ip6protosw inet6sw[] = {
},
#ifdef IPSEC
{ SOCK_RAW, &inet6domain, IPPROTO_AH, PR_ATOMIC|PR_ADDR,
- ah6_input, 0, 0, 0,
- 0,
+ ah6_input, rip6_output, 0, rip6_ctloutput,
+ rip6_usrreq,
0, 0, 0, 0,
ah_sysctl,
},
{ SOCK_RAW, &inet6domain, IPPROTO_ESP, PR_ATOMIC|PR_ADDR,
- esp6_input, 0, 0, 0,
- 0,
+ esp6_input, rip6_output, 0, rip6_ctloutput,
+ rip6_usrreq,
0, 0, 0, 0,
esp_sysctl,
},
{ SOCK_RAW, &inet6domain, IPPROTO_IPCOMP, PR_ATOMIC|PR_ADDR,
- ipcomp6_input, 0, 0, 0,
- 0,
+ ipcomp6_input, rip6_output, 0, rip6_ctloutput,
+ rip6_usrreq,
0, 0, 0, 0,
ipcomp_sysctl,
},