/// <summary> /// Constructor /// </summary> /// <param name="LinkLayerType"> /// A <see cref="LinkLayers"/> /// </param> /// <param name="Timeval"> /// A <see cref="PosixTimeval"/> /// </param> /// <param name="Data"> /// A <see cref="byte"/> /// </param> public RawCapture(LinkLayers LinkLayerType, PosixTimeval Timeval, byte[] Data) { this.LinkLayerType = LinkLayerType; this.Timeval = Timeval; this.Data = Data; }
/// <summary> /// Constructor /// </summary> /// <param name="LinkLayerType"> /// A <see cref="LinkLayers"/> /// </param> /// <param name="Timeval"> /// A <see cref="PosixTimeval"/> /// </param> /// <param name="Data"> /// A <see cref="byte"/> /// </param> public RawCapture(LinkLayers LinkLayerType, PosixTimeval Timeval, byte[] Data, int?packetLength = null) { this.LinkLayerType = LinkLayerType; this.Timeval = Timeval; this.Data = Data; this.PacketLength = packetLength ?? Data?.Length ?? 0; }
public Entry(SharpPcap.PosixTimeval timeval, PacketDotNet.Packet packet) { this.Timeval = timeval; this.Packet = packet; }