-
Notifications
You must be signed in to change notification settings - Fork 18
Udp Packet #46
Copy link
Copy link
Open
Description
Hi,
I have an issue reading pcap file, in udp pcaket, when there is the ip packet was fragments.
Hi have to modify the reading of the UdpProtocolo, in this way:
private void _read() {
this.srcPort = this._io.readU2be();
this.dstPort = this._io.readU2be();
this.length = this._io.readU2be();
this.checksum = this._io.readU2be();
// this.body = this._io.readBytes(length() - 8);
if (this._io.size() != this.length) {
this._io.seek(this._io.pos() - 8);
this.body = this._io.readBytes(this._io.size());
} else {
this.body = this._io.readBytes((length() - 8));
}
}can be correct this modification?
Simone
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels