rsocks

package
v0.0.0-...-11e78ec Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetARPRecvSock

func GetARPRecvSock(iface *net.Interface) (*os.File, error)

GetARPRecvSock returns a raw socket for receiving ARP traffic.

func GetARPSendSock

func GetARPSendSock(iface *net.Interface) (*rssock, error)

GetARPSendSock returns a raw socket for broadcasting ARP requests.

func GetIPRecvSock

func GetIPRecvSock(iface *net.Interface) (*os.File, error)

GetIPRecvSocket returns a raw socket for receiving IP traffic.

func GetIPSendSock

func GetIPSendSock(iface *net.Interface) (*rssock, error)

GetIPSendSock returns a raw socket for sending broadcast IP traffic.

func GetUnicastSendSock

func GetUnicastSendSock(iface *net.Interface, hwaddr net.HardwareAddr) (*rssock, error)

GetUnicastSendSock returns a new raw socket for sending unicast IP traffic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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