Versions in this module Expand all Collapse all v1 v1.1.0 May 30, 2022 Changes in this version + const ETH_ALEN — linux/amd64 + type Addr struct + HardwareAddr net.HardwareAddr + func (a *Addr) Network() string + func (a *Addr) String() string + type Config struct + Filter []bpf.RawInstruction + type Conn struct + func Listen(ifi *net.Interface, socketType Type, protocol int, 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) SetMembership(enable bool, Type uint16, addr net.HardwareAddr) error + func (c *Conn) SetPromiscuous(enable 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) SyscallConn() (syscall.RawConn, error) + func (c *Conn) WriteTo(b []byte, addr net.Addr) (int, error) + type Stats struct + Drops uint32 + FreezeQueueCount uint32 + Packets uint32 + type Type int + const Datagram + const Raw