igmp.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990 Mentat Inc. */
#ifndef _NETINET_IGMP_H
#define _NETINET_IGMP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Internet Group Management Protocol (IGMP) definitions.
*
* Written by Steve Deering, Stanford, May 1988.
* Modified by Rosen Sharma, Stanford, Aug 1994
* Modified by Bill Fenner, Xerox PARC, April 1995
*
* MULTICAST 3.5.1.1
*/
/*
* IGMP packet format.
*/
struct igmp {
}; /* (zero for queries) */
/* IGMPv3 Membership Report common header */
struct igmp3r {
};
/* IGMPv3 Group Record header */
struct grphdr {
};
/* IGMPv3 Membership Query header */
struct igmp3q {
};
#ifdef _KERNEL
typedef struct igmp_s {
} igmp_t; /* (zero for queries) */
/* Aligned igmp header */
typedef struct igmpa_s {
} igmpa_t; /* (zero for queries) */
/* Aligned IGMPv3 Membership Report common header */
typedef struct igmp3ra_s {
} igmp3ra_t;
/* Aligned IGMPv3 Group Record header */
typedef struct grphdra_s {
} grphdra_t;
/* Aligned IGMpv3 Membership Query header */
typedef struct igmp3qa_s {
} igmp3qa_t;
#endif /* _KERNEL */
#define IGMP_MINLEN 8
#define IGMP_V3_QUERY_MINLEN 12
/*
* Message types, including version number.
*/
/* query (in seconds) */
/* according to RFC1112 */
#define IGMP_V3_MAXRT_MANT_MASK 0x0f
#define IGMP_V3_MAXRT_EXP_MASK 0x70
#define IGMP_V3_QQI_MANT_MASK 0x0f
#define IGMP_V3_QQI_EXP_MASK 0x70
/*
* IGMPv3/MLDv2-specific definitions
*/
/*
* Group Record Types. The values of these enums match the Record Type
* field values defined in RFCs 3376 and 3810 for IGMPv3 and MLDv2 reports.
*/
typedef enum {
MODE_IS_INCLUDE = 1,
/* Router Alert Option */
#define RTRALERT_LEN 4
#define RTRALERT_LEN_IN_WORDS 1
/*
* The following four defininitions are for backwards compatibility.
* They should be removed as soon as all applications are updated to
* use the new constant names.
*/
#ifdef __cplusplus
}
#endif
#endif /* _NETINET_IGMP_H */