private static unsafe pcap *PcapOpen(sbyte *source, int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout, pcap_rmtauth *auth) { \u0024ArrayType\u0024\u0024\u0024BY0BAA\u0040D arrayTypeBy0BaAD; pcap *pcapPtr = \u003CModule\u003E.pcap_open(source, snapshotLength, (int)attributes, readTimeout, auth, (sbyte *)&arrayTypeBy0BaAD); if ((IntPtr)pcapPtr == IntPtr.Zero) { throw new InvalidOperationException(string.Format((IFormatProvider)CultureInfo.InvariantCulture, "Unable to open the adapter. Adapter name: {0}. Error: {1}", new object[2] { (object)new string(source), (object)new string((sbyte *)&arrayTypeBy0BaAD) })); } return(pcapPtr); }
public override sealed PacketCommunicator Open(int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout) { return((PacketCommunicator) new OfflinePacketCommunicator(this._fileName)); }
public abstract PacketCommunicator Open(int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout);
internal unsafe LivePacketCommunicator(sbyte *source, int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout, pcap_rmtauth *auth, SocketAddress netmask) : base(LivePacketCommunicator.PcapOpen(source, snapshotLength, attributes, readTimeout, auth), netmask) { }
public override sealed PacketCommunicator Open(int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout) { // ISSUE: unable to decompile the method. }