summaryrefslogtreecommitdiff
path: root/sys/netiso/iso_proto.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-05-25 22:08:26 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-05-25 22:08:26 +0000
commitfbc9d5cd12dcc1ff564e70face6aff3cef21fbdc (patch)
tree5e04b4bb97753f6688d356d1587eb6e5509f451d /sys/netiso/iso_proto.c
parent1d8271666d0bc69b7c8c1cfb481e5ed5e752b974 (diff)
recover old acecept(2) behavior (no ECONNABORTED) for unix domain socket.
it is to be friendly with postfix daemon-to-daemon communication (not 100% sure if which behavior is correct, specwise). patch similar to netbsd.
Diffstat (limited to 'sys/netiso/iso_proto.c')
-rw-r--r--sys/netiso/iso_proto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netiso/iso_proto.c b/sys/netiso/iso_proto.c
index b0caaf21eea..5ccd3ba1dee 100644
--- a/sys/netiso/iso_proto.c
+++ b/sys/netiso/iso_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iso_proto.c,v 1.2 1996/03/04 10:35:38 mickey Exp $ */
+/* $OpenBSD: iso_proto.c,v 1.3 2001/05/25 22:08:25 itojun Exp $ */
/* $NetBSD: iso_proto.c,v 1.6 1996/02/13 22:10:21 christos Exp $ */
/*-
@@ -149,14 +149,14 @@ struct protosw isosw[] = {
},
/* ISOPROTO_TP */
- {SOCK_SEQPACKET, &isodomain, ISOPROTO_TP, PR_CONNREQUIRED | PR_WANTRCVD,
+ {SOCK_SEQPACKET, &isodomain, ISOPROTO_TP, PR_CONNREQUIRED | PR_WANTRCVD | PR_ABRTACPTDIS,
tpclnp_input, 0, tpclnp_ctlinput, tp_ctloutput,
tp_usrreq,
tp_init, tp_fasttimo, tp_slowtimo, tp_drain,
},
#ifdef TUBA
- {SOCK_STREAM, &isodomain, ISOPROTO_TCP, PR_CONNREQUIRED | PR_WANTRCVD,
+ {SOCK_STREAM, &isodomain, ISOPROTO_TCP, PR_CONNREQUIRED | PR_WANTRCVD | PR_ABRTACPTDIS,
tuba_tcpinput, 0, 0, tuba_ctloutput,
tuba_usrreq,
tuba_init, tuba_fasttimo, tuba_fasttimo, 0
@@ -165,7 +165,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_ABRTACPTDIS,
tpcons_input, 0, 0, tp_ctloutput,
tp_usrreq,
cons_init, 0, 0, 0,