mirror of
https://github.com/luscis/openlan.git
synced 2025-10-08 10:00:12 +08:00
clone from danieldin95
This commit is contained in:
14
vendor/github.com/shadowsocks/go-shadowsocks2/nfutil/socketcall_linux_other.go
generated
vendored
Normal file
14
vendor/github.com/shadowsocks/go-shadowsocks2/nfutil/socketcall_linux_other.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// +build linux,!386
|
||||
|
||||
package nfutil
|
||||
|
||||
import "syscall"
|
||||
|
||||
const GETSOCKOPT = syscall.SYS_GETSOCKOPT
|
||||
|
||||
func socketcall(call, a0, a1, a2, a3, a4, a5 uintptr) error {
|
||||
if _, _, errno := syscall.Syscall6(call, a0, a1, a2, a3, a4, a5); errno != 0 {
|
||||
return errno
|
||||
}
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user