[英]Is there a library that can get the ip addresses and ports from the winpcap raw data of a packet?
我正在使用WinPcap捕获来自网络的数据包。
使用pcap_next_ex()
我将原始数据包作为u_char*
(数组的长度在数据包元数据中给出,即结构pcap_pkthdr
)。
我如何获得该数据包的Ip和源端口以及目的地?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.