From: Felix von Leitner <leitner@fefe.de>
To: linux-kernel@vger.kernel.org
Subject: Linux kernel headers violate RFC2553
Date: Fri, 8 Jun 2001 19:57:19 +0200 [thread overview]
Message-ID: <20010608195719.A4862@fefe.de> (raw)
glibc works around this, but the diet libc uses the kernel headers and
thus exports the wrong API to user land.
Here is what RFC2553 mandates:
struct ipv6_mreq {
struct in6_addr ipv6mr_multiaddr; /* IPv6 multicast addr */
unsigned int ipv6mr_interface; /* interface index */
};
...and here is what include/linux/in6.h declares:
struct ipv6_mreq {
/* IPv6 multicast address of group */
struct in6_addr ipv6mr_multiaddr;
/* local IPv6 address of interface */
int ipv6mr_ifindex;
};
Note the ipv6mr_ifindex instead of the correct ipv6mr_interface.
This wrong name is only used twice in net/ipv6/ipv6_sockglue.c, so it should be
trivial to fix.
Felix
next reply other threads:[~2001-06-08 17:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-08 17:57 Felix von Leitner [this message]
2001-06-08 19:05 ` Linux kernel headers violate RFC2553 David S. Miller
2001-06-08 19:12 ` Felix von Leitner
2001-06-08 21:31 ` David S. Miller
2001-06-08 21:49 ` Linus Torvalds
2001-06-08 23:06 ` Oliver Xymoron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010608195719.A4862@fefe.de \
--to=leitner@fefe.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox