Exemplo n.º 1
0
 /// <summary>
 /// pcap_set_promisc() sets whether promiscuous mode should be set on a capture handle when the handle is activated.
 /// If promisc is non-zero, promiscuous mode will be set, otherwise it will not be set.
 /// </summary>
 /// <param name="p">A <see cref="IntPtr"/></param>
 /// <param name="promisc">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_promisc(IntPtr /* pcap_t* */ p, int promisc)
 {
     return(UseWindows ? Windows.pcap_set_promisc(p, promisc) : Unix.pcap_set_promisc(p, promisc));
 }