Versions in this module Expand all Collapse all v0 deprecated v0.1.0 Feb 21, 2022 Changes in this version + var ErrNotImplemented = errors.New("raw: not implemented") + type Addr struct + HardwareAddr net.HardwareAddr + func (a *Addr) Network() string + func (a *Addr) String() string + type Config struct + BPFDirection int + Filter []bpf.RawInstruction + LinuxSockDGRAM bool + NoCumulativeStats bool + type Conn struct + func ListenPacket(ifi *net.Interface, proto uint16, cfg *Config) (*Conn, error) + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) ReadFrom(b []byte) (int, net.Addr, error) + func (c *Conn) SetBPF(filter []bpf.RawInstruction) error + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetPromiscuous(b bool) error + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) Stats() (*Stats, error) + func (c *Conn) WriteTo(b []byte, addr net.Addr) (int, error) + type Stats struct + Drops uint64 + Packets uint64