#region Header
/*
This file is part of PacketDotNet
PacketDotNet is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PacketDotNet is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with PacketDotNet. If not, see .
*/
/*
* Copyright 2010 Chris Morgan
*/
#endregion Header
using System;
namespace PacketDotNet
{
namespace Ieee80211
{
///
/// As defined by Airpcap.h
///
/// NOTE: PresentPosition may not be the only position present
/// as this the field can be extended if the high bit is set
///
public class PpiHeaderFields
{
#region Fields
/// Position of the first iField Header
public static readonly int FirstFieldPosition;
/// Length of the Data Link Type
public static readonly int DataLinkTypeLength = 4;
/// The data link type position.
public static readonly int DataLinkTypePosition;
/// Length of the Flags field
public static readonly int FlagsLength = 1;
/// Position of the Flags field
public static readonly int FlagsPosition;
/// Length of the length field
public static readonly int LengthLength = 2;
/// Position of the length field
public static readonly int LengthPosition;
/// Length of the version field
public static readonly int VersionLength = 1;
/// Position of the version field
public static readonly int VersionPosition = 0;
/// The total length of the ppi packet header
public static readonly int PpiPacketHeaderLength;
/// The length of the PPI field header
public static readonly int FieldHeaderLength = 4;
#endregion Fields
#region Constructors
static PpiHeaderFields ()
{
FlagsPosition = VersionPosition + VersionLength;
LengthPosition = FlagsPosition + FlagsLength;
DataLinkTypePosition = LengthPosition + LengthLength;
FirstFieldPosition = DataLinkTypePosition + DataLinkTypeLength;
PpiPacketHeaderLength = FirstFieldPosition;
}
#endregion Constructors
}
}
}