New Packet(byte[] buffer ... ) does not support IPv6?

26 views
Skip to first unread message

yifhua...@gmail.com

unread,
Sep 2, 2019, 11:09:34 PM9/2/19
to Pcap.Net Q&A
I'm wondering what's the best and easiest way to parse a byte[] buffer received on Raw socket to IPv6 packet?

the socket is . Raw, IP,  HeaderIncluded. 

Boaz Brickner

unread,
Sep 27, 2019, 7:09:52 AM9/27/19
to Pcap.Net Q&A
You should create a Packet instance.
For that, you need to know what is the Datalink Kind, for example - Ethernet.

yifhua...@gmail.com

unread,
Sep 28, 2019, 12:50:42 PM9/28/19
to Pcap.Net Q&A
Thanks for your response.   To follow up on that, if I select Ethernet, that means the packet itself have to include a Ethernet layer, and use socket on Ethernet level, right?   I'm wondering if pcapdotnet supports sending IPv6 raw packet on IP level?

Boaz Brickner

unread,
Sep 29, 2019, 6:45:50 AM9/29/19
to Pcap.Net Q&A
I believe IPv4 is supported but not IPv6.
If you can provide a .pcap file with such an IPv6 packet, I can try and add support for that.
Reply all
Reply to author
Forward
0 new messages