diff options
author | bluhm <bluhm@openbsd.org> | 2013-01-17 16:30:10 +0000 |
---|---|---|
committer | bluhm <bluhm@openbsd.org> | 2013-01-17 16:30:10 +0000 |
commit | d2895f01520432384def324b2ee0e6eba45dcd61 (patch) | |
tree | e33fa501fa9b16556f447df27e9baa7693986f3f /sys/netinet6/in6_proto.c | |
parent | Man page update for the changed semantics of maximum socket splicing. (diff) | |
download | wireguard-openbsd-d2895f01520432384def324b2ee0e6eba45dcd61.tar.xz wireguard-openbsd-d2895f01520432384def324b2ee0e6eba45dcd61.zip |
Expand the socket splicing functionality from TCP to UDP. Merge
the code relevant for UDP from sosend() and soreceive() into somove().
That allows the kernel to directly transfer the UDP data from one
socket to another.
OK claudio@
Diffstat (limited to 'sys/netinet6/in6_proto.c')
-rw-r--r-- | sys/netinet6/in6_proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index a0314f50899..be34c2a1b55 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_proto.c,v 1.63 2012/03/15 14:11:57 mikeb Exp $ */ +/* $OpenBSD: in6_proto.c,v 1.64 2013/01/17 16:30:10 bluhm Exp $ */ /* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */ /* @@ -132,7 +132,7 @@ struct ip6protosw inet6sw[] = { ip6_init, 0, frag6_slowtimo, frag6_drain, ip6_sysctl, }, -{ SOCK_DGRAM, &inet6domain, IPPROTO_UDP, PR_ATOMIC|PR_ADDR, +{ SOCK_DGRAM, &inet6domain, IPPROTO_UDP, PR_ATOMIC|PR_ADDR|PR_SPLICE, udp6_input, 0, udp6_ctlinput, ip6_ctloutput, udp_usrreq, 0, 0, 0, 0, |