just all finished

This commit is contained in:
2025-11-19 09:02:51 +08:00
parent e4c7bf757d
commit e97093b2f5
4 changed files with 93 additions and 741 deletions

View File

@ -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);