checkpt, try to parse packets only once

This commit is contained in:
JackDoan
2026-05-07 11:04:16 -05:00
parent 6cb00c613c
commit 0375aff451
5 changed files with 37 additions and 9 deletions

View File

@@ -19,6 +19,14 @@ const (
PortFragment = -1 // Special value for matching `port: fragment`
)
type TransportTuple struct {
FirstAddr [16]byte
SecondAddr [16]byte
FirstPort uint16
SecondPort uint16
IsV6 bool
}
type Packet struct {
LocalAddr netip.Addr
RemoteAddr netip.Addr