目录
当前位置: 首页 > 文档资料 > WinPcap 中文手册 >

WinPcap: Sampling methods defined in the pcap_setsampling() function

优质
小牛编辑
133浏览
2023-12-01

Defines

#definePCAP_SAMP_NOSAMP0
No sampling has to be done on the current capture.
#definePCAP_SAMP_1_EVERY_N1
It defines that only 1 out of N packets must be returned to the user.
#definePCAP_SAMP_FIRST_AFTER_N_MS2
It defines that we have to return 1 packet every N milliseconds.