summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2001-05-25 22:08:22 +0000
committeritojun <itojun@openbsd.org>2001-05-25 22:08:22 +0000
commit37930e22e4273fcf3906597004cad6f07746508c (patch)
tree52510bc55e63944ec27843b32e6798fa09599adc /sys/netinet
parentAdd 3 sysctl machdep variables: cpuspeed, machineid, and mmuid. (diff)
downloadwireguard-openbsd-37930e22e4273fcf3906597004cad6f07746508c.tar.xz
wireguard-openbsd-37930e22e4273fcf3906597004cad6f07746508c.zip
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/netinet')
-rw-r--r--sys/netinet/in_proto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index ca30664e986..ed39157dddc 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_proto.c,v 1.25 2000/01/27 08:09:08 angelos Exp $ */
+/* $OpenBSD: in_proto.c,v 1.26 2001/05/25 22:08:23 itojun Exp $ */
/* $NetBSD: in_proto.c,v 1.14 1996/02/18 18:58:32 christos Exp $ */
/*
@@ -178,7 +178,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_ABRTACPTDIS,
tcp_input, 0, tcp_ctlinput, tcp_ctloutput,
tcp_usrreq,
tcp_init, tcp_fasttimo, tcp_slowtimo, tcp_drain, tcp_sysctl
@@ -226,7 +226,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_ABRTACPTDIS,
tpip_input, 0, tpip_ctlinput, tp_ctloutput,
tp_usrreq,
tp_init, 0, tp_slowtimo, tp_drain,