Ipv6Datagram

Mar 3, 2015 at 12:38 PM
hi
i want to capture the ipv6 Datagram but in the library there is no Ipv6Datagram such Ipv4Datagram. How can i do to capture Ipv6 datagram?
Mar 4, 2015 at 11:55 AM
Hai,
Please see the following..

using PcapDotNet.Packets.IpV6;

IpV6Datagram ip6 = packet.Ethernet.IpV6;
string strSource = ip6.Source.ToString();
    string             strDest = ip6.CurrentDestination.ToString();

But I am looking for how to get the PRotocol same as we get in wireshark. LLMNR,MDNS ect...
Coordinator
Mar 13, 2015 at 9:49 AM
Hi,

IpV6Datagram.NextHeader will give you the protocol of the first extension header or the IPv6 payload in case there are no extension headers.
If there are extension headers, you can use IpV6Datagram.ExtensionHeaders.NextHeader to get the payload protocol.

I hope this helps,

Boaz.