From 16962a5a009ce73b0c77248fa003b5ca712b1acc Mon Sep 17 00:00:00 2001 From: Mandar Gokhale Date: Tue, 22 Nov 2016 20:49:54 -0500 Subject: mausezahn: Use all-nodes link local address for IPv6 Use all-nodes link local address for IPv6 when destination is not specified. There is a comment that says this should be done anyway. According to RFC 4291, FF01:0:0:0:0:0:0:1 should be the correct address. Signed-off-by: Mandar Gokhale Signed-off-by: Tobias Klauser --- staging/mausezahn.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/staging/mausezahn.c b/staging/mausezahn.c index 32bcdc5..ec3bc0e 100644 --- a/staging/mausezahn.c +++ b/staging/mausezahn.c @@ -719,9 +719,7 @@ int getopts (int argc, char *argv[]) } else { // no destination IP specified: by default use broadcast if (ipv6_mode) { - // XXX I think we want to use a link-local - // broadcast address instead. - tx.ip6_dst = libnet_name2addr6 (l, "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", LIBNET_DONT_RESOLVE); + tx.ip6_dst = libnet_name2addr6 (l, "ff02::1", LIBNET_DONT_RESOLVE); } else { tx.ip_dst = libnet_name2addr4 (l, "255.255.255.255", LIBNET_DONT_RESOLVE); } -- cgit v1.2.3-54-g00ecf