mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-08-22 18:22:37 +00:00
20 lines
333 B
Go
20 lines
333 B
Go
package constant
|
|
|
|
import (
|
|
"net/netip"
|
|
|
|
"github.com/Dreamacro/clash/transport/socks5"
|
|
)
|
|
|
|
const (
|
|
BpfFSPath = "/sys/fs/bpf/clash"
|
|
|
|
TcpAutoRedirPort = 't'<<8 | 'r'<<0
|
|
ClashTrafficMark = 'c'<<24 | 'l'<<16 | 't'<<8 | 'm'<<0
|
|
)
|
|
|
|
type EBpf interface {
|
|
Start() error
|
|
Close()
|
|
Lookup(srcAddrPort netip.AddrPort) (socks5.Addr, error)
|
|
}
|