File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / pimdd / include / netbsd / netinet / pim_var.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jun 12 07:58:55 2017 UTC (7 years, 4 months ago) by misho
Branches: pimdd, MAIN
CVS tags: v0_2_1p0, v0_2_1, HEAD
pimdd-dense 0.2.1.0_2

/* $Id: pim_var.h,v 1.1.1.1 2017/06/12 07:58:55 misho Exp $ */

#ifndef _NETINET_PIM_VAR_H_
#define _NETINET_PIM_VAR_H_

/*
 * Protocol Independent Multicast (PIM),
 * implementation-specific definitions.
 *
 * Written by George Edmond Eddy (Rusty), ISI, February 1998
 * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998
 */

struct pimstat {
    u_int	pim_rcv_total;		/* total PIM messages received	*/
    u_int	pim_rcv_tooshort;	/* received with too few bytes	*/
    u_int	pim_rcv_badsum;		/* received with bad checksum	*/
    u_int	pim_rcv_badversion;	/* received bad PIM version	*/
    u_int	pim_rcv_registers;	/* received registers		*/
    u_int	pim_rcv_badregisters;	/* received invalid registers	*/
    u_int	pim_snd_registers;	/* sent registers		*/
};

#if (defined(KERNEL)) || (defined(_KERNEL))
extern struct pimstat pimstat;

#ifdef NetBSD
void pim_input __P((struct mbuf *, ...));
#else
void pim_input __P((struct mbuf *, int));
#endif
#endif /* KERNEL */

/*
 * Names for PIM sysctl objects
 */
#if (defined(__FreeBSD__)) || (defined(NetBSD))
#define PIMCTL_STATS		1	/* statistics (read-only) */
#define PIMCTL_MAXID		2

#define PIMCTL_NAMES { \
	{ 0, 0 }, \
	{ "stats", CTLTYPE_STRUCT }, \
}
#endif /* FreeBSD || NetBSD */

#endif /* _NETINET_PIM_VAR_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>