summaryrefslogtreecommitdiff
path: root/sys/netinet6/mld6.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-03-22 12:23:33 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-03-22 12:23:33 +0000
commit3659baf68e2f564b79732ab8c8c4aae55b6300b7 (patch)
tree094a27929c34dec2eb13845b571a0ff06a3ee57f /sys/netinet6/mld6.c
parentcae100898fb430efb19404c4a9f8d4453a0d1557 (diff)
Add some MLDv2 definitions from FreeBSD.
Diffstat (limited to 'sys/netinet6/mld6.c')
-rw-r--r--sys/netinet6/mld6.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index 19da4d2e58f..9912af79787 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mld6.c,v 1.25 2008/06/11 19:00:50 mcbride Exp $ */
+/* $OpenBSD: mld6.c,v 1.26 2010/03/22 12:23:32 jsg Exp $ */
/* $KAME: mld6.c,v 1.26 2001/02/16 14:50:35 itojun Exp $ */
/*
@@ -80,20 +80,9 @@
#include <netinet/ip6.h>
#include <netinet6/ip6_var.h>
#include <netinet/icmp6.h>
+#include <netinet6/mld6.h>
#include <netinet6/mld6_var.h>
-/*
- * Protocol constants
- */
-
-/* denotes that the MLD max response delay field specifies time in milliseconds */
-#define MLD_TIMER_SCALE 1000
-/*
- * time between repetitions of a node's initial report of interest in a
- * multicast address(in seconds)
- */
-#define MLD_UNSOLICITED_REPORT_INTERVAL 10
-
static struct ip6_pktopts ip6_opts;
static int mld_timers_are_running;
/* XXX: These are necessary for KAME's link-local hack */
@@ -145,7 +134,7 @@ mld6_start_listening(struct in6_multi *in6m)
} else {
mld6_sendpkt(in6m, MLD_LISTENER_REPORT, NULL);
in6m->in6m_timer =
- MLD_RANDOM_DELAY(MLD_UNSOLICITED_REPORT_INTERVAL *
+ MLD_RANDOM_DELAY(MLD_V1_MAX_RI *
PR_FASTHZ);
in6m->in6m_state = MLD_IREPORTEDLAST;
mld_timers_are_running = 1;