source: trunk/src/emx/include/netinet/igmp_var.h@ 512

Last change on this file since 512 was 183, checked in by bird, 23 years ago

#434: Initial tcpip header merges.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1/* Modified for gcc/os2 by bird 2003
2 *
3 * Copyright (c) 1988 Stephen Deering.
4 * Copyright (c) 1992, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Stephen Deering of Stanford University.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)igmp_var.h 8.1 (Berkeley) 7/19/93
39 * $FreeBSD: src/sys/netinet/igmp_var.h,v 1.17 1999/12/29 04:40:59 peter Exp $
40 */
41
42#ifndef _NETINET_IGMP_VAR_H_
43#define _NETINET_IGMP_VAR_H_
44
45#ifndef TCPV40HDRS
46
47/*
48 * Internet Group Management Protocol (IGMP),
49 * implementation-specific definitions.
50 *
51 * Written by Steve Deering, Stanford, May 1988.
52 *
53 * MULTICAST Revision: 3.5.1.3
54 */
55
56struct igmpstat {
57 u_int igps_rcv_total; /* total IGMP messages received */
58 u_int igps_rcv_tooshort; /* received with too few bytes */
59 u_int igps_rcv_badsum; /* received with bad checksum */
60 u_int igps_rcv_queries; /* received membership queries */
61 u_int igps_rcv_badqueries; /* received invalid queries */
62 u_int igps_rcv_reports; /* received membership reports */
63 u_int igps_rcv_badreports; /* received invalid reports */
64 u_int igps_rcv_ourreports; /* received reports for our groups */
65 u_int igps_snd_reports; /* sent membership reports */
66};
67
68#if 0 /* not on OS/2 */
69#ifdef _KERNEL
70#define IGMP_RANDOM_DELAY(X) (random() % (X) + 1)
71
72/*
73 * States for IGMPv2's leave processing
74 */
75#define IGMP_OTHERMEMBER 0
76#define IGMP_IREPORTEDLAST 1
77
78/*
79 * We must remember what version the subnet's querier is.
80 * We conveniently use the IGMP message type for the proper
81 * membership report to keep this state.
82 */
83#define IGMP_V1_ROUTER IGMP_V1_MEMBERSHIP_REPORT
84#define IGMP_V2_ROUTER IGMP_V2_MEMBERSHIP_REPORT
85
86/*
87 * Revert to new router if we haven't heard from an old router in
88 * this amount of time.
89 */
90#define IGMP_AGE_THRESHOLD 540
91
92void igmp_init __P((void));
93void igmp_input __P((struct mbuf *, int, int));
94void igmp_joingroup __P((struct in_multi *));
95void igmp_leavegroup __P((struct in_multi *));
96void igmp_fasttimo __P((void));
97void igmp_slowtimo __P((void));
98
99SYSCTL_DECL(_net_inet_igmp);
100
101#endif /*_KERNEL*/
102
103/*
104 * Names for IGMP sysctl objects
105 */
106#define IGMPCTL_STATS 1 /* statistics (read-only) */
107#define IGMPCTL_MAXID 2
108
109#define IGMPCTL_NAMES { \
110 { 0, 0 }, \
111 { "stats", CTLTYPE_STRUCT }, \
112}
113#endif /*0*/
114
115#endif /* !TCPV40HDRS */
116#endif
Note: See TracBrowser for help on using the repository browser.