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/168e1728b856
branches:  trunk
changeset: 971457:168e1728b856
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 fdcd0af0cda3 -r 168e1728b856 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