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

     1  // +build rhel6
     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 ebpfRhel6 struct {
    13  }
    14  
    15  // IsEBPFSupported returns false for RHEL6.
    16  func IsEBPFSupported() bool {
    17  	return false
    18  }
    19  
    20  // LoadBPF is not supported on RHEL6.
    21  func LoadBPF() BPFModule {
    22  	return nil
    23  }
    24  
    25  func (*ebpfRhel6) CreateFlow(*packet.Packet) {
    26  }
    27  
    28  func (*ebpfRhel6) RemoveFlow(*packet.Packet) {
    29  }
    30  
    31  func (*ebpfRhel6) Cleanup() {
    32  }
    33  
    34  func (*ebpfRhel6) GetBPFPath() string {
    35  	return ""
    36  }