/// <summary> /// pcap_set_timeout() sets the packet buffer timeout that will be used on a capture handle when the handle is activated to to_ms, which is in units of milliseconds. /// </summary> /// <param name="p">A <see cref="IntPtr"/></param> /// <param name="to_ms">A <see cref="System.Int32"/></param> /// <returns>Returns 0 on success or PCAP_ERROR_ACTIVATED if called on a capture handle that has been activated.</returns> internal static int pcap_set_timeout(IntPtr /* pcap_t* */ p, int to_ms) { return(UseWindows ? Windows.pcap_set_timeout(p, to_ms) : Unix.pcap_set_timeout(p, to_ms)); }