【发布时间】:2014-04-26 05:54:33
【问题描述】:
我正在用Sharp Pcap抓包,我可以很容易地检查IPpacket或ARP包的IP:
Dim ip1 As IpPacket = IpPacket.GetEncapsulated(pack)
Dim arp As ARPPacket = ARPPacket.GetEncapsulated(pack)
If (Not ip1 Is Nothing) Then
log1.WriteLine("Received IP packet from {0}", ip1.SourceAddress.ToString)
End If
If (Not arp Is Nothing) Then
log1.WriteLine("Received ARP packet from {0}", arp.SenderProtocolAddress.ToString)
End If
我想找到 ICMPPacket 的属性,但没有成功。如何查看 ICMPPacket 的源/目的地址?
【问题讨论】: