ebpf_others.go 504 B

123456789101112131415161718192021
  1. //go:build !linux || android
  2. package ebpf
  3. import (
  4. "fmt"
  5. )
  6. // NewTcEBpfProgram new ebpf tc program
  7. func NewTcEBpfProgram(_ []string, _ string) (*TcEBpfProgram, error) {
  8. return nil, fmt.Errorf("system not supported")
  9. }
  10. // NewRedirEBpfProgram new ebpf redirect program
  11. func NewRedirEBpfProgram(_ []string, _ uint16, _ string) (*TcEBpfProgram, error) {
  12. return nil, fmt.Errorf("system not supported")
  13. }
  14. func GetAutoDetectInterface() (string, error) {
  15. return "", fmt.Errorf("system not supported")
  16. }