From: bluhm Date: Sat, 13 Jul 2024 12:00:11 +0000 (+0000) Subject: Mark IP protocol GRE as MP safe from socket layer. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=093b188bc00a9b5cda68a9479c7b8d38c0c9d621;p=openbsd Mark IP protocol GRE as MP safe from socket layer. The pipex code in gre_send() matches more or less what udp_send() does. This has been MP safe for a long time. rip_send() is already called with PR_MPSOCKET. OK mvs@ --- diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index e38cd80f5ac..5f9a1fbd3d7 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_proto.c,v 1.105 2024/07/12 19:50:35 bluhm Exp $ */ +/* $OpenBSD: in_proto.c,v 1.106 2024/07/13 12:00:11 bluhm Exp $ */ /* $NetBSD: in_proto.c,v 1.14 1996/02/18 18:58:32 christos Exp $ */ /* @@ -318,7 +318,7 @@ const struct protosw inetsw[] = { .pr_type = SOCK_RAW, .pr_domain = &inetdomain, .pr_protocol = IPPROTO_GRE, - .pr_flags = PR_ATOMIC|PR_ADDR, + .pr_flags = PR_ATOMIC|PR_ADDR|PR_MPSOCKET, .pr_input = gre_input, .pr_ctloutput = rip_ctloutput, .pr_usrreqs = &gre_usrreqs,