Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Fill in .pr_usrreqs for SOCK_SEQPACKET and SOCK...



details:   https://anonhg.NetBSD.org/src/rev/d2df96f087a6
branches:  trunk
changeset: 931235:d2df96f087a6
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Apr 24 17:36:55 2020 +0000

description:
Fill in .pr_usrreqs for SOCK_SEQPACKET and SOCK_STREAM variants of SCTP too.

This should allow these socket types of SCTP to operate on IPv6 family
sockets, as .pr_usrreqs must not be NULL for socreate() to succeed.

diffstat:

 sys/netinet6/in6_proto.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 8a28fbe889cb -r d2df96f087a6 sys/netinet6/in6_proto.c
--- a/sys/netinet6/in6_proto.c  Fri Apr 24 16:27:27 2020 +0000
+++ b/sys/netinet6/in6_proto.c  Fri Apr 24 17:36:55 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_proto.c,v 1.126 2018/08/14 14:49:14 maxv Exp $     */
+/*     $NetBSD: in6_proto.c,v 1.127 2020/04/24 17:36:55 jakllsch Exp $ */
 /*     $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $      */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.126 2018/08/14 14:49:14 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.127 2020/04/24 17:36:55 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -335,6 +335,7 @@
        .pr_input = sctp6_input,
        .pr_ctlinput = sctp6_ctlinput,
        .pr_ctloutput = sctp_ctloutput,
+       .pr_usrreqs = &sctp6_usrreqs,
        .pr_drain = sctp_drain,
 },
 {      .pr_type = SOCK_STREAM,
@@ -344,6 +345,7 @@
        .pr_input = sctp6_input,
        .pr_ctlinput = sctp6_ctlinput,
        .pr_ctloutput = sctp_ctloutput,
+       .pr_usrreqs = &sctp6_usrreqs,
        .pr_drain = sctp_drain,
 },
 #endif /* SCTP */



Home | Main Index | Thread Index | Old Index