Documentation ¶
Index ¶
- func GetLocalIP() net.IP
- func GetMAC() (srcMAC, dstMAC net.HardwareAddr, err error)
- func PackageIPHeader(lIP, rIP net.IP, lport, rport uint16, flag, offset int, protocol uint8, ...) (*ipv4.Header, error)
- func PackageUDP(laddr, raddr net.IP, lport, rport uint16, d []byte) []byte
- func SendIPPacketDFUDP(lIP, rIP net.IP, lPort, rPort uint16, d []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
PackageUDP package udp
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.