pim6_var.h revision 241916
1214117Sjamie/*-
2214117Sjamie * Copyright (C) 1998 WIDE Project.
3214117Sjamie * All rights reserved.
4214117Sjamie *
5214117Sjamie * Redistribution and use in source and binary forms, with or without
6214117Sjamie * modification, are permitted provided that the following conditions
7214117Sjamie * are met:
8214117Sjamie * 1. Redistributions of source code must retain the above copyright
9214117Sjamie *    notice, this list of conditions and the following disclaimer.
10214117Sjamie * 2. Redistributions in binary form must reproduce the above copyright
11214117Sjamie *    notice, this list of conditions and the following disclaimer in the
12214117Sjamie *    documentation and/or other materials provided with the distribution.
13214117Sjamie * 3. Neither the name of the project nor the names of its contributors
14214117Sjamie *    may be used to endorse or promote products derived from this software
15214117Sjamie *    without specific prior written permission.
16214117Sjamie *
17214117Sjamie * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
18214117Sjamie * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19214117Sjamie * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20214117Sjamie * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
21214117Sjamie * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22214117Sjamie * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23214117Sjamie * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24214117Sjamie * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25214117Sjamie * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26214117Sjamie * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27214117Sjamie * SUCH DAMAGE.
28214117Sjamie *
29214117Sjamie *	$KAME: pim6_var.h,v 1.8 2000/06/06 08:07:43 jinmei Exp $
30214117Sjamie * $FreeBSD: head/sys/netinet6/pim6_var.h 241916 2012-10-22 21:49:56Z delphij $
31214783Sjamie */
32214117Sjamie
33214117Sjamie/*
34214117Sjamie * Protocol Independent Multicast (PIM),
35214117Sjamie * implementation-specific definitions.
36214117Sjamie *
37214117Sjamie * Written by George Edmond Eddy (Rusty), ISI, February 1998
38214117Sjamie * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998
39214117Sjamie */
40214117Sjamie
41214117Sjamie#ifndef _NETINET6_PIM6_VAR_H_
42214117Sjamie#define _NETINET6_PIM6_VAR_H_
43214117Sjamie
44214117Sjamiestruct pim6stat {
45214117Sjamie	u_quad_t pim6s_rcv_total;	/* total PIM messages received	*/
46214117Sjamie	u_quad_t pim6s_rcv_tooshort;	/* received with too few bytes	*/
47214117Sjamie	u_quad_t pim6s_rcv_badsum;	/* received with bad checksum	*/
48214117Sjamie	u_quad_t pim6s_rcv_badversion;	/* received bad PIM version	*/
49214117Sjamie	u_quad_t pim6s_rcv_registers;	/* received registers		*/
50214117Sjamie	u_quad_t pim6s_rcv_badregisters; /* received invalid registers	*/
51214117Sjamie	u_quad_t pim6s_snd_registers;	/* sent registers		*/
52214117Sjamie};
53214117Sjamie
54214117Sjamie#if (defined(KERNEL)) || (defined(_KERNEL))
55214117Sjamieint pim6_input(struct mbuf **, int*, int);
56214117Sjamie#endif /* KERNEL */
57214117Sjamie
58214117Sjamie/*
59214117Sjamie * Names for PIM sysctl objects
60214423Sjamie */
61214423Sjamie#define PIM6CTL_STATS		1	/* statistics (read-only) */
62214423Sjamie#define PIM6CTL_MAXID		2
63214423Sjamie
64214423Sjamie#define PIM6CTL_NAMES { \
65214423Sjamie	{ 0, 0 }, \
66214423Sjamie	{ 0, 0 }, \
67214423Sjamie}
68214423Sjamie#endif /* _NETINET6_PIM6_VAR_H_ */
69214423Sjamie