Table of Contents

Class IpPacketExtensions

Namespace
VpnHood.Net.Packets.Extensions
Assembly
VpnHood.Net.Packets.dll

Provides the upper layer of an IP packet, its endpoints and its checksums.

public static class IpPacketExtensions
Inheritance
IpPacketExtensions
Inherited Members

Remarks

An Extract method parses a received packet's payload; a Build method prepares the payload of a packet made by BuildIp(IPAddress, IPAddress, IpProtocol, int, MemoryPool<byte>?). Either one stores the result in PayloadPacket and returns the stored one on later calls, whichever method made it. The protocol is checked on every call; whether the packet is a fragment, and the payload's structure, only when the payload is first parsed.