Commit 48876762 authored by Brickner_cp's avatar Brickner_cp

IPv4 over IPv4 support.

Thanks wolfson292.
parent 2bb8f28e
......@@ -227,6 +227,19 @@ namespace PcapDotNet.Packets.IpV4
get { return Tcp; }
}
/// <summary>
/// The payload of the datagram as an IPv4 datagram (IP over IP).
/// </summary>
public IpV4Datagram IpV4
{
get
{
if (_ipV4 == null && Length >= HeaderLength)
_ipV4 = new IpV4Datagram(Buffer, StartOffset + HeaderLength, Length - HeaderLength);
return _ipV4;
}
}
/// <summary>
/// The payload of the datagram as an ICMP datagram.
/// </summary>
......@@ -436,6 +449,7 @@ namespace PcapDotNet.Packets.IpV4
private bool? _isHeaderChecksumCorrect;
private bool? _isTransportChecksumCorrect;
private IpV4Options _options;
private IpV4Datagram _ipV4;
private IcmpDatagram _icmp;
private IgmpDatagram _igmp;
private GreDatagram _gre;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment