IpPacketComputeChecksum Method |
Computes the 16-bit checksum of the specified IPv4 packet.
Namespace: Network.Sim.Network.IpAssembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static ushort ComputeChecksum(
IpPacket packet,
bool withChecksumField = false
)
Parameters
- packet
- Type: Network.Sim.Network.IpIpPacket
The packet to compute the checksum for. - withChecksumField (Optional)
- Type: SystemBoolean
true to include the packet's
checksum field in the calculation; otherwise false.
Return Value
Type:
UInt16The checksum of the specified IPv4 packet.
Exceptions
See Also