Sharp Pcap でパケットをキャプチャしています。IP パケットまたは 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 の送信元/宛先アドレスを確認するにはどうすればよいですか?