Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/netinet
File: igmp.h
/* Copyright (C) 1997-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _NETINET_IGMP_H
[17] Fix | Delete
#define _NETINET_IGMP_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <sys/cdefs.h>
[20] Fix | Delete
#include <sys/types.h>
[21] Fix | Delete
[22] Fix | Delete
#ifdef __USE_MISC
[23] Fix | Delete
[24] Fix | Delete
#include <netinet/in.h>
[25] Fix | Delete
[26] Fix | Delete
__BEGIN_DECLS
[27] Fix | Delete
[28] Fix | Delete
/*
[29] Fix | Delete
* Copyright (c) 1988 Stephen Deering.
[30] Fix | Delete
* Copyright (c) 1992, 1993
[31] Fix | Delete
* The Regents of the University of California. All rights reserved.
[32] Fix | Delete
*
[33] Fix | Delete
* This code is derived from software contributed to Berkeley by
[34] Fix | Delete
* Stephen Deering of Stanford University.
[35] Fix | Delete
*
[36] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[37] Fix | Delete
* modification, are permitted provided that the following conditions
[38] Fix | Delete
* are met:
[39] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[40] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[41] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[42] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[43] Fix | Delete
* documentation and/or other materials provided with the distribution.
[44] Fix | Delete
* 4. Neither the name of the University nor the names of its contributors
[45] Fix | Delete
* may be used to endorse or promote products derived from this software
[46] Fix | Delete
* without specific prior written permission.
[47] Fix | Delete
*
[48] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
[49] Fix | Delete
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[50] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[51] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
[52] Fix | Delete
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
[53] Fix | Delete
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
[54] Fix | Delete
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
[55] Fix | Delete
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
[56] Fix | Delete
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
[57] Fix | Delete
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
[58] Fix | Delete
* SUCH DAMAGE.
[59] Fix | Delete
*
[60] Fix | Delete
* @(#)igmp.h 8.1 (Berkeley) 6/10/93
[61] Fix | Delete
* $FreeBSD$
[62] Fix | Delete
*/
[63] Fix | Delete
[64] Fix | Delete
struct igmp {
[65] Fix | Delete
uint8_t igmp_type; /* IGMP type */
[66] Fix | Delete
uint8_t igmp_code; /* routing code */
[67] Fix | Delete
uint16_t igmp_cksum; /* checksum */
[68] Fix | Delete
struct in_addr igmp_group; /* group address */
[69] Fix | Delete
};
[70] Fix | Delete
[71] Fix | Delete
#define IGMP_MINLEN 8
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* Message types, including version number.
[75] Fix | Delete
*/
[76] Fix | Delete
#define IGMP_MEMBERSHIP_QUERY 0x11 /* membership query */
[77] Fix | Delete
#define IGMP_V1_MEMBERSHIP_REPORT 0x12 /* Ver. 1 membership report */
[78] Fix | Delete
#define IGMP_V2_MEMBERSHIP_REPORT 0x16 /* Ver. 2 membership report */
[79] Fix | Delete
#define IGMP_V2_LEAVE_GROUP 0x17 /* Leave-group message */
[80] Fix | Delete
[81] Fix | Delete
#define IGMP_DVMRP 0x13 /* DVMRP routing message */
[82] Fix | Delete
#define IGMP_PIM 0x14 /* PIM routing message */
[83] Fix | Delete
#define IGMP_TRACE 0x15
[84] Fix | Delete
[85] Fix | Delete
#define IGMP_MTRACE_RESP 0x1e /* traceroute resp.(to sender)*/
[86] Fix | Delete
#define IGMP_MTRACE 0x1f /* mcast traceroute messages */
[87] Fix | Delete
[88] Fix | Delete
#define IGMP_MAX_HOST_REPORT_DELAY 10 /* max delay for response to */
[89] Fix | Delete
/* query (in seconds) according */
[90] Fix | Delete
/* to RFC1112 */
[91] Fix | Delete
#define IGMP_TIMER_SCALE 10 /* denotes that the igmp code field */
[92] Fix | Delete
/* specifies time in 10th of seconds*/
[93] Fix | Delete
[94] Fix | Delete
/*
[95] Fix | Delete
* States for the IGMP v2 state table.
[96] Fix | Delete
*/
[97] Fix | Delete
#define IGMP_DELAYING_MEMBER 1
[98] Fix | Delete
#define IGMP_IDLE_MEMBER 2
[99] Fix | Delete
#define IGMP_LAZY_MEMBER 3
[100] Fix | Delete
#define IGMP_SLEEPING_MEMBER 4
[101] Fix | Delete
#define IGMP_AWAKENING_MEMBER 5
[102] Fix | Delete
[103] Fix | Delete
/*
[104] Fix | Delete
* States for IGMP router version cache.
[105] Fix | Delete
*/
[106] Fix | Delete
#define IGMP_v1_ROUTER 1
[107] Fix | Delete
#define IGMP_v2_ROUTER 2
[108] Fix | Delete
[109] Fix | Delete
/*
[110] Fix | Delete
* The following four defininitions are for backwards compatibility.
[111] Fix | Delete
* They should be removed as soon as all applications are updated to
[112] Fix | Delete
* use the new constant names.
[113] Fix | Delete
*/
[114] Fix | Delete
#define IGMP_HOST_MEMBERSHIP_QUERY IGMP_MEMBERSHIP_QUERY
[115] Fix | Delete
#define IGMP_HOST_MEMBERSHIP_REPORT IGMP_V1_MEMBERSHIP_REPORT
[116] Fix | Delete
#define IGMP_HOST_NEW_MEMBERSHIP_REPORT IGMP_V2_MEMBERSHIP_REPORT
[117] Fix | Delete
#define IGMP_HOST_LEAVE_MESSAGE IGMP_V2_LEAVE_GROUP
[118] Fix | Delete
[119] Fix | Delete
__END_DECLS
[120] Fix | Delete
[121] Fix | Delete
#endif
[122] Fix | Delete
[123] Fix | Delete
#endif /* netinet/igmp.h */
[124] Fix | Delete
[125] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function