Documentation
¶
Overview ¶
Package types implements the definition for network connection tuples
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionKey ¶
type ConnectionKey struct {
SrcIPHigh uint64
SrcIPLow uint64
DstIPHigh uint64
DstIPLow uint64
// ports separated for alignment/size optimization
SrcPort uint16
DstPort uint16
}
ConnectionKey represents a network four-tuple (source IP, destination IP, source port, destination port)
func NewConnectionKey ¶
func NewConnectionKey(saddr, daddr util.Address, sport, dport uint16) ConnectionKey
NewConnectionKey generates a new ConnectionKey
func (ConnectionKey) String ¶
func (c ConnectionKey) String() string
String returns a string representation of the ConnectionKey
Click to show internal directories.
Click to hide internal directories.