1caf43b02SWarner Losh /*- 282cd038dSYoshinobu Inoue * Copyright (C) 1998 WIDE Project. 382cd038dSYoshinobu Inoue * All rights reserved. 482cd038dSYoshinobu Inoue * 582cd038dSYoshinobu Inoue * Redistribution and use in source and binary forms, with or without 682cd038dSYoshinobu Inoue * modification, are permitted provided that the following conditions 782cd038dSYoshinobu Inoue * are met: 882cd038dSYoshinobu Inoue * 1. Redistributions of source code must retain the above copyright 982cd038dSYoshinobu Inoue * notice, this list of conditions and the following disclaimer. 1082cd038dSYoshinobu Inoue * 2. Redistributions in binary form must reproduce the above copyright 1182cd038dSYoshinobu Inoue * notice, this list of conditions and the following disclaimer in the 1282cd038dSYoshinobu Inoue * documentation and/or other materials provided with the distribution. 1382cd038dSYoshinobu Inoue * 3. Neither the name of the project nor the names of its contributors 1482cd038dSYoshinobu Inoue * may be used to endorse or promote products derived from this software 1582cd038dSYoshinobu Inoue * without specific prior written permission. 1682cd038dSYoshinobu Inoue * 1782cd038dSYoshinobu Inoue * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 1882cd038dSYoshinobu Inoue * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1982cd038dSYoshinobu Inoue * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2082cd038dSYoshinobu Inoue * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2182cd038dSYoshinobu Inoue * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2282cd038dSYoshinobu Inoue * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2382cd038dSYoshinobu Inoue * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2482cd038dSYoshinobu Inoue * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2582cd038dSYoshinobu Inoue * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2682cd038dSYoshinobu Inoue * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2782cd038dSYoshinobu Inoue * SUCH DAMAGE. 28b48287a3SDavid E. O'Brien * 29b48287a3SDavid E. O'Brien * $KAME: pim6_var.h,v 1.8 2000/06/06 08:07:43 jinmei Exp $ 30b48287a3SDavid E. O'Brien * $FreeBSD$ 3182cd038dSYoshinobu Inoue */ 3282cd038dSYoshinobu Inoue 3382cd038dSYoshinobu Inoue /* 3482cd038dSYoshinobu Inoue * Protocol Independent Multicast (PIM), 3582cd038dSYoshinobu Inoue * implementation-specific definitions. 3682cd038dSYoshinobu Inoue * 3782cd038dSYoshinobu Inoue * Written by George Edmond Eddy (Rusty), ISI, February 1998 3882cd038dSYoshinobu Inoue * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998 3982cd038dSYoshinobu Inoue */ 4082cd038dSYoshinobu Inoue 41b48287a3SDavid E. O'Brien #ifndef _NETINET6_PIM6_VAR_H_ 42b48287a3SDavid E. O'Brien #define _NETINET6_PIM6_VAR_H_ 43b48287a3SDavid E. O'Brien 4482cd038dSYoshinobu Inoue struct pim6stat { 45c80211e3SAndrey V. Elsukov uint64_t pim6s_rcv_total; /* total PIM messages received */ 46c80211e3SAndrey V. Elsukov uint64_t pim6s_rcv_tooshort; /* received with too few bytes */ 47c80211e3SAndrey V. Elsukov uint64_t pim6s_rcv_badsum; /* received with bad checksum */ 48c80211e3SAndrey V. Elsukov uint64_t pim6s_rcv_badversion; /* received bad PIM version */ 49c80211e3SAndrey V. Elsukov uint64_t pim6s_rcv_registers; /* received registers */ 50c80211e3SAndrey V. Elsukov uint64_t pim6s_rcv_badregisters; /* received invalid registers */ 51c80211e3SAndrey V. Elsukov uint64_t pim6s_snd_registers; /* sent registers */ 5282cd038dSYoshinobu Inoue }; 5382cd038dSYoshinobu Inoue 54686cdd19SJun-ichiro itojun Hagino #if (defined(KERNEL)) || (defined(_KERNEL)) 556f56329aSXin LI int pim6_input(struct mbuf **, int*, int); 56686cdd19SJun-ichiro itojun Hagino #endif /* KERNEL */ 5782cd038dSYoshinobu Inoue 5882cd038dSYoshinobu Inoue /* 59*5b26ea5dSJohn Baldwin * Identifiers for PIM sysctl nodes 6082cd038dSYoshinobu Inoue */ 61686cdd19SJun-ichiro itojun Hagino #define PIM6CTL_STATS 1 /* statistics (read-only) */ 6282cd038dSYoshinobu Inoue 6382cd038dSYoshinobu Inoue #endif /* _NETINET6_PIM6_VAR_H_ */ 64