Annotation of embedaddon/pimdd/include/sunos-gcc/netinet/pim_var.h, revision 1.1.1.1
1.1 misho 1: /* $Id: pim_var.h,v 1.1 1998/06/01 22:29:43 kurtw Exp $ */
2:
3: #ifndef _NETINET_PIM_VAR_H_
4: #define _NETINET_PIM_VAR_H_
5:
6: /*
7: * Protocol Independent Multicast (PIM),
8: * implementation-specific definitions.
9: *
10: * Written by George Edmond Eddy (Rusty), ISI, February 1998
11: * Modified by Pavlin Ivanov Radoslavov, USC/ISI, May 1998
12: */
13:
14: struct pimstat {
15: u_int pim_rcv_total; /* total PIM messages received */
16: u_int pim_rcv_tooshort; /* received with too few bytes */
17: u_int pim_rcv_badsum; /* received with bad checksum */
18: u_int pim_rcv_badversion; /* received bad PIM version */
19: u_int pim_rcv_registers; /* received registers */
20: u_int pim_rcv_badregisters; /* received invalid registers */
21: u_int pim_snd_registers; /* sent registers */
22: };
23:
24: #if (defined(KERNEL)) || (defined(_KERNEL))
25: extern struct pimstat pimstat;
26: #ifndef __P
27: #ifdef __STDC__
28: #define __P(x) x
29: #else
30: #define __P(x) ()
31: #endif
32: #endif
33:
34: #ifdef NetBSD
35: void pim_input __P((struct mbuf *, ...));
36: #else
37: void pim_input __P((struct mbuf *, int));
38: #endif
39: #endif /* KERNEL */
40:
41: /*
42: * Names for PIM sysctl objects
43: */
44: #if (defined(__FreeBSD__)) || (defined(NetBSD))
45: #define PIMCTL_STATS 1 /* statistics (read-only) */
46: #define PIMCTL_MAXID 2
47:
48: #define PIMCTL_NAMES { \
49: { 0, 0 }, \
50: { "stats", CTLTYPE_STRUCT }, \
51: }
52: #endif /* FreeBSD || NetBSD */
53:
54: #endif /* _NETINET_PIM_VAR_H_ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>