コード例 #1
0
        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);
        }
コード例 #2
0
 public override sealed PacketCommunicator Open(int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout)
 {
     return((PacketCommunicator) new OfflinePacketCommunicator(this._fileName));
 }
コード例 #3
0
 public abstract PacketCommunicator Open(int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout);
コード例 #4
0
 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)
 {
 }
コード例 #5
0
 public override sealed PacketCommunicator Open(int snapshotLength, PacketDeviceOpenAttributes attributes, int readTimeout)
 {
     // ISSUE: unable to decompile the method.
 }