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