pim6_var.h revision 253081
1178825Sdfr/*-
2233294Sstas * Copyright (C) 1998 WIDE Project.
3233294Sstas * All rights reserved.
4233294Sstas *
5178825Sdfr * Redistribution and use in source and binary forms, with or without
6233294Sstas * modification, are permitted provided that the following conditions
7233294Sstas * are met:
8233294Sstas * 1. Redistributions of source code must retain the above copyright
9178825Sdfr *    notice, this list of conditions and the following disclaimer.
10233294Sstas * 2. Redistributions in binary form must reproduce the above copyright
11233294Sstas *    notice, this list of conditions and the following disclaimer in the
12178825Sdfr *    documentation and/or other materials provided with the distribution.
13233294Sstas * 3. Neither the name of the project nor the names of its contributors
14233294Sstas *    may be used to endorse or promote products derived from this software
15233294Sstas *    without specific prior written permission.
16178825Sdfr *
17178825Sdfr * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
18178825Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19178825Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20178825Sdfr * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
21178825Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22178825Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23178825Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24178825Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25178825Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26178825Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27178825Sdfr * SUCH DAMAGE.
28178825Sdfr *
29178825Sdfr *	$KAME: pim6_var.h,v 1.8 2000/06/06 08:07:43 jinmei Exp $
30178825Sdfr * $FreeBSD: head/sys/netinet6/pim6_var.h 253081 2013-07-09 09:32:06Z ae $
31178825Sdfr */
32178825Sdfr
33178825Sdfr/*
34178825Sdfr * Protocol Independent Multicast (PIM),
35178825Sdfr * implementation-specific definitions.
36178825Sdfr *
37178825Sdfr * Written by George Edmond Eddy (Rusty), ISI, February 1998
38178825Sdfr * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998
39178825Sdfr */
40178825Sdfr
41178825Sdfr#ifndef _NETINET6_PIM6_VAR_H_
42178825Sdfr#define _NETINET6_PIM6_VAR_H_
43178825Sdfr
44178825Sdfrstruct pim6stat {
45233294Sstas	uint64_t pim6s_rcv_total;	/* total PIM messages received	*/
46233294Sstas	uint64_t pim6s_rcv_tooshort;	/* received with too few bytes	*/
47178825Sdfr	uint64_t pim6s_rcv_badsum;	/* received with bad checksum	*/
48178825Sdfr	uint64_t pim6s_rcv_badversion;	/* received bad PIM version	*/
49178825Sdfr	uint64_t pim6s_rcv_registers;	/* received registers		*/
50178825Sdfr	uint64_t pim6s_rcv_badregisters; /* received invalid registers	*/
51178825Sdfr	uint64_t pim6s_snd_registers;	/* sent registers		*/
52178825Sdfr};
53178825Sdfr
54178825Sdfr#if (defined(KERNEL)) || (defined(_KERNEL))
55178825Sdfrint pim6_input(struct mbuf **, int*, int);
56178825Sdfr#endif /* KERNEL */
57178825Sdfr
58178825Sdfr/*
59178825Sdfr * Names for PIM sysctl objects
60178825Sdfr */
61178825Sdfr#define PIM6CTL_STATS		1	/* statistics (read-only) */
62178825Sdfr#define PIM6CTL_MAXID		2
63178825Sdfr
64178825Sdfr#define PIM6CTL_NAMES { \
65178825Sdfr	{ 0, 0 }, \
66178825Sdfr	{ 0, 0 }, \
67178825Sdfr}
68178825Sdfr#endif /* _NETINET6_PIM6_VAR_H_ */
69178825Sdfr