github.com/chwjbn/xclash@v0.2.0/listener/redir/tcp_linux_other.go (about)

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