[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1389186135.88856.YahooMailBasic@web125506.mail.ne1.yahoo.com>
Date: Wed, 8 Jan 2014 05:02:15 -0800 (PST)
From: François-Xavier Le Bail <fx.lebail@...oo.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net
Subject: IPv6: Bug in net-next
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists