MCPcopy Index your code
hub / github.com/google/gopacket / InactiveHandle

Struct InactiveHandle

pcap/pcap.go:746–752  ·  view source on GitHub ↗

InactiveHandle allows you to call pre-pcap_activate functions on your pcap handle to set it up just the way you'd like.

Source from the content-addressed store, hash-verified

744// InactiveHandle allows you to call pre-pcap_activate functions on your pcap
745// handle to set it up just the way you'd like.
746type InactiveHandle struct {
747 // cptr is the handle for the actual pcap C object.
748 cptr pcapTPtr
749 device string
750 deviceIndex int
751 timeout time.Duration
752}
753
754// holds the err messoge in case activation returned a Warning
755var activateErrMsg error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected