github.com/metacubex/mihomo@v1.18.5/component/ebpf/ebpf_others.go (about)

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