kaitoy / pcap4j

A Java library for capturing, crafting, and sending packets.

Home Page:https://www.pcap4j.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find the offset or total length for upper layer protocol in IPv6 packet

left4dead opened this issue · comments

Hi,

Is there any way to identify an upper layer protocol's offset or total packet length for an IPv6 packet? I know we can iterate through all of the associated headers using ipv6Packet.getPayLoad().iterator().
However, I am having difficulty in getting the actual protocol type for the last packet retrieved using the above-mentioned iterator.

Thanks