コード例 #1
0
 /// <summary>
 /// pcap_set_snaplen() sets the snapshot length to be used on a capture handle when the handle is activated to snaplen.
 /// </summary>
 /// <param name="p">A <see cref="IntPtr"/></param>
 /// <param name="snaplen">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_snaplen(IntPtr /* pcap_t* */ p, int snaplen)
 {
     return(UseWindows ? Windows.pcap_set_snaplen(p, snaplen) : Unix.pcap_set_snaplen(p, snaplen));
 }