19 lines
240 B
Go
19 lines
240 B
Go
|
// +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
|
||
|
}
|