aboutsummaryrefslogtreecommitdiffstats
path: root/syscall_linux_386.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-04-20 04:05:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-04-20 06:51:28 +0200
commit5ba84696e29c6109e84b1f48247ae02a2bcb106e (patch)
tree66084df3aae2c36bf055bc66f155e2c65e0a6de9 /syscall_linux_386.go
parentCheck for correct first nibble (diff)
downloadwireguard-go-5ba84696e29c6109e84b1f48247ae02a2bcb106e.tar.xz
wireguard-go-5ba84696e29c6109e84b1f48247ae02a2bcb106e.zip
Rework sticky sockets
Diffstat (limited to '')
-rw-r--r--syscall_linux_386.go53
1 files changed, 0 insertions, 53 deletions
diff --git a/syscall_linux_386.go b/syscall_linux_386.go
deleted file mode 100644
index 76d7c7e..0000000
--- a/syscall_linux_386.go
+++ /dev/null
@@ -1,53 +0,0 @@
-// +build linux,386
-
-/* Copyright 2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
- */
-
-package main
-
-import (
- "golang.org/x/sys/unix"
- "syscall"
- "unsafe"
-)
-
-const (
- _SENDMSG = 16
- _RECVMSG = 17
-)
-
-func sendmsg(fd int, msghdr *unix.Msghdr, flags int) (uintptr, uintptr, syscall.Errno) {
- args := struct {
- fd uintptr
- msghdr uintptr
- flags uintptr
- }{
- uintptr(fd),
- uintptr(unsafe.Pointer(msghdr)),
- uintptr(flags),
- }
- return unix.Syscall(
- unix.SYS_SOCKETCALL,
- _SENDMSG,
- uintptr(unsafe.Pointer(&args)),
- 0,
- )
-}
-
-func recvmsg(fd int, msghdr *unix.Msghdr, flags int) (uintptr, uintptr, syscall.Errno) {
- args := struct {
- fd uintptr
- msghdr uintptr
- flags uintptr
- }{
- uintptr(fd),
- uintptr(unsafe.Pointer(msghdr)),
- uintptr(flags),
- }
- return unix.Syscall(
- unix.SYS_SOCKETCALL,
- _RECVMSG,
- uintptr(unsafe.Pointer(&args)),
- 0,
- )
-}