rawnet

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() net.IP

GetLocalIP 获取内网IP

func PackageIPHeader

func PackageIPHeader(lIP, rIP net.IP, lport, rport uint16, flag, offset int, protocol uint8, d []byte) (*ipv4.Header, error)

PackageIPHeader package ip header

func PackageUDP

func PackageUDP(laddr, raddr net.IP, lport, rport uint16, d []byte) []byte

PackageUDP package udp

func SendIPPacketDFUDP

func SendIPPacketDFUDP(lIP, rIP net.IP, lPort, rPort uint16, d []byte) error

SendIPPacketDFUDP send DF IP(UDP) packet

Types

This section is empty.

Jump to

Keyboard shortcuts

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