just all finished
This commit is contained in:
@ -209,7 +209,7 @@ pcap_t* pcap_device_open(const char* ip, uint8_t * mac_addr, uint8_t poll_mode)
|
||||
pcap = pcap_open_live(name_buf, // 设置字符串
|
||||
65536, // 要捕获的最大字节数
|
||||
1, // 混杂模式
|
||||
0, // 读取超时(以毫秒为单位)
|
||||
1, // 读取超时(以毫秒为单位)
|
||||
err_buf);
|
||||
if (pcap == NULL) {
|
||||
fprintf(stderr, "pcap_open: create pcap failed %s\n net card name: %s\n", err_buf, name_buf);
|
||||
|
||||
Reference in New Issue
Block a user