Documentation ¶
Index ¶
- func FilterARPSourceReply(sender net.IP) []bpf.Instruction
- func FilterDhcpOperation(dstPort uint32, op uint8) []bpf.Instruction
- func GetARPRecvSock(iface *net.Interface, filter []bpf.Instruction) (*os.File, error)
- func GetARPSendSock(iface *net.Interface) (*rssock, error)
- func GetIPRecvSock(iface *net.Interface, filter []bpf.Instruction) (*os.File, error)
- func GetIPSendSock(iface *net.Interface) (*rssock, error)
- func GetUnicastSendSock(iface *net.Interface, hwaddr net.HardwareAddr) (*rssock, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterARPSourceReply ¶
func FilterARPSourceReply(sender net.IP) []bpf.Instruction
FilterARPSourceReply returns a BPF filter which filters replies from the given sender.
func FilterDhcpOperation ¶
func FilterDhcpOperation(dstPort uint32, op uint8) []bpf.Instruction
FilterDhcpOperation returns a BPF filter which filters for the given DHCP operation.
func GetARPRecvSock ¶
GetARPRecvSock returns a raw socket for receiving ARP traffic.
func GetARPSendSock ¶
GetARPSendSock returns a raw socket for broadcasting ARP requests.
func GetIPRecvSock ¶
GetIPRecvSocket returns a raw socket for receiving IP traffic.
func GetIPSendSock ¶
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.
Click to show internal directories.
Click to hide internal directories.