Vendor github.com/mdlayher/wifi and dependencies

This commit is contained in:
Matt Layher 2017-01-09 14:33:55 -05:00
commit 82a2b8fc02
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
34 changed files with 8970 additions and 0 deletions

26
vendor/github.com/mdlayher/netlink/sockopt_linux.go generated vendored Normal file
View file

@ -0,0 +1,26 @@
// +build linux,!386
package netlink
import (
"syscall"
"unsafe"
)
// setsockopt provides access to the setsockopt syscall.
func setsockopt(fd, level, name int, v unsafe.Pointer, l uint32) error {
_, _, errno := syscall.Syscall6(
syscall.SYS_SETSOCKOPT,
uintptr(fd),
uintptr(level),
uintptr(name),
uintptr(v),
uintptr(l),
0,
)
if errno != 0 {
return error(errno)
}
return nil
}