pim6_var.h revision 53541
153541Sshin/*
253541Sshin * Copyright (C) 1998 WIDE Project.
353541Sshin * All rights reserved.
453541Sshin *
553541Sshin * Redistribution and use in source and binary forms, with or without
653541Sshin * modification, are permitted provided that the following conditions
753541Sshin * are met:
853541Sshin * 1. Redistributions of source code must retain the above copyright
953541Sshin *    notice, this list of conditions and the following disclaimer.
1053541Sshin * 2. Redistributions in binary form must reproduce the above copyright
1153541Sshin *    notice, this list of conditions and the following disclaimer in the
1253541Sshin *    documentation and/or other materials provided with the distribution.
1353541Sshin * 3. Neither the name of the project nor the names of its contributors
1453541Sshin *    may be used to endorse or promote products derived from this software
1553541Sshin *    without specific prior written permission.
1653541Sshin *
1753541Sshin * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
1853541Sshin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1953541Sshin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2053541Sshin * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
2153541Sshin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2253541Sshin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2353541Sshin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2453541Sshin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2553541Sshin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2653541Sshin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2753541Sshin * SUCH DAMAGE.
2853541Sshin *
2953541Sshin * $FreeBSD: head/sys/netinet6/pim6_var.h 53541 1999-11-22 02:45:11Z shin $
3053541Sshin */
3153541Sshin/* $Id: pim6_var.h,v 1.2 1999/08/01 15:58:13 itojun Exp $ */
3253541Sshin
3353541Sshin#ifndef _NETINET6_PIM6_VAR_H_
3453541Sshin#define _NETINET6_PIM6_VAR_H_
3553541Sshin
3653541Sshin/*
3753541Sshin * Protocol Independent Multicast (PIM),
3853541Sshin * implementation-specific definitions.
3953541Sshin *
4053541Sshin * Written by George Edmond Eddy (Rusty), ISI, February 1998
4153541Sshin * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998
4253541Sshin */
4353541Sshin
4453541Sshinstruct pim6stat {
4553541Sshin	u_int	pim6s_rcv_total;	/* total PIM messages received	*/
4653541Sshin	u_int	pim6s_rcv_tooshort;	/* received with too few bytes	*/
4753541Sshin	u_int	pim6s_rcv_badsum;	/* received with bad checksum	*/
4853541Sshin	u_int	pim6s_rcv_badversion;	/* received bad PIM version	*/
4953541Sshin	u_int	pim6s_rcv_registers;	/* received registers		*/
5053541Sshin	u_int	pim6s_rcv_badregisters;	/* received invalid registers	*/
5153541Sshin	u_int	pim6s_snd_registers;	/* sent registers		*/
5253541Sshin};
5353541Sshin
5453541Sshin#if (defined(KERNEL)) || (defined(_KERNEL))
5553541Sshinextern struct	pim6stat pim6stat;
5653541Sshin
5753541Sshinint	pim6_input __P((struct mbuf **, int*, int));
5853541Sshin#endif /* KERNEL */
5953541Sshin
6053541Sshin/*
6153541Sshin * Names for PIM sysctl objects
6253541Sshin */
6353541Sshin#define	PIMCTL_STATS		1	/* statistics (read-only) */
6453541Sshin#define	PIMCTL_MAXID		2
6553541Sshin
6653541Sshin#define	PIMCTL_NAMES { \
6753541Sshin	{ 0, 0 }, \
6853541Sshin	{ 0, 0 }, \
6953541Sshin}
7053541Sshin
7153541Sshin#endif /* _NETINET6_PIM6_VAR_H_ */
72