pkt

package
v0.0.0-...-7752920 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UDPPacket

func UDPPacket(framesize int, eth *Ethernet, ip *IPv4, udp *UDP) ([]byte, error)

Types

type Ethernet

type Ethernet struct {
	// contains filtered or unexported fields
}

func NewEthernet

func NewEthernet(src, dst string) *Ethernet

type IPv4

type IPv4 struct {
	// contains filtered or unexported fields
}

func NewIPv4

func NewIPv4(src, dst string) *IPv4

type UDP

type UDP struct {
	// contains filtered or unexported fields
}

func NewUDP

func NewUDP(srcPort, dstPort uint16) *UDP

Jump to

Keyboard shortcuts

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