From e132a443e5373cc9e404c37b89e2ccc4cb845e8e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 31 Aug 2023 00:37:25 +0200 Subject: pfinet: Also accept MSG_NOSIGNAL in udpv6_sendmsg The implementation is shared with IPv4 --- pfinet/linux-src/net/ipv6/udp_ipv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3