PretendoNetwork / nex-viewer

Utility for parsing and (eventually) viewing NEX connections from WireShark network dumps
8 stars 5 forks source link

Read PRUDP packets from UDP payload recursively #7

Closed DaniElectra closed 1 year ago

DaniElectra commented 1 year ago

A PRUDP server may send multiple packets on a single UDP packet, so read the UDP payload recursively in search of multiple PRUDP packets.

The recursive search has been applied only to PRUDPv1, since we always have the packet-specific data size and the payload size. In PRUDPv0, the size isn't always present, and it would be hard to make this check inside packetvX.js.

There hasn't been a case of this issue on PRUDPv0 anyway, and hopefully we won't find any.