Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PacketDotNet.Ieee80211.ChannelRadioTapField"/> class.
 /// </summary>
 /// <param name='FrequencyMhz'>
 /// Tx/Rx Frequency in MHz.
 /// </param>
 /// <param name='Flags'>
 /// Flags.
 /// </param>
 public ChannelRadioTapField(UInt16 FrequencyMhz, RadioTapChannelFlags Flags)
 {
     this.FrequencyMHz = FrequencyMHz;
     this.Channel      = ChannelFromFrequencyMHz(FrequencyMHz);
     this.Flags        = Flags;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="br">
 /// A <see cref="BinaryReader"/>
 /// </param>
 public ChannelRadioTapField(BinaryReader br)
 {
     FrequencyMHz = br.ReadUInt16();
     Channel      = ChannelFromFrequencyMHz(FrequencyMHz);
     Flags        = (RadioTapChannelFlags)br.ReadUInt16();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PacketDotNet.Ieee80211.ChannelRadioTapField"/> class.
 /// </summary>
 /// <param name='FrequencyMhz'>
 /// Tx/Rx Frequency in MHz.
 /// </param>
 /// <param name='Flags'>
 /// Flags.
 /// </param>
 public ChannelRadioTapField(UInt16 FrequencyMhz, RadioTapChannelFlags Flags)
 {
     this.FrequencyMHz = FrequencyMHz;
     this.Channel = ChannelFromFrequencyMHz(FrequencyMHz);
     this.Flags = Flags;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelRadioTapField" /> class.
 /// </summary>
 /// <param name="frequencyMhz">Tx/Rx Frequency in MHz.</param>
 /// <param name="flags">Flags.</param>
 public ChannelRadioTapField(ushort frequencyMhz, RadioTapChannelFlags flags)
 {
     FrequencyMHz = frequencyMhz;
     Channel      = ChannelFromFrequencyMHz(FrequencyMHz);
     Flags        = flags;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="br">
 /// A <see cref="BinaryReader"/>
 /// </param>
 public ChannelRadioTapField(BinaryReader br)
 {
     FrequencyMHz = br.ReadUInt16();
     Channel = ChannelFromFrequencyMHz(FrequencyMHz);
     Flags = (RadioTapChannelFlags)br.ReadUInt16();
 }