github.com/igoogolx/clash@v1.19.8/listener/redir/tcp_linux_other.go (about) 1 //go:build linux && !386 2 3 package redir 4 5 import "syscall" 6 7 const GETSOCKOPT = syscall.SYS_GETSOCKOPT 8 9 func socketcall(call, a0, a1, a2, a3, a4, a5 uintptr) error { 10 if _, _, errno := syscall.Syscall6(call, a0, a1, a2, a3, a4, a5); errno != 0 { 11 return errno 12 } 13 return nil 14 }