summaryrefslogtreecommitdiff
path: root/staging
diff options
context:
space:
mode:
authorMandar Gokhale <mandarg@mandarg.com>2016-11-22 20:49:54 -0500
committerTobias Klauser <tklauser@distanz.ch>2016-11-23 11:13:59 +0100
commit16962a5a009ce73b0c77248fa003b5ca712b1acc (patch)
treeae85776c2d866f3eace4fc27d8206ee09a8275d4 /staging
parenta685d6d030ea5599f97346d9607b149cddaec682 (diff)
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 <mandarg@mandarg.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'staging')
-rw-r--r--staging/mausezahn.c4
1 files changed, 1 insertions, 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);
}