2022-08-08 02:21:16 +00:00
|
|
|
//go:build !linux || android
|
2022-07-29 01:08:35 +00:00
|
|
|
|
|
|
|
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")
|
|
|
|
}
|
2022-10-06 11:23:38 +00:00
|
|
|
|
|
|
|
func GetAutoDetectInterface() (string, error) {
|
|
|
|
return "", fmt.Errorf("system not supported")
|
|
|
|
}
|