rawsocket

package
v0.0.0-...-86f6a29 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addr

func Addr(stuff any, mac [6]byte) (net.Addr, error)

func Broadcast

func Broadcast(addr net.Addr) (net.Addr, error)

func ByIfname

func ByIfname(ifname string) (net.Addr, error)

func MacAddr

func MacAddr(stuff any) ([6]byte, error)

func Socket

func Socket(ifname string) (net.PacketConn, error)

Types

type Sockaddr

type Sockaddr interface {
	Sockaddr() (unsafe.Pointer, uint32, error)
}

Jump to

Keyboard shortcuts

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