/// ************************************************************************
/// Copyright (C) 2001, Patrick Charles and Jonas Lehmann *
/// Distributed under the Mozilla Public License *
/// http://www.mozilla.org/NPL/MPL-1.1.txt *
/// *************************************************************************
///
namespace SharpPcap.Packets
{
/// IGMP protocol field encoding information.
///
///
public struct IGMPFields_Fields{
/// Length of the IGMP message type code in bytes.
public readonly static int IGMP_CODE_LEN = 1;
/// Length of the IGMP max response code in bytes.
public readonly static int IGMP_MRSP_LEN = 1;
/// Length of the IGMP header checksum in bytes.
public readonly static int IGMP_CSUM_LEN = 2;
/// Length of group address in bytes.
public readonly static int IGMP_GADDR_LEN;
/// Position of the IGMP message type.
public readonly static int IGMP_CODE_POS = 0;
/// Position of the IGMP max response code.
public readonly static int IGMP_MRSP_POS;
/// Position of the IGMP header checksum.
public readonly static int IGMP_CSUM_POS;
/// Position of the IGMP group address.
public readonly static int IGMP_GADDR_POS;
/// Length in bytes of an IGMP header.
public readonly static int IGMP_HEADER_LEN; // 8
static IGMPFields_Fields()
{
IGMP_GADDR_LEN = IPv4Fields_Fields.IP_ADDRESS_WIDTH;
IGMP_MRSP_POS = IGMPFields_Fields.IGMP_CODE_POS + IGMPFields_Fields.IGMP_CODE_LEN;
IGMP_CSUM_POS = IGMPFields_Fields.IGMP_MRSP_POS + IGMPFields_Fields.IGMP_MRSP_LEN;
IGMP_GADDR_POS = IGMPFields_Fields.IGMP_CSUM_POS + IGMPFields_Fields.IGMP_CSUM_LEN;
IGMP_HEADER_LEN = IGMPFields_Fields.IGMP_GADDR_POS + IGMPFields_Fields.IGMP_GADDR_LEN;
}
}
public interface IGMPFields
{
//UPGRADE_NOTE: Members of interface 'IGMPFields' were extracted into structure 'IGMPFields_Fields'. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1045'"
// field lengths
// field positions
// complete header length
}
}