diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-07-13 12:00:12 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-07-13 12:00:12 +0000 |
commit | 26645bfb61e3f02e4cdc5642dfaa16bfd1c86a7b (patch) | |
tree | 3ab1cd7ae033d2c2dbf4a84f13ea82bcf759c27c /sys | |
parent | 06c98dbcc118d5bb64de3e3ba001584943974636 (diff) |
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@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/in_proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |