mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
21 lines
337 B
Go
21 lines
337 B
Go
package constant
|
|
|
|
import (
|
|
"net/netip"
|
|
|
|
"github.com/metacubex/mihomo/transport/socks5"
|
|
)
|
|
|
|
const (
|
|
BpfFSPath = "/sys/fs/bpf/mihomo"
|
|
|
|
TcpAutoRedirPort = 't'<<8 | 'r'<<0
|
|
MihomoTrafficMark = 'c'<<24 | 'l'<<16 | 't'<<8 | 'm'<<0
|
|
)
|
|
|
|
type EBpf interface {
|
|
Start() error
|
|
Close()
|
|
Lookup(srcAddrPort netip.AddrPort) (socks5.Addr, error)
|
|
}
|