feat(pcap): complete replay system with filtering, metadata, and live replay

Wire ExcludeOpcodes config into RecordingConn so configured opcodes
(e.g. ping, nop, position) are filtered at record time. Add padded
metadata with in-place PatchMetadata to populate CharID/UserID after
login. Implement --mode replay using protbot's encrypted connection
with timing-aware packet sending, auto-ping response, concurrent
S→C collection, and byte-level payload diff reporting.
This commit is contained in:
Houmgaor
2026-02-23 19:34:30 +01:00
parent 7ef5efc549
commit f712e3c04d
14 changed files with 679 additions and 42 deletions

View File

@@ -12,6 +12,11 @@ const (
// HeaderSize is the fixed size of the file header in bytes.
HeaderSize = 32
// MinMetadataSize is the minimum metadata block size in bytes.
// Metadata is padded to at least this size to allow in-place patching
// (e.g., adding CharID/UserID after login).
MinMetadataSize = 512
)
// Direction indicates whether a packet was sent or received.