packet

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPVERSION_4 = 4
	IPVERSION_6 = 6

	PROTOCOL_ICMP = 1
	PROTOCOL_TCP  = 6
	PROTOCOL_UDP  = 17
)

Variables

This section is empty.

Functions

func IsSYNSegment

func IsSYNSegment(data []byte) bool

func PeekDestinationAddress

func PeekDestinationAddress(data []byte) net.IP

func PeekDestinationPort

func PeekDestinationPort(data []byte) uint16

func PeekIPVersion

func PeekIPVersion(data []byte) uint8

func PeekProtocol

func PeekProtocol(data []byte) string

func PeekSourceAddress

func PeekSourceAddress(data []byte) net.IP

func PeekSourcePort

func PeekSourcePort(data []byte) uint16

Types

This section is empty.

Jump to

Keyboard shortcuts

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