mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 04:47:38 +02:00
checkpt, try to parse packets only once
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user