Re: multicast, ETOOMANYREFS and intro(2)

2016-02-08 Thread Jérémie Courrèges-Anglas
"Todd C. Miller" writes: > On Fri, 05 Feb 2016 17:17:30 +0100, Martin Pieuchot wrote: > >> > > We could also return ENOBUFS in this case instead. That would >> > > correspond to the errors described in ip(4) (sadly setsockopt(2) is not >> > > really reflecting the code). >> > > >> > > Jérémie wh

Re: multicast, ETOOMANYREFS and intro(2)

2016-02-07 Thread Todd C. Miller
On Fri, 05 Feb 2016 17:17:30 +0100, Martin Pieuchot wrote: > > > We could also return ENOBUFS in this case instead. That would > > > correspond to the errors described in ip(4) (sadly setsockopt(2) is not > > > really reflecting the code). > > > > > > Jérémie what other OSes report as errors for

Re: multicast, ETOOMANYREFS and intro(2)

2016-02-05 Thread Martin Pieuchot
On 05/02/16(Fri) 14:06, Jérémie Courrèges-Anglas wrote: > Martin Pieuchot writes: > > > On 01/02/16(Mon) 13:15, Todd C. Miller wrote: > >> On Mon, 01 Feb 2016 19:56:01 +0100, > >> =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- > >> Anglas?= wrote: > >> > >> > intro(2) describes it as such: > >> >

Re: multicast, ETOOMANYREFS and intro(2)

2016-02-05 Thread Jérémie Courrèges-Anglas
Martin Pieuchot writes: > On 01/02/16(Mon) 13:15, Todd C. Miller wrote: >> On Mon, 01 Feb 2016 19:56:01 +0100, >> =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- >> Anglas?= wrote: >> >> > intro(2) describes it as such: >> > >> > 59 ETOOMANYREFS Too many references: can't splice. Not used in Ope

Re: multicast, ETOOMANYREFS and intro(2)

2016-02-02 Thread Martin Pieuchot
On 01/02/16(Mon) 13:15, Todd C. Miller wrote: > On Mon, 01 Feb 2016 19:56:01 +0100, > =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- > Anglas?= wrote: > > > intro(2) describes it as such: > > > > 59 ETOOMANYREFS Too many references: can't splice. Not used in OpenBSD. > > > > Obviously it *is* us

Re: multicast, ETOOMANYREFS and intro(2)

2016-02-01 Thread Todd C. Miller
On Mon, 01 Feb 2016 19:56:01 +0100, =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- Anglas?= wrote: > intro(2) describes it as such: > > 59 ETOOMANYREFS Too many references: can't splice. Not used in OpenBSD. > > Obviously it *is* used, since rev. 1.1. FreeBSD and NetBSD also make > use of it, bu

multicast, ETOOMANYREFS and intro(2)

2016-02-01 Thread Jérémie Courrèges-Anglas
Hi, while glancing at the multicast code I noticed the use of ETOOMANYREFS: if (imo->imo_num_memberships == imo->imo_max_memberships) { struct in_multi **nmships, **omships; size_t newmax; /*