如何根据 tcp 标志重新组装 TCP 数据包值:
我期待这样的代码:
public void device_onPacketArrival(object sender, CaptureEventArgs e)
{
var tcpPacket=TcpPacket.GetEncapsulated(PacketDotNet.Packet.ParsePacket(e.Packet.LinkLayerType, e.Packet.Data));
if(tcpPacket.Allflags.toString()== something means that this is the last part of the fragmented packet)
stop reassampling procedure
else
continuing reassembling procedure
}
我唯一想要的是知道标志的值意味着这是碎片数据包的最后一部分吗?