/// <summary> /// Returns the file descriptor number from which captured packets are read, /// if a network device was opened with pcap_create() and pcap_activate() or /// with pcap_open_live(), or -1, if a ``savefile'' was opened with /// pcap_open_offline() /// Libpcap specific method /// </summary> /// <param name="adapter"> /// A <see cref="IntPtr"/> /// </param> /// <returns> /// A <see cref="System.Int32"/> /// </returns> internal static int pcap_fileno(IntPtr /* pcap_t* p */ adapter) { return(UseWindows ? Windows.pcap_fileno(adapter) : Unix.pcap_fileno(adapter)); }