github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/pkg/ebpf/ebpf_darwin.go (about)

     1  // +build darwin
     2  
     3  package ebpf
     4  
     5  import (
     6  	"go.aporeto.io/enforcerd/trireme-lib/controller/pkg/packet"
     7  )
     8  
     9  // BPFPath holds the BPF path
    10  var BPFPath = "/sys/fs/bpf/app-ack"
    11  
    12  type ebpfDarwin struct {
    13  }
    14  
    15  // IsEBPFSupported returns false for Darwin.
    16  func IsEBPFSupported() bool {
    17  	return false
    18  }
    19  
    20  // LoadBPF is not supported on Darwin.
    21  func LoadBPF() BPFModule {
    22  	return nil
    23  }
    24  
    25  func (*ebpfDarwin) CreateFlow(*packet.Packet) {
    26  }
    27  
    28  func (*ebpfDarwin) RemoveFlow(*packet.Packet) {
    29  }
    30  
    31  func (*ebpfDarwin) Cleanup() {
    32  }
    33  
    34  func (*ebpfDarwin) GetBPFPath() string {
    35  	return ""
    36  }