[英]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.