packets

package
v0.0.0-...-cfdfc61 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EthernetHeader

func EthernetHeader(proto layers.EthernetType) []byte

func IPv4Header

func IPv4Header(proto layers.IPProtocol) []byte

func TCPPacket

func TCPPacket(tcp *layers.TCP) []byte

func TCPv4ACK

func TCPv4ACK() []byte

TCPv4ACK constructs an IPv4 TCP ACK packet, and returns the slice

func TCPv4SYN

func TCPv4SYN() []byte

TCPv4SYN constructs an IPv4 TCP SYN packet, and returns the slice

func TCPv4SYNACK

func TCPv4SYNACK() []byte

TCPv4SYNACK constructs an IPv4 TCP SYN/ACK packet, and returns the slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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