add PR_LISTEN to protocols which support listen(2)
This commit is contained in:
parent
440bb56d81
commit
67cac86e57
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ccitt_proto.c,v 1.10 1999/01/14 01:21:52 thorpej Exp $ */
|
||||
/* $NetBSD: ccitt_proto.c,v 1.11 1999/07/01 05:53:04 darrenr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984 University of British Columbia.
|
||||
|
@ -87,7 +87,7 @@ struct protosw ccittsw[] = {
|
|||
hd_init, 0, hd_timer, 0,
|
||||
},
|
||||
#endif
|
||||
{ SOCK_STREAM, DOMAIN, CCITTPROTO_X25, PR_CONNREQUIRED|PR_ATOMIC|PR_WANTRCVD,
|
||||
{ SOCK_STREAM, DOMAIN, CCITTPROTO_X25, PR_CONNREQUIRED|PR_ATOMIC|PR_WANTRCVD|PR_LISTEN,
|
||||
pk_input, 0, pk_ctlinput, pk_ctloutput,
|
||||
pk_usrreq,
|
||||
pk_init, 0, pk_timer, 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: in_proto.c,v 1.30 1999/04/29 03:54:22 thorpej Exp $ */
|
||||
/* $NetBSD: in_proto.c,v 1.31 1999/07/01 05:53:10 darrenr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -107,7 +107,7 @@ struct protosw inetsw[] = {
|
|||
udp_usrreq,
|
||||
udp_init, 0, 0, 0, udp_sysctl
|
||||
},
|
||||
{ SOCK_STREAM, &inetdomain, IPPROTO_TCP, PR_CONNREQUIRED|PR_WANTRCVD,
|
||||
{ SOCK_STREAM, &inetdomain, IPPROTO_TCP, PR_CONNREQUIRED|PR_WANTRCVD|PR_LISTEN,
|
||||
tcp_input, 0, tcp_ctlinput, tcp_ctloutput,
|
||||
tcp_usrreq,
|
||||
tcp_init, tcp_fasttimo, tcp_slowtimo, tcp_drain, tcp_sysctl
|
||||
|
@ -147,7 +147,7 @@ struct protosw inetsw[] = {
|
|||
igmp_init, igmp_fasttimo, igmp_slowtimo, 0,
|
||||
},
|
||||
#ifdef TPIP
|
||||
{ SOCK_SEQPACKET,&inetdomain, IPPROTO_TP, PR_CONNREQUIRED|PR_WANTRCVD,
|
||||
{ SOCK_SEQPACKET,&inetdomain, IPPROTO_TP, PR_CONNREQUIRED|PR_WANTRCVD|PR_LISTEN,
|
||||
tpip_input, 0, tpip_ctlinput, tp_ctloutput,
|
||||
tp_usrreq,
|
||||
tp_init, 0, tp_slowtimo, tp_drain,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iso_proto.c,v 1.10 1999/01/14 01:22:43 thorpej Exp $ */
|
||||
/* $NetBSD: iso_proto.c,v 1.11 1999/07/01 05:53:15 darrenr Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -147,7 +147,7 @@ struct protosw isosw[] = {
|
|||
},
|
||||
|
||||
/* ISOPROTO_TP */
|
||||
{SOCK_SEQPACKET, &isodomain, ISOPROTO_TP, PR_CONNREQUIRED | PR_WANTRCVD,
|
||||
{SOCK_SEQPACKET, &isodomain, ISOPROTO_TP, PR_CONNREQUIRED | PR_WANTRCVD | PR_LISTEN,
|
||||
tpclnp_input, 0, tpclnp_ctlinput, tp_ctloutput,
|
||||
tp_usrreq,
|
||||
tp_init, tp_fasttimo, tp_slowtimo, tp_drain,
|
||||
|
@ -155,7 +155,7 @@ struct protosw isosw[] = {
|
|||
|
||||
#ifdef TPCONS
|
||||
/* ISOPROTO_TP */
|
||||
{SOCK_SEQPACKET, &isodomain, ISOPROTO_TP0, PR_CONNREQUIRED | PR_WANTRCVD,
|
||||
{SOCK_SEQPACKET, &isodomain, ISOPROTO_TP0, PR_CONNREQUIRED | PR_WANTRCVD | PR_LISTEN,
|
||||
tpcons_input, 0, 0, tp_ctloutput,
|
||||
tp_usrreq,
|
||||
cons_init, 0, 0, 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ns_proto.c,v 1.8 1999/01/14 01:28:23 thorpej Exp $ */
|
||||
/* $NetBSD: ns_proto.c,v 1.9 1999/07/01 05:53:18 darrenr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1984, 1985, 1986, 1987, 1993
|
||||
|
@ -78,7 +78,7 @@ struct protosw nssw[] = {
|
|||
spp_usrreq,
|
||||
spp_init, spp_fasttimo, spp_slowtimo, 0,
|
||||
},
|
||||
{ SOCK_SEQPACKET,&nsdomain, NSPROTO_SPP, PR_CONNREQUIRED|PR_WANTRCVD|PR_ATOMIC,
|
||||
{ SOCK_SEQPACKET,&nsdomain, NSPROTO_SPP, PR_CONNREQUIRED|PR_WANTRCVD|PR_ATOMIC|PR_LISTEN,
|
||||
spp_input, 0, spp_ctlinput, spp_ctloutput,
|
||||
spp_usrreq_sp,
|
||||
0, 0, 0, 0,
|
||||
|
|
Loading…
Reference in New Issue