pim6_var.h revision 256281
1130561Sobrien/*- 260484Sobrien * Copyright (C) 1998 WIDE Project. 3130561Sobrien * All rights reserved. 4130561Sobrien * 5130561Sobrien * Redistribution and use in source and binary forms, with or without 660484Sobrien * modification, are permitted provided that the following conditions 7130561Sobrien * are met: 8130561Sobrien * 1. Redistributions of source code must retain the above copyright 960484Sobrien * notice, this list of conditions and the following disclaimer. 10130561Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1160484Sobrien * notice, this list of conditions and the following disclaimer in the 1260484Sobrien * documentation and/or other materials provided with the distribution. 13130561Sobrien * 3. Neither the name of the project nor the names of its contributors 1460484Sobrien * may be used to endorse or promote products derived from this software 1560484Sobrien * without specific prior written permission. 16130561Sobrien * 1760484Sobrien * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 1860484Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19130561Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2060484Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2160484Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22130561Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2360484Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2460484Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25130561Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2677298Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2777298Sobrien * SUCH DAMAGE. 28130561Sobrien * 2960484Sobrien * $KAME: pim6_var.h,v 1.8 2000/06/06 08:07:43 jinmei Exp $ 3060484Sobrien * $FreeBSD: stable/10/sys/netinet6/pim6_var.h 254925 2013-08-26 18:16:05Z jhb $ 31130561Sobrien */ 3260484Sobrien 3360484Sobrien/* 34130561Sobrien * Protocol Independent Multicast (PIM), 35130561Sobrien * implementation-specific definitions. 36130561Sobrien * 37130561Sobrien * Written by George Edmond Eddy (Rusty), ISI, February 1998 3860484Sobrien * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998 3960484Sobrien */ 40218822Sdim 41218822Sdim#ifndef _NETINET6_PIM6_VAR_H_ 42218822Sdim#define _NETINET6_PIM6_VAR_H_ 43218822Sdim 44218822Sdimstruct pim6stat { 45218822Sdim uint64_t pim6s_rcv_total; /* total PIM messages received */ 46218822Sdim uint64_t pim6s_rcv_tooshort; /* received with too few bytes */ 47218822Sdim uint64_t pim6s_rcv_badsum; /* received with bad checksum */ 48218822Sdim uint64_t pim6s_rcv_badversion; /* received bad PIM version */ 49218822Sdim uint64_t pim6s_rcv_registers; /* received registers */ 50218822Sdim uint64_t pim6s_rcv_badregisters; /* received invalid registers */ 51218822Sdim uint64_t pim6s_snd_registers; /* sent registers */ 52218822Sdim}; 53218822Sdim 54218822Sdim#if (defined(KERNEL)) || (defined(_KERNEL)) 55218822Sdimint pim6_input(struct mbuf **, int*, int); 56218822Sdim#endif /* KERNEL */ 57218822Sdim 58218822Sdim/* 59218822Sdim * Names for PIM sysctl objects 60218822Sdim */ 61218822Sdim#define PIM6CTL_STATS 1 /* statistics (read-only) */ 62218822Sdim#define PIM6CTL_MAXID 2 63218822Sdim 64218822Sdim#endif /* _NETINET6_PIM6_VAR_H_ */ 65218822Sdim