mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-25 19:55:38 +08:00
22 lines
504 B
Go
22 lines
504 B
Go
//go:build !linux || android
|
|
|
|
package ebpf
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// NewTcEBpfProgram new ebpf tc program
|
|
func NewTcEBpfProgram(_ []string, _ string) (*TcEBpfProgram, error) {
|
|
return nil, fmt.Errorf("system not supported")
|
|
}
|
|
|
|
// NewRedirEBpfProgram new ebpf redirect program
|
|
func NewRedirEBpfProgram(_ []string, _ uint16, _ string) (*TcEBpfProgram, error) {
|
|
return nil, fmt.Errorf("system not supported")
|
|
}
|
|
|
|
func GetAutoDetectInterface() (string, error) {
|
|
return "", fmt.Errorf("system not supported")
|
|
}
|