github.com/yaling888/clash@v1.53.0/component/ebpf/ebpf_others.go (about) 1 //go:build !linux 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 }