udp

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenVPNControlHardResetClientV1 = 1
	OpenVPNControlHardResetServerV1 = 2
	OpenVPNControlSoftResetV1       = 3
	OpenVPNControlV1                = 4
	OpenVPNAckV1                    = 5
	OpenVPNDataV1                   = 6
	OpenVPNControlHardResetClientV2 = 7
	OpenVPNControlHardResetServerV2 = 8
	OpenVPNDataV2                   = 9
	OpenVPNControlHardResetClientV3 = 10
	OpenVPNControlWkcV1             = 11
)

OpenVPN Opcodes definitions from: https://github.com/OpenVPN/openvpn/blob/master/src/openvpn/ssl_pkt.h

View Source
const (
	OpenVPNMinPktLen          = 6
	OpenVPNTCPPktDefaultLimit = 256
	OpenVPNUDPPktDefaultLimit = 256
)

Variables

This section is empty.

Functions

func OpenVPNCheckForValidOpcode added in v0.3.1

func OpenVPNCheckForValidOpcode(opcode byte) bool

Types

type DNSAnalyzer

type DNSAnalyzer struct{}

func (*DNSAnalyzer) Limit

func (a *DNSAnalyzer) Limit() int

func (*DNSAnalyzer) Name

func (a *DNSAnalyzer) Name() string

func (*DNSAnalyzer) NewTCP

func (a *DNSAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream

func (*DNSAnalyzer) NewUDP

func (a *DNSAnalyzer) NewUDP(info analyzer.UDPInfo, logger analyzer.Logger) analyzer.UDPStream

type OpenVPNAnalyzer added in v0.3.1

type OpenVPNAnalyzer struct{}

func (*OpenVPNAnalyzer) Limit added in v0.3.1

func (a *OpenVPNAnalyzer) Limit() int

func (*OpenVPNAnalyzer) Name added in v0.3.1

func (a *OpenVPNAnalyzer) Name() string

func (*OpenVPNAnalyzer) NewTCP added in v0.3.1

func (*OpenVPNAnalyzer) NewUDP added in v0.3.1

type QUICAnalyzer added in v0.2.0

type QUICAnalyzer struct{}

func (*QUICAnalyzer) Limit added in v0.2.0

func (a *QUICAnalyzer) Limit() int

func (*QUICAnalyzer) Name added in v0.2.0

func (a *QUICAnalyzer) Name() string

func (*QUICAnalyzer) NewUDP added in v0.2.0

func (a *QUICAnalyzer) NewUDP(info analyzer.UDPInfo, logger analyzer.Logger) analyzer.UDPStream

type WireGuardAnalyzer added in v0.0.5

type WireGuardAnalyzer struct{}

func (*WireGuardAnalyzer) Limit added in v0.0.5

func (a *WireGuardAnalyzer) Limit() int

func (*WireGuardAnalyzer) Name added in v0.0.5

func (a *WireGuardAnalyzer) Name() string

func (*WireGuardAnalyzer) NewUDP added in v0.0.5

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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