All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux kernel headers violate RFC2553
@ 2001-06-08 17:57 Felix von Leitner
  2001-06-08 19:05 ` David S. Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Felix von Leitner @ 2001-06-08 17:57 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-06-08 23:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-08 17:57 Linux kernel headers violate RFC2553 Felix von Leitner
2001-06-08 19:05 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.