[PATCH] netinet/in.h: Add ip_mreqn structure
Samuel Thibault
samuel.thibault@gnu.org
Mon Aug 15 17:15:15 GMT 2022
Florian Weimer, le lun. 15 août 2022 15:13:53 +0200, a ecrit:
> > This is following the BSD and Linux definition.
> > ---
> > inet/netinet/in.h | 13 +++++++++++++
> > 1 file changed, 13 insertions(+)
> >
> > diff --git a/inet/netinet/in.h b/inet/netinet/in.h
> > index 1633bc64e4..362eb9e9e7 100644
> > --- a/inet/netinet/in.h
> > +++ b/inet/netinet/in.h
> > @@ -278,6 +278,19 @@ struct ip_mreq
> > struct in_addr imr_interface;
> > };
> >
> > +/* IPv4 multicast request with interface index. */
> > +struct ip_mreqn
> > + {
> > + /* IP multicast address of group. */
> > + struct in_addr imr_multiaddr;
> > +
> > + /* Local IP address of interface. */
> > + struct in_addr imr_address;
> > +
> > + /* Interface index. */
> > + int imr_ifindex;
> > + };
> > +
> > struct ip_mreq_source
> > {
> > /* IP multicast address of group. */
>
> I think you'll have to remove the definition from
> sysdeps/unix/sysv/linux/bits/in.h.
Oh, right, I didn't realize that that ip_mreq was also shared already.
Samuel
More information about the Libc-alpha
mailing list