mld6_var.h revision 139826
162587Sitojun/* $FreeBSD: head/sys/netinet6/mld6_var.h 139826 2005-01-07 02:30:35Z imp $ */ 262587Sitojun/* $KAME: mld6_var.h,v 1.4 2000/03/25 07:23:54 sumikawa Exp $ */ 362587Sitojun 4139826Simp/*- 553541Sshin * Copyright (C) 1998 WIDE Project. 653541Sshin * All rights reserved. 753541Sshin * 853541Sshin * Redistribution and use in source and binary forms, with or without 953541Sshin * modification, are permitted provided that the following conditions 1053541Sshin * are met: 1153541Sshin * 1. Redistributions of source code must retain the above copyright 1253541Sshin * notice, this list of conditions and the following disclaimer. 1353541Sshin * 2. Redistributions in binary form must reproduce the above copyright 1453541Sshin * notice, this list of conditions and the following disclaimer in the 1553541Sshin * documentation and/or other materials provided with the distribution. 1653541Sshin * 3. Neither the name of the project nor the names of its contributors 1753541Sshin * may be used to endorse or promote products derived from this software 1853541Sshin * without specific prior written permission. 1953541Sshin * 2053541Sshin * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 2153541Sshin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2253541Sshin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2353541Sshin * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2453541Sshin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2553541Sshin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2653541Sshin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2753541Sshin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2853541Sshin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2953541Sshin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3053541Sshin * SUCH DAMAGE. 3153541Sshin */ 3253541Sshin 3353541Sshin#ifndef _NETINET6_MLD6_VAR_H_ 3462587Sitojun#define _NETINET6_MLD6_VAR_H_ 3553541Sshin 3653541Sshin#ifdef _KERNEL 3753541Sshin 38121808Sume#define MLD_RANDOM_DELAY(X) (arc4random() % (X) + 1) 3953541Sshin 4053541Sshin/* 4153541Sshin * States for MLD stop-listening processing 4253541Sshin */ 43121808Sume#define MLD_OTHERLISTENER 0 44121808Sume#define MLD_IREPORTEDLAST 1 4553541Sshin 46120941Sumevoid mld6_init(void); 47120941Sumevoid mld6_input(struct mbuf *, int); 48120941Sumevoid mld6_start_listening(struct in6_multi *); 49120941Sumevoid mld6_stop_listening(struct in6_multi *); 50120941Sumevoid mld6_fasttimeo(void); 5153541Sshin#endif /* _KERNEL */ 5253541Sshin 5353541Sshin#endif /* _NETINET6_MLD6_VAR_H_ */ 54