Versions in this module Expand all Collapse all v0 v0.0.2 Sep 18, 2024 v0.0.1 Sep 17, 2024 Changes in this version + func InterfaceByName(name string) (*net.Interface, error) + func OpenLive(conf *Config, pw ...PacketWriter) error + type Config struct + Device *net.Interface + Expr string + PacketCount int + Promisc bool + Snaplen int + Timeout time.Duration + type PacketWriter interface + WritePacket func(timestamp time.Time, data []byte) error + type Writer struct + func NewWriter(w io.Writer, verbose bool) *Writer + func (mw *Writer) WriteHeader(c *Config) error + func (mw *Writer) WritePacket(timestamp time.Time, data []byte) error