diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-02-11 12:56:09 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-02-11 12:56:09 +0000 |
commit | 0dc05f9751dde6dc5371aa724bc5df3283d7e874 (patch) | |
tree | de7852d2d823f4c891f20ab2ba4c8e1c7e2b2e38 /sys | |
parent | f22cb4c167ecc691846c4d77312d6b11c4a925d3 (diff) |
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')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
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; } |