summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-31 00:37:25 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-31 00:38:14 +0200
commite132a443e5373cc9e404c37b89e2ccc4cb845e8e (patch)
tree65dcdf2d2601bc5b8b348700a2018007125afa36
parent6f5bf154ba60bc5067760fcaf52a222ee7e2bc2e (diff)
pfinet: Also accept MSG_NOSIGNAL in udpv6_sendmsg
The implementation is shared with IPv4
-rw-r--r--pfinet/linux-src/net/ipv6/udp_ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/linux-src/net/ipv6/udp_ipv6.c b/pfinet/linux-src/net/ipv6/udp_ipv6.c
index f838d251..6d4bbdb9 100644
--- a/pfinet/linux-src/net/ipv6/udp_ipv6.c
+++ b/pfinet/linux-src/net/ipv6/udp_ipv6.c
@@ -840,7 +840,7 @@ static int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, int ulen)
if (ulen < 0 || ulen > INT_MAX - sizeof(struct udphdr))
return -EMSGSIZE;
- if (msg->msg_flags & ~(MSG_DONTROUTE|MSG_DONTWAIT))
+ if (msg->msg_flags & ~(MSG_DONTROUTE|MSG_DONTWAIT|MSG_NOSIGNAL))
return(-EINVAL);
fl.fl6_flowlabel = 0;