netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPv6: Bug in net-next
@ 2014-01-08 13:02 François-Xavier Le Bail
  2014-01-08 13:18 ` François-Xavier Le Bail
  2014-01-08 14:43 ` [PATCH net] ipv6: add link-local, sit and loopback address with INFINITY_LIFE_TIME Hannes Frederic Sowa
  0 siblings, 2 replies; 9+ messages in thread
From: François-Xavier Le Bail @ 2014-01-08 13:02 UTC (permalink / raw)
  To: netdev; +Cc: davem

Hello,

I think there is a bug in actual net-next.

When I execute this code and press Crtl-C, all the IPv6 Link-Layer addresses are deleted.

This happened between c1ddf295f5183a5189196a8035546842caa2055a and HEAD.

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/if.h>

int main (int argc, char **argv)
{
  struct ipv6_mreq mreq = { 0 };
  int sockfd1 = socket (AF_INET6, SOCK_DGRAM, 0);

  inet_pton (AF_INET6, "2a01:999::1", &mreq.ipv6mr_multiaddr);
  mreq.ipv6mr_interface = if_nametoindex ("dummy0");
  setsockopt (sockfd1, IPPROTO_IPV6, IPV6_JOIN_ANYCAST, &mreq, sizeof (mreq));

  pause ();
}

BR,
Francois-Xavier

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

end of thread, other threads:[~2014-01-10  4:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 13:02 IPv6: Bug in net-next François-Xavier Le Bail
2014-01-08 13:18 ` François-Xavier Le Bail
2014-01-08 13:35   ` François-Xavier Le Bail
2014-01-08 13:54     ` Damien Wyart
2014-01-08 14:04     ` Hannes Frederic Sowa
2014-01-08 14:13       ` Hannes Frederic Sowa
2014-01-08 14:43 ` [PATCH net] ipv6: add link-local, sit and loopback address with INFINITY_LIFE_TIME Hannes Frederic Sowa
2014-01-08 16:12   ` Damien Wyart
2014-01-10  4:09   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).