ports/sysutils/beats/packetbeat/files/pcap_poll_common.go

19 lines
240 B
Go
Raw Normal View History

2023-08-16 22:26:55 +00:00
// +build !linux, !openbsd
package pcap
/*
#include <pcap/pcap.h>
*/
import "C"
type packetPoll struct{}
func NewPacketPoll(_ *C.pcap_t, _ C.int) *packetPoll {
return nil
}
func (t *packetPoll) AwaitForPackets() bool {
return true
}