summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2016-02-11 12:56:08 +0000
committerjca <jca@openbsd.org>2016-02-11 12:56:08 +0000
commit42eb6af224633cf5be4af4cd6029db0143644056 (patch)
tree758d71b9bcba06499822a2f308c26f2759c91262 /sys/netinet/ip_output.c
parentipmi(4) - Check sensor name length more carefully (diff)
downloadwireguard-openbsd-42eb6af224633cf5be4af4cd6029db0143644056.tar.xz
wireguard-openbsd-42eb6af224633cf5be4af4cd6029db0143644056.zip
Return ENOBUFS when bumping in the multicast max group memberships
This removes the only use of ETOOMANYREFS in our code, making intro(2) match reality. No software out there explicitely checks for ETOOMANYREFS in multicast code. Discussed with millert@ and mpi@ (who suggested using ENOBUFS)
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 385f908aa9b..eaf45fef8c7 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.317 2016/01/21 11:23:48 mpi Exp $ */
+/* $OpenBSD: ip_output.c,v 1.318 2016/02/11 12:56:08 jca Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -1496,7 +1496,7 @@ ip_setmoptions(int optname, struct ip_moptions **imop, struct mbuf *m,
}
}
if (nmships == NULL) {
- error = ETOOMANYREFS;
+ error = ENOBUFS;
if_put(ifp);
break;
}