types

package
v0.0.0-...-45a9bcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL