Merge pull request #8364 from hashicorp/fix_8222
update to newest version of go-tty to fix control flow bug
This commit is contained in:
commit
50e84624b9
5
go.mod
5
go.mod
|
@ -93,7 +93,8 @@ require (
|
||||||
github.com/masterzen/azure-sdk-for-go v0.0.0-20161014135628-ee4f0065d00c // indirect
|
github.com/masterzen/azure-sdk-for-go v0.0.0-20161014135628-ee4f0065d00c // indirect
|
||||||
github.com/masterzen/simplexml v0.0.0-20190410153822-31eea3082786 // indirect
|
github.com/masterzen/simplexml v0.0.0-20190410153822-31eea3082786 // indirect
|
||||||
github.com/masterzen/winrm v0.0.0-20180224160350-7e40f93ae939
|
github.com/masterzen/winrm v0.0.0-20180224160350-7e40f93ae939
|
||||||
github.com/mattn/go-tty v0.0.0-20190424173100-523744f04859
|
github.com/mattn/go-isatty v0.0.10 // indirect
|
||||||
|
github.com/mattn/go-tty v0.0.0-20191112051231-74040eebce08
|
||||||
github.com/miekg/dns v1.1.1 // indirect
|
github.com/miekg/dns v1.1.1 // indirect
|
||||||
github.com/mitchellh/cli v1.0.0
|
github.com/mitchellh/cli v1.0.0
|
||||||
github.com/mitchellh/go-fs v0.0.0-20180402234041-7b48fa161ea7
|
github.com/mitchellh/go-fs v0.0.0-20180402234041-7b48fa161ea7
|
||||||
|
@ -147,7 +148,7 @@ require (
|
||||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
|
||||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
||||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58
|
||||||
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0
|
golang.org/x/sys v0.0.0-20191110163157-d32e6e3b99c4
|
||||||
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0
|
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0
|
||||||
google.golang.org/api v0.9.0
|
google.golang.org/api v0.9.0
|
||||||
google.golang.org/grpc v1.21.1
|
google.golang.org/grpc v1.21.1
|
||||||
|
|
7
go.sum
7
go.sum
|
@ -299,10 +299,14 @@ github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaO
|
||||||
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||||
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
|
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
|
||||||
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||||
|
github.com/mattn/go-isatty v0.0.10 h1:qxFzApOv4WsAL965uUPIsXzAKCZxN2p9UqdhFS4ZW10=
|
||||||
|
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
||||||
github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y=
|
github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y=
|
||||||
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||||
github.com/mattn/go-tty v0.0.0-20190424173100-523744f04859 h1:smQbSzmT3EHl4EUwtFwFGmGIpiYgIiiPeVv1uguIQEE=
|
github.com/mattn/go-tty v0.0.0-20190424173100-523744f04859 h1:smQbSzmT3EHl4EUwtFwFGmGIpiYgIiiPeVv1uguIQEE=
|
||||||
github.com/mattn/go-tty v0.0.0-20190424173100-523744f04859/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE=
|
github.com/mattn/go-tty v0.0.0-20190424173100-523744f04859/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE=
|
||||||
|
github.com/mattn/go-tty v0.0.0-20191112051231-74040eebce08 h1:8YAWbq7rJqfbc6IaAvA2eCQuOQvf6Bs4vHKcOyWw//E=
|
||||||
|
github.com/mattn/go-tty v0.0.0-20191112051231-74040eebce08/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE=
|
||||||
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||||
github.com/miekg/dns v1.1.1 h1:DVkblRdiScEnEr0LR9nTnEQqHYycjkXW9bOjd+2EL2o=
|
github.com/miekg/dns v1.1.1 h1:DVkblRdiScEnEr0LR9nTnEQqHYycjkXW9bOjd+2EL2o=
|
||||||
github.com/miekg/dns v1.1.1/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
github.com/miekg/dns v1.1.1/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||||
|
@ -515,6 +519,9 @@ golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||||
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc=
|
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc=
|
||||||
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191110163157-d32e6e3b99c4 h1:Hynbrlo6LbYI3H1IqXpkVDOcX/3HiPdhVEuyj5a59RM=
|
||||||
|
golang.org/x/sys v0.0.0-20191110163157-d32e6e3b99c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 h1:z99zHgr7hKfrUcX/KsoJk5FJfjTceCKIp96+biqP4To=
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2 h1:z99zHgr7hKfrUcX/KsoJk5FJfjTceCKIp96+biqP4To=
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
module github.com/mattn/go-isatty
|
||||||
|
|
||||||
|
require golang.org/x/sys v0.0.0-20191008105621-543471e840be
|
||||||
|
|
||||||
|
go 1.14
|
|
@ -0,0 +1,4 @@
|
||||||
|
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ=
|
||||||
|
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191008105621-543471e840be h1:QAcqgptGM8IQBC9K/RC4o+O9YmqEm0diQn9QmZw/0mU=
|
||||||
|
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
|
@ -1,5 +1,4 @@
|
||||||
// +build linux
|
// +build android
|
||||||
// +build !appengine,!ppc64,!ppc64le
|
|
||||||
|
|
||||||
package isatty
|
package isatty
|
||||||
|
|
||||||
|
@ -16,3 +15,9 @@ func IsTerminal(fd uintptr) bool {
|
||||||
_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
|
_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
|
||||||
return err == 0
|
return err == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
|
||||||
|
// terminal. This is also always false on this environment.
|
||||||
|
func IsCygwinTerminal(fd uintptr) bool {
|
||||||
|
return false
|
||||||
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
// +build appengine
|
|
||||||
|
|
||||||
package isatty
|
|
||||||
|
|
||||||
// IsTerminal returns true if the file descriptor is terminal which
|
|
||||||
// is always false on on appengine classic which is a sandboxed PaaS.
|
|
||||||
func IsTerminal(fd uintptr) bool {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
|
|
||||||
// terminal. This is also always false on this environment.
|
|
||||||
func IsCygwinTerminal(fd uintptr) bool {
|
|
||||||
return false
|
|
||||||
}
|
|
|
@ -16,3 +16,9 @@ func IsTerminal(fd uintptr) bool {
|
||||||
_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
|
_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
|
||||||
return err == 0
|
return err == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
|
||||||
|
// terminal. This is also always false on this environment.
|
||||||
|
func IsCygwinTerminal(fd uintptr) bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
// +build linux
|
|
||||||
// +build ppc64 ppc64le
|
|
||||||
|
|
||||||
package isatty
|
|
||||||
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
|
|
||||||
syscall "golang.org/x/sys/unix"
|
|
||||||
)
|
|
||||||
|
|
||||||
const ioctlReadTermios = syscall.TCGETS
|
|
||||||
|
|
||||||
// IsTerminal return true if the file descriptor is terminal.
|
|
||||||
func IsTerminal(fd uintptr) bool {
|
|
||||||
var termios syscall.Termios
|
|
||||||
_, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0)
|
|
||||||
return err == 0
|
|
||||||
}
|
|
|
@ -1,9 +1,14 @@
|
||||||
// +build !windows
|
// +build appengine js nacl
|
||||||
// +build !appengine
|
|
||||||
|
|
||||||
package isatty
|
package isatty
|
||||||
|
|
||||||
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
|
// IsTerminal returns true if the file descriptor is terminal which
|
||||||
|
// is always false on js and appengine classic which is a sandboxed PaaS.
|
||||||
|
func IsTerminal(fd uintptr) bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
|
||||||
// terminal. This is also always false on this environment.
|
// terminal. This is also always false on this environment.
|
||||||
func IsCygwinTerminal(fd uintptr) bool {
|
func IsCygwinTerminal(fd uintptr) bool {
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
// +build plan9
|
||||||
|
|
||||||
|
package isatty
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
// IsTerminal returns true if the given file descriptor is a terminal.
|
||||||
|
func IsTerminal(fd uintptr) bool {
|
||||||
|
path, err := syscall.Fd2path(fd)
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return path == "/dev/cons" || path == "/mnt/term/dev/cons"
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
|
||||||
|
// terminal. This is also always false on this environment.
|
||||||
|
func IsCygwinTerminal(fd uintptr) bool {
|
||||||
|
return false
|
||||||
|
}
|
|
@ -14,3 +14,9 @@ func IsTerminal(fd uintptr) bool {
|
||||||
err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
|
err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
|
||||||
return err == nil
|
return err == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
|
||||||
|
// terminal. This is also always false on this environment.
|
||||||
|
func IsCygwinTerminal(fd uintptr) bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
// +build linux aix
|
||||||
|
// +build !appengine
|
||||||
|
// +build !android
|
||||||
|
|
||||||
|
package isatty
|
||||||
|
|
||||||
|
import "golang.org/x/sys/unix"
|
||||||
|
|
||||||
|
// IsTerminal return true if the file descriptor is terminal.
|
||||||
|
func IsTerminal(fd uintptr) bool {
|
||||||
|
_, err := unix.IoctlGetTermios(int(fd), unix.TCGETS)
|
||||||
|
return err == nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
|
||||||
|
// terminal. This is also always false on this environment.
|
||||||
|
func IsCygwinTerminal(fd uintptr) bool {
|
||||||
|
return false
|
||||||
|
}
|
|
@ -4,6 +4,7 @@
|
||||||
package isatty
|
package isatty
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unicode/utf16"
|
"unicode/utf16"
|
||||||
|
@ -11,15 +12,18 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
fileNameInfo uintptr = 2
|
objectNameInfo uintptr = 1
|
||||||
fileTypePipe = 3
|
fileNameInfo = 2
|
||||||
|
fileTypePipe = 3
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
kernel32 = syscall.NewLazyDLL("kernel32.dll")
|
kernel32 = syscall.NewLazyDLL("kernel32.dll")
|
||||||
|
ntdll = syscall.NewLazyDLL("ntdll.dll")
|
||||||
procGetConsoleMode = kernel32.NewProc("GetConsoleMode")
|
procGetConsoleMode = kernel32.NewProc("GetConsoleMode")
|
||||||
procGetFileInformationByHandleEx = kernel32.NewProc("GetFileInformationByHandleEx")
|
procGetFileInformationByHandleEx = kernel32.NewProc("GetFileInformationByHandleEx")
|
||||||
procGetFileType = kernel32.NewProc("GetFileType")
|
procGetFileType = kernel32.NewProc("GetFileType")
|
||||||
|
procNtQueryObject = ntdll.NewProc("NtQueryObject")
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -45,7 +49,10 @@ func isCygwinPipeName(name string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if token[0] != `\msys` && token[0] != `\cygwin` {
|
if token[0] != `\msys` &&
|
||||||
|
token[0] != `\cygwin` &&
|
||||||
|
token[0] != `\Device\NamedPipe\msys` &&
|
||||||
|
token[0] != `\Device\NamedPipe\cygwin` {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,11 +75,35 @@ func isCygwinPipeName(name string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getFileNameByHandle use the undocomented ntdll NtQueryObject to get file full name from file handler
|
||||||
|
// since GetFileInformationByHandleEx is not avilable under windows Vista and still some old fashion
|
||||||
|
// guys are using Windows XP, this is a workaround for those guys, it will also work on system from
|
||||||
|
// Windows vista to 10
|
||||||
|
// see https://stackoverflow.com/a/18792477 for details
|
||||||
|
func getFileNameByHandle(fd uintptr) (string, error) {
|
||||||
|
if procNtQueryObject == nil {
|
||||||
|
return "", errors.New("ntdll.dll: NtQueryObject not supported")
|
||||||
|
}
|
||||||
|
|
||||||
|
var buf [4 + syscall.MAX_PATH]uint16
|
||||||
|
var result int
|
||||||
|
r, _, e := syscall.Syscall6(procNtQueryObject.Addr(), 5,
|
||||||
|
fd, objectNameInfo, uintptr(unsafe.Pointer(&buf)), uintptr(2*len(buf)), uintptr(unsafe.Pointer(&result)), 0)
|
||||||
|
if r != 0 {
|
||||||
|
return "", e
|
||||||
|
}
|
||||||
|
return string(utf16.Decode(buf[4 : 4+buf[0]/2])), nil
|
||||||
|
}
|
||||||
|
|
||||||
// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
|
// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
|
||||||
// terminal.
|
// terminal.
|
||||||
func IsCygwinTerminal(fd uintptr) bool {
|
func IsCygwinTerminal(fd uintptr) bool {
|
||||||
if procGetFileInformationByHandleEx == nil {
|
if procGetFileInformationByHandleEx == nil {
|
||||||
return false
|
name, err := getFileNameByHandle(fd)
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return isCygwinPipeName(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cygwin/msys's pty is a pipe.
|
// Cygwin/msys's pty is a pipe.
|
||||||
|
|
|
@ -41,7 +41,7 @@ func open() (*TTY, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
newios := tty.termios
|
newios := tty.termios
|
||||||
newios.Iflag &^= syscall.ISTRIP | syscall.INLCR | syscall.ICRNL | syscall.IGNCR | syscall.IXON | syscall.IXOFF
|
newios.Iflag &^= syscall.ISTRIP | syscall.INLCR | syscall.ICRNL | syscall.IGNCR | syscall.IXOFF
|
||||||
newios.Lflag &^= syscall.ECHO | syscall.ICANON /*| syscall.ISIG*/
|
newios.Lflag &^= syscall.ECHO | syscall.ICANON /*| syscall.ISIG*/
|
||||||
if _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(tty.in.Fd()), ioctlWriteTermios, uintptr(unsafe.Pointer(&newios)), 0, 0, 0); err != 0 {
|
if _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(tty.in.Fd()), ioctlWriteTermios, uintptr(unsafe.Pointer(&newios)), 0, 0, 0); err != 0 {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -5,26 +5,56 @@
|
||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
|
||||||
"runtime"
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// byteOrder is a subset of encoding/binary.ByteOrder.
|
||||||
|
type byteOrder interface {
|
||||||
|
Uint32([]byte) uint32
|
||||||
|
Uint64([]byte) uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type littleEndian struct{}
|
||||||
|
type bigEndian struct{}
|
||||||
|
|
||||||
|
func (littleEndian) Uint32(b []byte) uint32 {
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24
|
||||||
|
}
|
||||||
|
|
||||||
|
func (littleEndian) Uint64(b []byte) uint64 {
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 |
|
||||||
|
uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
|
||||||
|
}
|
||||||
|
|
||||||
|
func (bigEndian) Uint32(b []byte) uint32 {
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint32(b[3]) | uint32(b[2])<<8 | uint32(b[1])<<16 | uint32(b[0])<<24
|
||||||
|
}
|
||||||
|
|
||||||
|
func (bigEndian) Uint64(b []byte) uint64 {
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 |
|
||||||
|
uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56
|
||||||
|
}
|
||||||
|
|
||||||
// hostByteOrder returns binary.LittleEndian on little-endian machines and
|
// hostByteOrder returns binary.LittleEndian on little-endian machines and
|
||||||
// binary.BigEndian on big-endian machines.
|
// binary.BigEndian on big-endian machines.
|
||||||
func hostByteOrder() binary.ByteOrder {
|
func hostByteOrder() byteOrder {
|
||||||
switch runtime.GOARCH {
|
switch runtime.GOARCH {
|
||||||
case "386", "amd64", "amd64p32",
|
case "386", "amd64", "amd64p32",
|
||||||
"arm", "arm64",
|
"arm", "arm64",
|
||||||
"mipsle", "mips64le", "mips64p32le",
|
"mipsle", "mips64le", "mips64p32le",
|
||||||
"ppc64le",
|
"ppc64le",
|
||||||
"riscv", "riscv64":
|
"riscv", "riscv64":
|
||||||
return binary.LittleEndian
|
return littleEndian{}
|
||||||
case "armbe", "arm64be",
|
case "armbe", "arm64be",
|
||||||
"mips", "mips64", "mips64p32",
|
"mips", "mips64", "mips64p32",
|
||||||
"ppc", "ppc64",
|
"ppc", "ppc64",
|
||||||
"s390", "s390x",
|
"s390", "s390x",
|
||||||
"sparc", "sparc64":
|
"sparc", "sparc64":
|
||||||
return binary.BigEndian
|
return bigEndian{}
|
||||||
}
|
}
|
||||||
panic("unknown architecture")
|
panic("unknown architecture")
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,6 +78,42 @@ var ARM64 struct {
|
||||||
_ CacheLinePad
|
_ CacheLinePad
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ARM contains the supported CPU features of the current ARM (32-bit) platform.
|
||||||
|
// All feature flags are false if:
|
||||||
|
// 1. the current platform is not arm, or
|
||||||
|
// 2. the current operating system is not Linux.
|
||||||
|
var ARM struct {
|
||||||
|
_ CacheLinePad
|
||||||
|
HasSWP bool // SWP instruction support
|
||||||
|
HasHALF bool // Half-word load and store support
|
||||||
|
HasTHUMB bool // ARM Thumb instruction set
|
||||||
|
Has26BIT bool // Address space limited to 26-bits
|
||||||
|
HasFASTMUL bool // 32-bit operand, 64-bit result multiplication support
|
||||||
|
HasFPA bool // Floating point arithmetic support
|
||||||
|
HasVFP bool // Vector floating point support
|
||||||
|
HasEDSP bool // DSP Extensions support
|
||||||
|
HasJAVA bool // Java instruction set
|
||||||
|
HasIWMMXT bool // Intel Wireless MMX technology support
|
||||||
|
HasCRUNCH bool // MaverickCrunch context switching and handling
|
||||||
|
HasTHUMBEE bool // Thumb EE instruction set
|
||||||
|
HasNEON bool // NEON instruction set
|
||||||
|
HasVFPv3 bool // Vector floating point version 3 support
|
||||||
|
HasVFPv3D16 bool // Vector floating point version 3 D8-D15
|
||||||
|
HasTLS bool // Thread local storage support
|
||||||
|
HasVFPv4 bool // Vector floating point version 4 support
|
||||||
|
HasIDIVA bool // Integer divide instruction support in ARM mode
|
||||||
|
HasIDIVT bool // Integer divide instruction support in Thumb mode
|
||||||
|
HasVFPD32 bool // Vector floating point version 3 D15-D31
|
||||||
|
HasLPAE bool // Large Physical Address Extensions
|
||||||
|
HasEVTSTRM bool // Event stream support
|
||||||
|
HasAES bool // AES hardware implementation
|
||||||
|
HasPMULL bool // Polynomial multiplication instruction set
|
||||||
|
HasSHA1 bool // SHA1 hardware implementation
|
||||||
|
HasSHA2 bool // SHA2 hardware implementation
|
||||||
|
HasCRC32 bool // CRC32 hardware implementation
|
||||||
|
_ CacheLinePad
|
||||||
|
}
|
||||||
|
|
||||||
// PPC64 contains the supported CPU features of the current ppc64/ppc64le platforms.
|
// PPC64 contains the supported CPU features of the current ppc64/ppc64le platforms.
|
||||||
// If the current platform is not ppc64/ppc64le then all feature flags are false.
|
// If the current platform is not ppc64/ppc64le then all feature flags are false.
|
||||||
//
|
//
|
||||||
|
|
|
@ -6,4 +6,35 @@ package cpu
|
||||||
|
|
||||||
const cacheLineSize = 32
|
const cacheLineSize = 32
|
||||||
|
|
||||||
func doinit() {}
|
// HWCAP/HWCAP2 bits.
|
||||||
|
// These are specific to Linux.
|
||||||
|
const (
|
||||||
|
hwcap_SWP = 1 << 0
|
||||||
|
hwcap_HALF = 1 << 1
|
||||||
|
hwcap_THUMB = 1 << 2
|
||||||
|
hwcap_26BIT = 1 << 3
|
||||||
|
hwcap_FAST_MULT = 1 << 4
|
||||||
|
hwcap_FPA = 1 << 5
|
||||||
|
hwcap_VFP = 1 << 6
|
||||||
|
hwcap_EDSP = 1 << 7
|
||||||
|
hwcap_JAVA = 1 << 8
|
||||||
|
hwcap_IWMMXT = 1 << 9
|
||||||
|
hwcap_CRUNCH = 1 << 10
|
||||||
|
hwcap_THUMBEE = 1 << 11
|
||||||
|
hwcap_NEON = 1 << 12
|
||||||
|
hwcap_VFPv3 = 1 << 13
|
||||||
|
hwcap_VFPv3D16 = 1 << 14
|
||||||
|
hwcap_TLS = 1 << 15
|
||||||
|
hwcap_VFPv4 = 1 << 16
|
||||||
|
hwcap_IDIVA = 1 << 17
|
||||||
|
hwcap_IDIVT = 1 << 18
|
||||||
|
hwcap_VFPD32 = 1 << 19
|
||||||
|
hwcap_LPAE = 1 << 20
|
||||||
|
hwcap_EVTSTRM = 1 << 21
|
||||||
|
|
||||||
|
hwcap2_AES = 1 << 0
|
||||||
|
hwcap2_PMULL = 1 << 1
|
||||||
|
hwcap2_SHA1 = 1 << 2
|
||||||
|
hwcap2_SHA2 = 1 << 3
|
||||||
|
hwcap2_CRC32 = 1 << 4
|
||||||
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//+build !amd64,!amd64p32,!386
|
// +build !amd64,!amd64p32,!386
|
||||||
|
|
||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package cpu
|
||||||
|
|
||||||
|
func doinit() {
|
||||||
|
ARM.HasSWP = isSet(hwCap, hwcap_SWP)
|
||||||
|
ARM.HasHALF = isSet(hwCap, hwcap_HALF)
|
||||||
|
ARM.HasTHUMB = isSet(hwCap, hwcap_THUMB)
|
||||||
|
ARM.Has26BIT = isSet(hwCap, hwcap_26BIT)
|
||||||
|
ARM.HasFASTMUL = isSet(hwCap, hwcap_FAST_MULT)
|
||||||
|
ARM.HasFPA = isSet(hwCap, hwcap_FPA)
|
||||||
|
ARM.HasVFP = isSet(hwCap, hwcap_VFP)
|
||||||
|
ARM.HasEDSP = isSet(hwCap, hwcap_EDSP)
|
||||||
|
ARM.HasJAVA = isSet(hwCap, hwcap_JAVA)
|
||||||
|
ARM.HasIWMMXT = isSet(hwCap, hwcap_IWMMXT)
|
||||||
|
ARM.HasCRUNCH = isSet(hwCap, hwcap_CRUNCH)
|
||||||
|
ARM.HasTHUMBEE = isSet(hwCap, hwcap_THUMBEE)
|
||||||
|
ARM.HasNEON = isSet(hwCap, hwcap_NEON)
|
||||||
|
ARM.HasVFPv3 = isSet(hwCap, hwcap_VFPv3)
|
||||||
|
ARM.HasVFPv3D16 = isSet(hwCap, hwcap_VFPv3D16)
|
||||||
|
ARM.HasTLS = isSet(hwCap, hwcap_TLS)
|
||||||
|
ARM.HasVFPv4 = isSet(hwCap, hwcap_VFPv4)
|
||||||
|
ARM.HasIDIVA = isSet(hwCap, hwcap_IDIVA)
|
||||||
|
ARM.HasIDIVT = isSet(hwCap, hwcap_IDIVT)
|
||||||
|
ARM.HasVFPD32 = isSet(hwCap, hwcap_VFPD32)
|
||||||
|
ARM.HasLPAE = isSet(hwCap, hwcap_LPAE)
|
||||||
|
ARM.HasEVTSTRM = isSet(hwCap, hwcap_EVTSTRM)
|
||||||
|
ARM.HasAES = isSet(hwCap2, hwcap2_AES)
|
||||||
|
ARM.HasPMULL = isSet(hwCap2, hwcap2_PMULL)
|
||||||
|
ARM.HasSHA1 = isSet(hwCap2, hwcap2_SHA1)
|
||||||
|
ARM.HasSHA2 = isSet(hwCap2, hwcap2_SHA2)
|
||||||
|
ARM.HasCRC32 = isSet(hwCap2, hwcap2_CRC32)
|
||||||
|
}
|
||||||
|
|
||||||
|
func isSet(hwc uint, value uint) bool {
|
||||||
|
return hwc&value != 0
|
||||||
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"math/bits"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -79,46 +80,7 @@ func (s *CPUSet) IsSet(cpu int) bool {
|
||||||
func (s *CPUSet) Count() int {
|
func (s *CPUSet) Count() int {
|
||||||
c := 0
|
c := 0
|
||||||
for _, b := range s {
|
for _, b := range s {
|
||||||
c += onesCount64(uint64(b))
|
c += bits.OnesCount64(uint64(b))
|
||||||
}
|
}
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
// onesCount64 is a copy of Go 1.9's math/bits.OnesCount64.
|
|
||||||
// Once this package can require Go 1.9, we can delete this
|
|
||||||
// and update the caller to use bits.OnesCount64.
|
|
||||||
func onesCount64(x uint64) int {
|
|
||||||
const m0 = 0x5555555555555555 // 01010101 ...
|
|
||||||
const m1 = 0x3333333333333333 // 00110011 ...
|
|
||||||
const m2 = 0x0f0f0f0f0f0f0f0f // 00001111 ...
|
|
||||||
const m3 = 0x00ff00ff00ff00ff // etc.
|
|
||||||
const m4 = 0x0000ffff0000ffff
|
|
||||||
|
|
||||||
// Implementation: Parallel summing of adjacent bits.
|
|
||||||
// See "Hacker's Delight", Chap. 5: Counting Bits.
|
|
||||||
// The following pattern shows the general approach:
|
|
||||||
//
|
|
||||||
// x = x>>1&(m0&m) + x&(m0&m)
|
|
||||||
// x = x>>2&(m1&m) + x&(m1&m)
|
|
||||||
// x = x>>4&(m2&m) + x&(m2&m)
|
|
||||||
// x = x>>8&(m3&m) + x&(m3&m)
|
|
||||||
// x = x>>16&(m4&m) + x&(m4&m)
|
|
||||||
// x = x>>32&(m5&m) + x&(m5&m)
|
|
||||||
// return int(x)
|
|
||||||
//
|
|
||||||
// Masking (& operations) can be left away when there's no
|
|
||||||
// danger that a field's sum will carry over into the next
|
|
||||||
// field: Since the result cannot be > 64, 8 bits is enough
|
|
||||||
// and we can ignore the masks for the shifts by 8 and up.
|
|
||||||
// Per "Hacker's Delight", the first line can be simplified
|
|
||||||
// more, but it saves at best one instruction, so we leave
|
|
||||||
// it alone for clarity.
|
|
||||||
const m = 1<<64 - 1
|
|
||||||
x = x>>1&(m0&m) + x&(m0&m)
|
|
||||||
x = x>>2&(m1&m) + x&(m1&m)
|
|
||||||
x = (x>>4 + x) & (m2 & m)
|
|
||||||
x += x >> 8
|
|
||||||
x += x >> 16
|
|
||||||
x += x >> 32
|
|
||||||
return int(x) & (1<<7 - 1)
|
|
||||||
}
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ const (
|
||||||
HCI_CHANNEL_USER = 1
|
HCI_CHANNEL_USER = 1
|
||||||
HCI_CHANNEL_MONITOR = 2
|
HCI_CHANNEL_MONITOR = 2
|
||||||
HCI_CHANNEL_CONTROL = 3
|
HCI_CHANNEL_CONTROL = 3
|
||||||
|
HCI_CHANNEL_LOGGING = 4
|
||||||
)
|
)
|
||||||
|
|
||||||
// Socketoption Level
|
// Socketoption Level
|
||||||
|
|
|
@ -2,16 +2,101 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "syscall"
|
import "unsafe"
|
||||||
|
|
||||||
|
// readInt returns the size-bytes unsigned integer in native byte order at offset off.
|
||||||
|
func readInt(b []byte, off, size uintptr) (u uint64, ok bool) {
|
||||||
|
if len(b) < int(off+size) {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
if isBigEndian {
|
||||||
|
return readIntBE(b[off:], size), true
|
||||||
|
}
|
||||||
|
return readIntLE(b[off:], size), true
|
||||||
|
}
|
||||||
|
|
||||||
|
func readIntBE(b []byte, size uintptr) uint64 {
|
||||||
|
switch size {
|
||||||
|
case 1:
|
||||||
|
return uint64(b[0])
|
||||||
|
case 2:
|
||||||
|
_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[1]) | uint64(b[0])<<8
|
||||||
|
case 4:
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24
|
||||||
|
case 8:
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 |
|
||||||
|
uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56
|
||||||
|
default:
|
||||||
|
panic("syscall: readInt with unsupported size")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func readIntLE(b []byte, size uintptr) uint64 {
|
||||||
|
switch size {
|
||||||
|
case 1:
|
||||||
|
return uint64(b[0])
|
||||||
|
case 2:
|
||||||
|
_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8
|
||||||
|
case 4:
|
||||||
|
_ = b[3] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24
|
||||||
|
case 8:
|
||||||
|
_ = b[7] // bounds check hint to compiler; see golang.org/issue/14808
|
||||||
|
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 |
|
||||||
|
uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56
|
||||||
|
default:
|
||||||
|
panic("syscall: readInt with unsupported size")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ParseDirent parses up to max directory entries in buf,
|
// ParseDirent parses up to max directory entries in buf,
|
||||||
// appending the names to names. It returns the number of
|
// appending the names to names. It returns the number of
|
||||||
// bytes consumed from buf, the number of entries added
|
// bytes consumed from buf, the number of entries added
|
||||||
// to names, and the new names slice.
|
// to names, and the new names slice.
|
||||||
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
|
||||||
return syscall.ParseDirent(buf, max, names)
|
origlen := len(buf)
|
||||||
|
count = 0
|
||||||
|
for max != 0 && len(buf) > 0 {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok || reclen > uint64(len(buf)) {
|
||||||
|
return origlen, count, names
|
||||||
|
}
|
||||||
|
rec := buf[:reclen]
|
||||||
|
buf = buf[reclen:]
|
||||||
|
ino, ok := direntIno(rec)
|
||||||
|
if !ok {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if ino == 0 { // File absent in directory.
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
|
||||||
|
namlen, ok := direntNamlen(rec)
|
||||||
|
if !ok || namoff+namlen > uint64(len(rec)) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
name := rec[namoff : namoff+namlen]
|
||||||
|
for i, c := range name {
|
||||||
|
if c == 0 {
|
||||||
|
name = name[:i]
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Check for useless names before allocating a string.
|
||||||
|
if string(name) == "." || string(name) == ".." {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
max--
|
||||||
|
count++
|
||||||
|
names = append(names, string(name))
|
||||||
|
}
|
||||||
|
return origlen - len(buf), count, names
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
//
|
//
|
||||||
// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le
|
// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le riscv64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// Set adds fd to the set fds.
|
||||||
|
func (fds *FdSet) Set(fd int) {
|
||||||
|
fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear removes fd from the set fds.
|
||||||
|
func (fds *FdSet) Clear(fd int) {
|
||||||
|
fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsSet returns whether fd is in the set fds.
|
||||||
|
func (fds *FdSet) IsSet(fd int) bool {
|
||||||
|
return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// Zero clears the set fds.
|
||||||
|
func (fds *FdSet) Zero() {
|
||||||
|
for i := range fds.Bits {
|
||||||
|
fds.Bits[i] = 0
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,7 +6,19 @@
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "runtime"
|
import (
|
||||||
|
"runtime"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
|
// on fd, using the specified request number.
|
||||||
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
|
return ioctl(fd, req, uintptr(value))
|
||||||
|
}
|
||||||
|
|
||||||
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||||
//
|
//
|
||||||
|
@ -14,7 +26,7 @@ import "runtime"
|
||||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
// TODO: if we get the chance, remove the req parameter and
|
// TODO: if we get the chance, remove the req parameter and
|
||||||
// hardcode TIOCSWINSZ.
|
// hardcode TIOCSWINSZ.
|
||||||
err := ioctlSetWinsize(fd, req, value)
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
runtime.KeepAlive(value)
|
runtime.KeepAlive(value)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -24,7 +36,30 @@ func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
// The req value will usually be TCSETA or TIOCSETA.
|
// The req value will usually be TCSETA or TIOCSETA.
|
||||||
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
// TODO: if we get the chance, remove the req parameter.
|
// TODO: if we get the chance, remove the req parameter.
|
||||||
err := ioctlSetTermios(fd, req, value)
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
runtime.KeepAlive(value)
|
runtime.KeepAlive(value)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
|
// from fd, using the specified request number.
|
||||||
|
//
|
||||||
|
// A few ioctl requests use the return value as an output parameter;
|
||||||
|
// for those, IoctlRetInt should be used instead of this function.
|
||||||
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
|
var value int
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
|
var value Termios
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
|
@ -212,9 +212,11 @@ esac
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
||||||
elif [ "$GOOS" == "darwin" ]; then
|
elif [ "$GOOS" == "darwin" ]; then
|
||||||
# pre-1.12, direct syscalls
|
# pre-1.12, direct syscalls
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,!go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.1_11.go";
|
echo "$mksyscall -tags $GOOS,$GOARCH,!go1.12 $syscall_goos syscall_darwin_${GOARCH}.1_11.go $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.1_11.go";
|
||||||
# 1.12 and later, syscalls via libSystem
|
# 1.12 and later, syscalls via libSystem
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
||||||
|
# 1.13 and later, syscalls via libSystem (including syscallPtr)
|
||||||
|
echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";
|
||||||
else
|
else
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -60,6 +60,7 @@ includes_Darwin='
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
@ -80,6 +81,7 @@ includes_Darwin='
|
||||||
includes_DragonFly='
|
includes_DragonFly='
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -103,6 +105,7 @@ includes_FreeBSD='
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -179,52 +182,58 @@ struct ltchars {
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <sys/signalfd.h>
|
#include <sys/signalfd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/xattr.h>
|
#include <sys/xattr.h>
|
||||||
#include <linux/bpf.h>
|
#include <linux/bpf.h>
|
||||||
|
#include <linux/can.h>
|
||||||
#include <linux/capability.h>
|
#include <linux/capability.h>
|
||||||
|
#include <linux/cryptouser.h>
|
||||||
|
#include <linux/devlink.h>
|
||||||
#include <linux/errqueue.h>
|
#include <linux/errqueue.h>
|
||||||
|
#include <linux/falloc.h>
|
||||||
|
#include <linux/fanotify.h>
|
||||||
|
#include <linux/filter.h>
|
||||||
|
#include <linux/fs.h>
|
||||||
|
#include <linux/genetlink.h>
|
||||||
|
#include <linux/hdreg.h>
|
||||||
|
#include <linux/icmpv6.h>
|
||||||
#include <linux/if.h>
|
#include <linux/if.h>
|
||||||
|
#include <linux/if_addr.h>
|
||||||
#include <linux/if_alg.h>
|
#include <linux/if_alg.h>
|
||||||
#include <linux/if_arp.h>
|
#include <linux/if_arp.h>
|
||||||
#include <linux/if_ether.h>
|
#include <linux/if_ether.h>
|
||||||
#include <linux/if_ppp.h>
|
#include <linux/if_ppp.h>
|
||||||
#include <linux/if_tun.h>
|
#include <linux/if_tun.h>
|
||||||
#include <linux/if_packet.h>
|
#include <linux/if_packet.h>
|
||||||
#include <linux/if_addr.h>
|
#include <linux/if_xdp.h>
|
||||||
#include <linux/falloc.h>
|
|
||||||
#include <linux/fanotify.h>
|
|
||||||
#include <linux/filter.h>
|
|
||||||
#include <linux/fs.h>
|
|
||||||
#include <linux/kexec.h>
|
#include <linux/kexec.h>
|
||||||
#include <linux/keyctl.h>
|
#include <linux/keyctl.h>
|
||||||
|
#include <linux/loop.h>
|
||||||
#include <linux/magic.h>
|
#include <linux/magic.h>
|
||||||
#include <linux/memfd.h>
|
#include <linux/memfd.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/netfilter/nfnetlink.h>
|
#include <linux/netfilter/nfnetlink.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/net_namespace.h>
|
#include <linux/net_namespace.h>
|
||||||
|
#include <linux/nsfs.h>
|
||||||
#include <linux/perf_event.h>
|
#include <linux/perf_event.h>
|
||||||
|
#include <linux/ptrace.h>
|
||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
#include <linux/reboot.h>
|
#include <linux/reboot.h>
|
||||||
|
#include <linux/rtc.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <linux/rtnetlink.h>
|
||||||
#include <linux/ptrace.h>
|
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
#include <linux/seccomp.h>
|
#include <linux/seccomp.h>
|
||||||
#include <linux/sockios.h>
|
|
||||||
#include <linux/wait.h>
|
|
||||||
#include <linux/icmpv6.h>
|
|
||||||
#include <linux/serial.h>
|
#include <linux/serial.h>
|
||||||
#include <linux/can.h>
|
#include <linux/sockios.h>
|
||||||
#include <linux/vm_sockets.h>
|
|
||||||
#include <linux/taskstats.h>
|
#include <linux/taskstats.h>
|
||||||
#include <linux/genetlink.h>
|
#include <linux/tipc.h>
|
||||||
|
#include <linux/vm_sockets.h>
|
||||||
|
#include <linux/wait.h>
|
||||||
#include <linux/watchdog.h>
|
#include <linux/watchdog.h>
|
||||||
#include <linux/hdreg.h>
|
|
||||||
#include <linux/rtc.h>
|
|
||||||
#include <linux/if_xdp.h>
|
|
||||||
#include <linux/cryptouser.h>
|
|
||||||
#include <mtd/ubi-user.h>
|
#include <mtd/ubi-user.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
|
|
||||||
|
@ -263,6 +272,11 @@ struct ltchars {
|
||||||
#define FS_KEY_DESC_PREFIX "fscrypt:"
|
#define FS_KEY_DESC_PREFIX "fscrypt:"
|
||||||
#define FS_KEY_DESC_PREFIX_SIZE 8
|
#define FS_KEY_DESC_PREFIX_SIZE 8
|
||||||
#define FS_MAX_KEY_SIZE 64
|
#define FS_MAX_KEY_SIZE 64
|
||||||
|
|
||||||
|
// The code generator produces -0x1 for (~0), but an unsigned value is necessary
|
||||||
|
// for the tipc_subscr timeout __u32 field.
|
||||||
|
#undef TIPC_WAIT_FOREVER
|
||||||
|
#define TIPC_WAIT_FOREVER 0xffffffff
|
||||||
'
|
'
|
||||||
|
|
||||||
includes_NetBSD='
|
includes_NetBSD='
|
||||||
|
@ -272,6 +286,7 @@ includes_NetBSD='
|
||||||
#include <sys/extattr.h>
|
#include <sys/extattr.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
@ -298,6 +313,7 @@ includes_OpenBSD='
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -334,6 +350,7 @@ includes_OpenBSD='
|
||||||
includes_SunOS='
|
includes_SunOS='
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -426,6 +443,7 @@ ccflags="$@"
|
||||||
$2 == "XCASE" ||
|
$2 == "XCASE" ||
|
||||||
$2 == "ALTWERASE" ||
|
$2 == "ALTWERASE" ||
|
||||||
$2 == "NOKERNINFO" ||
|
$2 == "NOKERNINFO" ||
|
||||||
|
$2 == "NFDBITS" ||
|
||||||
$2 ~ /^PAR/ ||
|
$2 ~ /^PAR/ ||
|
||||||
$2 ~ /^SIG[^_]/ ||
|
$2 ~ /^SIG[^_]/ ||
|
||||||
$2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ ||
|
$2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ ||
|
||||||
|
@ -435,6 +453,8 @@ ccflags="$@"
|
||||||
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
||||||
$2 ~ /^IN_/ ||
|
$2 ~ /^IN_/ ||
|
||||||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
||||||
|
$2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
|
||||||
|
$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
|
||||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
||||||
$2 ~ /^TP_STATUS_/ ||
|
$2 ~ /^TP_STATUS_/ ||
|
||||||
$2 ~ /^FALLOC_/ ||
|
$2 ~ /^FALLOC_/ ||
|
||||||
|
@ -448,6 +468,7 @@ ccflags="$@"
|
||||||
$2 ~ /^SYSCTL_VERS/ ||
|
$2 ~ /^SYSCTL_VERS/ ||
|
||||||
$2 !~ "MNT_BITS" &&
|
$2 !~ "MNT_BITS" &&
|
||||||
$2 ~ /^(MS|MNT|UMOUNT)_/ ||
|
$2 ~ /^(MS|MNT|UMOUNT)_/ ||
|
||||||
|
$2 ~ /^NS_GET_/ ||
|
||||||
$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
|
$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
|
||||||
$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ ||
|
$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ ||
|
||||||
$2 ~ /^KEXEC_/ ||
|
$2 ~ /^KEXEC_/ ||
|
||||||
|
@ -503,6 +524,8 @@ ccflags="$@"
|
||||||
$2 ~ /^XDP_/ ||
|
$2 ~ /^XDP_/ ||
|
||||||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||||
$2 ~ /^CRYPTO_/ ||
|
$2 ~ /^CRYPTO_/ ||
|
||||||
|
$2 ~ /^TIPC_/ ||
|
||||||
|
$2 ~ /^DEVLINK_/ ||
|
||||||
$2 !~ "WMESGLEN" &&
|
$2 !~ "WMESGLEN" &&
|
||||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||||
$2 ~/^PPPIOC/ ||
|
$2 ~/^PPPIOC/ ||
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// Round the length of a raw sockaddr up to align it properly.
|
||||||
|
func cmsgAlignOf(salen int) int {
|
||||||
|
salign := SizeofPtr
|
||||||
|
if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) {
|
||||||
|
// 64-bit Dragonfly before the September 2019 ABI changes still requires
|
||||||
|
// 32-bit aligned access to network subsystem.
|
||||||
|
salign = 4
|
||||||
|
}
|
||||||
|
return (salen + salign - 1) & ^(salign - 1)
|
||||||
|
}
|
|
@ -17,7 +17,7 @@ func UnixCredentials(ucred *Ucred) []byte {
|
||||||
h.Level = SOL_SOCKET
|
h.Level = SOL_SOCKET
|
||||||
h.Type = SCM_CREDENTIALS
|
h.Type = SCM_CREDENTIALS
|
||||||
h.SetLen(CmsgLen(SizeofUcred))
|
h.SetLen(CmsgLen(SizeofUcred))
|
||||||
*((*Ucred)(cmsgData(h))) = *ucred
|
*(*Ucred)(h.data(0)) = *ucred
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,35 +9,9 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Round the length of a raw sockaddr up to align it properly.
|
|
||||||
func cmsgAlignOf(salen int) int {
|
|
||||||
salign := SizeofPtr
|
|
||||||
|
|
||||||
switch runtime.GOOS {
|
|
||||||
case "aix":
|
|
||||||
// There is no alignment on AIX.
|
|
||||||
salign = 1
|
|
||||||
case "darwin", "dragonfly", "solaris", "illumos":
|
|
||||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD,
|
|
||||||
// illumos, and Solaris kernels still require 32-bit
|
|
||||||
// aligned access to network subsystem.
|
|
||||||
if SizeofPtr == 8 {
|
|
||||||
salign = 4
|
|
||||||
}
|
|
||||||
case "netbsd", "openbsd":
|
|
||||||
// NetBSD and OpenBSD armv7 require 64-bit alignment.
|
|
||||||
if runtime.GOARCH == "arm" {
|
|
||||||
salign = 8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (salen + salign - 1) & ^(salign - 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
// CmsgLen returns the value to store in the Len field of the Cmsghdr
|
// CmsgLen returns the value to store in the Len field of the Cmsghdr
|
||||||
// structure, taking into account any necessary alignment.
|
// structure, taking into account any necessary alignment.
|
||||||
func CmsgLen(datalen int) int {
|
func CmsgLen(datalen int) int {
|
||||||
|
@ -50,8 +24,8 @@ func CmsgSpace(datalen int) int {
|
||||||
return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
|
return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
|
||||||
}
|
}
|
||||||
|
|
||||||
func cmsgData(h *Cmsghdr) unsafe.Pointer {
|
func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer {
|
||||||
return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)))
|
return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)) + offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SocketControlMessage represents a socket control message.
|
// SocketControlMessage represents a socket control message.
|
||||||
|
@ -94,10 +68,8 @@ func UnixRights(fds ...int) []byte {
|
||||||
h.Level = SOL_SOCKET
|
h.Level = SOL_SOCKET
|
||||||
h.Type = SCM_RIGHTS
|
h.Type = SCM_RIGHTS
|
||||||
h.SetLen(CmsgLen(datalen))
|
h.SetLen(CmsgLen(datalen))
|
||||||
data := cmsgData(h)
|
for i, fd := range fds {
|
||||||
for _, fd := range fds {
|
*(*int32)(h.data(4 * uintptr(i))) = int32(fd)
|
||||||
*(*int32)(data) = int32(fd)
|
|
||||||
data = unsafe.Pointer(uintptr(data) + 4)
|
|
||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build aix darwin freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"runtime"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Round the length of a raw sockaddr up to align it properly.
|
||||||
|
func cmsgAlignOf(salen int) int {
|
||||||
|
salign := SizeofPtr
|
||||||
|
|
||||||
|
// dragonfly needs to check ABI version at runtime, see cmsgAlignOf in
|
||||||
|
// sockcmsg_dragonfly.go
|
||||||
|
switch runtime.GOOS {
|
||||||
|
case "aix":
|
||||||
|
// There is no alignment on AIX.
|
||||||
|
salign = 1
|
||||||
|
case "darwin", "illumos", "solaris":
|
||||||
|
// NOTE: It seems like 64-bit Darwin, Illumos and Solaris
|
||||||
|
// kernels still require 32-bit aligned access to network
|
||||||
|
// subsystem.
|
||||||
|
if SizeofPtr == 8 {
|
||||||
|
salign = 4
|
||||||
|
}
|
||||||
|
case "netbsd", "openbsd":
|
||||||
|
// NetBSD and OpenBSD armv7 require 64-bit alignment.
|
||||||
|
if runtime.GOARCH == "arm" {
|
||||||
|
salign = 8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return (salen + salign - 1) & ^(salign - 1)
|
||||||
|
}
|
|
@ -280,6 +280,22 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
return -1, ENOSYS
|
return -1, ENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
|
}
|
||||||
|
|
||||||
//sys getdirent(fd int, buf []byte) (n int, err error)
|
//sys getdirent(fd int, buf []byte) (n int, err error)
|
||||||
func Getdents(fd int, buf []byte) (n int, err error) {
|
func Getdents(fd int, buf []byte) (n int, err error) {
|
||||||
return getdirent(fd, buf)
|
return getdirent(fd, buf)
|
||||||
|
@ -334,49 +350,12 @@ func (w WaitStatus) Signal() Signal {
|
||||||
|
|
||||||
func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
|
func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 }
|
||||||
|
|
||||||
func (w WaitStatus) CoreDump() bool { return w&0x200 != 0 }
|
func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 }
|
||||||
|
|
||||||
func (w WaitStatus) TrapCause() int { return -1 }
|
func (w WaitStatus) TrapCause() int { return -1 }
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
|
||||||
// functions for specific types are permissible.
|
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
|
||||||
// on fd, using the specified request number.
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
||||||
// from fd, using the specified request number.
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
|
// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
|
||||||
// There is no way to create a custom fcntl and to keep //sys fcntl easily,
|
// There is no way to create a custom fcntl and to keep //sys fcntl easily,
|
||||||
// Therefore, the programmer must call dup2 instead of fcntl in this case.
|
// Therefore, the programmer must call dup2 instead of fcntl in this case.
|
||||||
|
|
|
@ -29,6 +29,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,7 +237,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||||
sa.Name = string(bytes)
|
sa.Name = string(bytes)
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
|
@ -413,8 +413,6 @@ func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err e
|
||||||
return kevent(kq, change, len(changes), event, len(events), timeout)
|
return kevent(kq, change, len(changes), event, len(events), timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
|
||||||
|
|
||||||
// sysctlmib translates name to mib number and appends any additional args.
|
// sysctlmib translates name to mib number and appends any additional args.
|
||||||
func sysctlmib(name string, args ...int) ([]_C_int, error) {
|
func sysctlmib(name string, args ...int) ([]_C_int, error) {
|
||||||
// Translate name to mib number.
|
// Translate name to mib number.
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin,go1.12,!go1.13
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
// To implement this using libSystem we'd need syscall_syscallPtr for
|
||||||
|
// fdopendir. However, syscallPtr was only added in Go 1.13, so we fall
|
||||||
|
// back to raw syscalls for this func on Go 1.12.
|
||||||
|
var p unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
p = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
p = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
return n, errnoErr(e1)
|
||||||
|
}
|
||||||
|
return n, nil
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin,go1.13
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
//sys closedir(dir uintptr) (err error)
|
||||||
|
//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
|
||||||
|
|
||||||
|
func fdopendir(fd int) (dir uintptr, err error) {
|
||||||
|
r0, _, e1 := syscall_syscallPtr(funcPC(libc_fdopendir_trampoline), uintptr(fd), 0, 0)
|
||||||
|
dir = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func libc_fdopendir_trampoline()
|
||||||
|
|
||||||
|
//go:linkname libc_fdopendir libc_fdopendir
|
||||||
|
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
||||||
|
// We store the number of entries to skip in the seek
|
||||||
|
// offset of fd. See issue #31368.
|
||||||
|
// It's not the full required semantics, but should handle the case
|
||||||
|
// of calling Getdirentries or ReadDirent repeatedly.
|
||||||
|
// It won't handle assigning the results of lseek to *basep, or handle
|
||||||
|
// the directory being edited underfoot.
|
||||||
|
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// We need to duplicate the incoming file descriptor
|
||||||
|
// because the caller expects to retain control of it, but
|
||||||
|
// fdopendir expects to take control of its argument.
|
||||||
|
// Just Dup'ing the file descriptor is not enough, as the
|
||||||
|
// result shares underlying state. Use Openat to make a really
|
||||||
|
// new file descriptor referring to the same directory.
|
||||||
|
fd2, err := Openat(fd, ".", O_RDONLY, 0)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
d, err := fdopendir(fd2)
|
||||||
|
if err != nil {
|
||||||
|
Close(fd2)
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
defer closedir(d)
|
||||||
|
|
||||||
|
var cnt int64
|
||||||
|
for {
|
||||||
|
var entry Dirent
|
||||||
|
var entryp *Dirent
|
||||||
|
e := readdir_r(d, &entry, &entryp)
|
||||||
|
if e != 0 {
|
||||||
|
return n, errnoErr(e)
|
||||||
|
}
|
||||||
|
if entryp == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if skip > 0 {
|
||||||
|
skip--
|
||||||
|
cnt++
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
reclen := int(entry.Reclen)
|
||||||
|
if reclen > len(buf) {
|
||||||
|
// Not enough room. Return for now.
|
||||||
|
// The counter will let us know where we should start up again.
|
||||||
|
// Note: this strategy for suspending in the middle and
|
||||||
|
// restarting is O(n^2) in the length of the directory. Oh well.
|
||||||
|
break
|
||||||
|
}
|
||||||
|
// Copy entry into return buffer.
|
||||||
|
s := struct {
|
||||||
|
ptr unsafe.Pointer
|
||||||
|
siz int
|
||||||
|
cap int
|
||||||
|
}{ptr: unsafe.Pointer(&entry), siz: reclen, cap: reclen}
|
||||||
|
copy(buf, *(*[]byte)(unsafe.Pointer(&s)))
|
||||||
|
buf = buf[reclen:]
|
||||||
|
n += reclen
|
||||||
|
cnt++
|
||||||
|
}
|
||||||
|
// Set the seek offset of the input fd to record
|
||||||
|
// how many files we've already returned.
|
||||||
|
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
||||||
|
if err != nil {
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return n, nil
|
||||||
|
}
|
|
@ -77,7 +77,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
|
func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
|
||||||
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
|
func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
|
||||||
|
|
||||||
|
@ -328,42 +339,7 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL
|
||||||
// functions for specific types are permissible.
|
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
|
||||||
// on fd, using the specified request number.
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
||||||
// from fd, using the specified request number.
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func Uname(uname *Utsname) error {
|
func Uname(uname *Utsname) error {
|
||||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||||
|
@ -486,7 +462,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sys Setegid(egid int) (err error)
|
//sys Setegid(egid int) (err error)
|
||||||
//sysnb Seteuid(euid int) (err error)
|
//sysnb Seteuid(euid int) (err error)
|
||||||
//sysnb Setgid(gid int) (err error)
|
//sysnb Setgid(gid int) (err error)
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin,386,!go1.12
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
@ -10,6 +10,8 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
||||||
}
|
}
|
||||||
|
@ -43,6 +45,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
@ -56,7 +62,6 @@ const SYS___SYSCTL = SYS_SYSCTL
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
||||||
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin,amd64,!go1.12
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
@ -10,6 +10,8 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
return Timespec{Sec: sec, Nsec: nsec}
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
}
|
}
|
||||||
|
@ -43,6 +45,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
@ -56,7 +62,6 @@ const SYS___SYSCTL = SYS_SYSCTL
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||||
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64
|
||||||
//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64
|
|
||||||
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin,386,!go1.12
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
return 0, ENOSYS
|
||||||
|
}
|
|
@ -8,6 +8,10 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
||||||
|
return ENOTSUP
|
||||||
|
}
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
||||||
}
|
}
|
||||||
|
@ -41,6 +45,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
@ -58,7 +66,3 @@ const SYS___SYSCTL = SYS_SYSCTL
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
return 0, ENOSYS
|
|
||||||
}
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build darwin,arm64,!go1.12
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
return 0, ENOSYS
|
||||||
|
}
|
|
@ -10,6 +10,10 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
||||||
|
return ENOTSUP
|
||||||
|
}
|
||||||
|
|
||||||
func setTimespec(sec, nsec int64) Timespec {
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
return Timespec{Sec: sec, Nsec: nsec}
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
}
|
}
|
||||||
|
@ -43,6 +47,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
@ -60,7 +68,3 @@ const SYS___SYSCTL = SYS_SYSCTL
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
return 0, ENOSYS
|
|
||||||
}
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err
|
||||||
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only
|
func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only
|
||||||
func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
func syscall_syscallPtr(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
|
||||||
|
|
||||||
//go:linkname syscall_syscall syscall.syscall
|
//go:linkname syscall_syscall syscall.syscall
|
||||||
//go:linkname syscall_syscall6 syscall.syscall6
|
//go:linkname syscall_syscall6 syscall.syscall6
|
||||||
|
@ -22,6 +23,7 @@ func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, er
|
||||||
//go:linkname syscall_syscall9 syscall.syscall9
|
//go:linkname syscall_syscall9 syscall.syscall9
|
||||||
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
//go:linkname syscall_rawSyscall syscall.rawSyscall
|
||||||
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
//go:linkname syscall_rawSyscall6 syscall.rawSyscall6
|
||||||
|
//go:linkname syscall_syscallPtr syscall.syscallPtr
|
||||||
|
|
||||||
// Find the entry point for f. See comments in runtime/proc.go for the
|
// Find the entry point for f. See comments in runtime/proc.go for the
|
||||||
// function of the same name.
|
// function of the same name.
|
||||||
|
|
|
@ -12,7 +12,25 @@
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "unsafe"
|
import (
|
||||||
|
"sync"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// See version list in https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/param.h
|
||||||
|
var (
|
||||||
|
osreldateOnce sync.Once
|
||||||
|
osreldate uint32
|
||||||
|
)
|
||||||
|
|
||||||
|
// First __DragonFly_version after September 2019 ABI changes
|
||||||
|
// http://lists.dragonflybsd.org/pipermail/users/2019-September/358280.html
|
||||||
|
const _dragonflyABIChangeVersion = 500705
|
||||||
|
|
||||||
|
func supportsABI(ver uint32) bool {
|
||||||
|
osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") })
|
||||||
|
return osreldate >= ver
|
||||||
|
}
|
||||||
|
|
||||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||||
type SockaddrDatalink struct {
|
type SockaddrDatalink struct {
|
||||||
|
@ -57,6 +75,22 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
namlen, ok := direntNamlen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return (16 + namlen + 1 + 7) &^ 7, true
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe() (r int, w int, err error)
|
//sysnb pipe() (r int, w int, err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
|
@ -134,42 +168,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
// functions for specific types are permissible.
|
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
|
||||||
// on fd, using the specified request number.
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
||||||
// from fd, using the specified request number.
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error {
|
func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error {
|
||||||
err := sysctl(mib, old, oldlen, nil, 0)
|
err := sysctl(mib, old, oldlen, nil, 0)
|
||||||
|
@ -309,7 +308,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sysnb Setegid(egid int) (err error)
|
//sysnb Setegid(egid int) (err error)
|
||||||
//sysnb Seteuid(euid int) (err error)
|
//sysnb Seteuid(euid int) (err error)
|
||||||
//sysnb Setgid(gid int) (err error)
|
//sysnb Setgid(gid int) (err error)
|
||||||
|
|
|
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||||
return buf[0 : n/siz], nil
|
return buf[0 : n/siz], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
return Pipe2(p, 0)
|
return Pipe2(p, 0)
|
||||||
}
|
}
|
||||||
|
@ -189,42 +201,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
// functions for specific types are permissible.
|
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
|
||||||
// on fd, using the specified request number.
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
||||||
// from fd, using the specified request number.
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func Uname(uname *Utsname) error {
|
func Uname(uname *Utsname) error {
|
||||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||||
|
@ -485,8 +462,12 @@ func convertFromDirents11(buf []byte, old []byte) int {
|
||||||
dstPos := 0
|
dstPos := 0
|
||||||
srcPos := 0
|
srcPos := 0
|
||||||
for dstPos+fixedSize < len(buf) && srcPos+oldFixedSize < len(old) {
|
for dstPos+fixedSize < len(buf) && srcPos+oldFixedSize < len(old) {
|
||||||
dstDirent := (*Dirent)(unsafe.Pointer(&buf[dstPos]))
|
var dstDirent Dirent
|
||||||
srcDirent := (*dirent_freebsd11)(unsafe.Pointer(&old[srcPos]))
|
var srcDirent dirent_freebsd11
|
||||||
|
|
||||||
|
// If multiple direntries are written, sometimes when we reach the final one,
|
||||||
|
// we may have cap of old less than size of dirent_freebsd11.
|
||||||
|
copy((*[unsafe.Sizeof(srcDirent)]byte)(unsafe.Pointer(&srcDirent))[:], old[srcPos:])
|
||||||
|
|
||||||
reclen := roundup(fixedSize+int(srcDirent.Namlen)+1, 8)
|
reclen := roundup(fixedSize+int(srcDirent.Namlen)+1, 8)
|
||||||
if dstPos+reclen > len(buf) {
|
if dstPos+reclen > len(buf) {
|
||||||
|
@ -502,6 +483,7 @@ func convertFromDirents11(buf []byte, old []byte) int {
|
||||||
dstDirent.Pad1 = 0
|
dstDirent.Pad1 = 0
|
||||||
|
|
||||||
copy(dstDirent.Name[:], srcDirent.Name[:srcDirent.Namlen])
|
copy(dstDirent.Name[:], srcDirent.Name[:srcDirent.Namlen])
|
||||||
|
copy(buf[dstPos:], (*[unsafe.Sizeof(dstDirent)]byte)(unsafe.Pointer(&dstDirent))[:])
|
||||||
padding := buf[dstPos+fixedSize+int(dstDirent.Namlen) : dstPos+reclen]
|
padding := buf[dstPos+fixedSize+int(dstDirent.Namlen) : dstPos+reclen]
|
||||||
for i := range padding {
|
for i := range padding {
|
||||||
padding[i] = 0
|
padding[i] = 0
|
||||||
|
@ -676,7 +658,7 @@ func PtraceSingleStep(pid int) (err error) {
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sysnb Setegid(egid int) (err error)
|
//sysnb Setegid(egid int) (err error)
|
||||||
//sysnb Seteuid(euid int) (err error)
|
//sysnb Seteuid(euid int) (err error)
|
||||||
//sysnb Setgid(gid int) (err error)
|
//sysnb Setgid(gid int) (err error)
|
||||||
|
|
|
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,17 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
// functions for specific types are permissible.
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlRetInt performs an ioctl operation specified by req on a device
|
||||||
|
// associated with opened file descriptor fd, and returns a non-negative
|
||||||
|
// integer that is returned by the ioctl syscall.
|
||||||
|
func IoctlRetInt(fd int, req uint) (int, error) {
|
||||||
|
ret, _, err := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), 0)
|
||||||
|
if err != 0 {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
return int(ret), nil
|
||||||
|
}
|
||||||
|
|
||||||
// IoctlSetPointerInt performs an ioctl operation which sets an
|
// IoctlSetPointerInt performs an ioctl operation which sets an
|
||||||
// integer value on fd, using the specified request number. The ioctl
|
// integer value on fd, using the specified request number. The ioctl
|
||||||
// argument is called with a pointer to the integer value, rather than
|
// argument is called with a pointer to the integer value, rather than
|
||||||
|
@ -80,52 +91,18 @@ func IoctlSetPointerInt(fd int, req uint, value int) error {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
|
||||||
// on fd, using the specified request number.
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetRTCTime(fd int, value *RTCTime) error {
|
func IoctlSetRTCTime(fd int, value *RTCTime) error {
|
||||||
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
|
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
|
||||||
runtime.KeepAlive(value)
|
runtime.KeepAlive(value)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
||||||
// from fd, using the specified request number.
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetUint32(fd int, req uint) (uint32, error) {
|
func IoctlGetUint32(fd int, req uint) (uint32, error) {
|
||||||
var value uint32
|
var value uint32
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
return value, err
|
return value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetRTCTime(fd int) (*RTCTime, error) {
|
func IoctlGetRTCTime(fd int) (*RTCTime, error) {
|
||||||
var value RTCTime
|
var value RTCTime
|
||||||
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value)))
|
||||||
|
@ -798,6 +775,70 @@ func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SockaddrTIPC implements the Sockaddr interface for AF_TIPC type sockets.
|
||||||
|
// For more information on TIPC, see: http://tipc.sourceforge.net/.
|
||||||
|
type SockaddrTIPC struct {
|
||||||
|
// Scope is the publication scopes when binding service/service range.
|
||||||
|
// Should be set to TIPC_CLUSTER_SCOPE or TIPC_NODE_SCOPE.
|
||||||
|
Scope int
|
||||||
|
|
||||||
|
// Addr is the type of address used to manipulate a socket. Addr must be
|
||||||
|
// one of:
|
||||||
|
// - *TIPCSocketAddr: "id" variant in the C addr union
|
||||||
|
// - *TIPCServiceRange: "nameseq" variant in the C addr union
|
||||||
|
// - *TIPCServiceName: "name" variant in the C addr union
|
||||||
|
//
|
||||||
|
// If nil, EINVAL will be returned when the structure is used.
|
||||||
|
Addr TIPCAddr
|
||||||
|
|
||||||
|
raw RawSockaddrTIPC
|
||||||
|
}
|
||||||
|
|
||||||
|
// TIPCAddr is implemented by types that can be used as an address for
|
||||||
|
// SockaddrTIPC. It is only implemented by *TIPCSocketAddr, *TIPCServiceRange,
|
||||||
|
// and *TIPCServiceName.
|
||||||
|
type TIPCAddr interface {
|
||||||
|
tipcAddrtype() uint8
|
||||||
|
tipcAddr() [12]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *TIPCSocketAddr) tipcAddr() [12]byte {
|
||||||
|
var out [12]byte
|
||||||
|
copy(out[:], (*(*[unsafe.Sizeof(TIPCSocketAddr{})]byte)(unsafe.Pointer(sa)))[:])
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *TIPCSocketAddr) tipcAddrtype() uint8 { return TIPC_SOCKET_ADDR }
|
||||||
|
|
||||||
|
func (sa *TIPCServiceRange) tipcAddr() [12]byte {
|
||||||
|
var out [12]byte
|
||||||
|
copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceRange{})]byte)(unsafe.Pointer(sa)))[:])
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *TIPCServiceRange) tipcAddrtype() uint8 { return TIPC_SERVICE_RANGE }
|
||||||
|
|
||||||
|
func (sa *TIPCServiceName) tipcAddr() [12]byte {
|
||||||
|
var out [12]byte
|
||||||
|
copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceName{})]byte)(unsafe.Pointer(sa)))[:])
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *TIPCServiceName) tipcAddrtype() uint8 { return TIPC_SERVICE_ADDR }
|
||||||
|
|
||||||
|
func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
if sa.Addr == nil {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
sa.raw.Family = AF_TIPC
|
||||||
|
sa.raw.Scope = int8(sa.Scope)
|
||||||
|
sa.raw.Addrtype = sa.Addr.tipcAddrtype()
|
||||||
|
sa.raw.Addr = sa.Addr.tipcAddr()
|
||||||
|
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil
|
||||||
|
}
|
||||||
|
|
||||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
switch rsa.Addr.Family {
|
switch rsa.Addr.Family {
|
||||||
case AF_NETLINK:
|
case AF_NETLINK:
|
||||||
|
@ -843,7 +884,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
for n < len(pp.Path) && pp.Path[n] != 0 {
|
for n < len(pp.Path) && pp.Path[n] != 0 {
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||||
sa.Name = string(bytes)
|
sa.Name = string(bytes)
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
|
@ -923,6 +964,27 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return sa, nil
|
||||||
|
case AF_TIPC:
|
||||||
|
pp := (*RawSockaddrTIPC)(unsafe.Pointer(rsa))
|
||||||
|
|
||||||
|
sa := &SockaddrTIPC{
|
||||||
|
Scope: int(pp.Scope),
|
||||||
|
}
|
||||||
|
|
||||||
|
// Determine which union variant is present in pp.Addr by checking
|
||||||
|
// pp.Addrtype.
|
||||||
|
switch pp.Addrtype {
|
||||||
|
case TIPC_SERVICE_RANGE:
|
||||||
|
sa.Addr = (*TIPCServiceRange)(unsafe.Pointer(&pp.Addr))
|
||||||
|
case TIPC_SERVICE_ADDR:
|
||||||
|
sa.Addr = (*TIPCServiceName)(unsafe.Pointer(&pp.Addr))
|
||||||
|
case TIPC_SOCKET_ADDR:
|
||||||
|
sa.Addr = (*TIPCSocketAddr)(unsafe.Pointer(&pp.Addr))
|
||||||
|
default:
|
||||||
|
return nil, EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
return sa, nil
|
return sa, nil
|
||||||
}
|
}
|
||||||
return nil, EAFNOSUPPORT
|
return nil, EAFNOSUPPORT
|
||||||
|
@ -1160,6 +1222,34 @@ func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error
|
||||||
return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer)
|
return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This
|
||||||
|
// command limits the set of keys that can be linked to the keyring, regardless
|
||||||
|
// of keyring permissions. The command requires the "setattr" permission.
|
||||||
|
//
|
||||||
|
// When called with an empty keyType the command locks the keyring, preventing
|
||||||
|
// any further keys from being linked to the keyring.
|
||||||
|
//
|
||||||
|
// The "asymmetric" keyType defines restrictions requiring key payloads to be
|
||||||
|
// DER encoded X.509 certificates signed by keys in another keyring. Restrictions
|
||||||
|
// for "asymmetric" include "builtin_trusted", "builtin_and_secondary_trusted",
|
||||||
|
// "key_or_keyring:<key>", and "key_or_keyring:<key>:chain".
|
||||||
|
//
|
||||||
|
// As of Linux 4.12, only the "asymmetric" keyType defines type-specific
|
||||||
|
// restrictions.
|
||||||
|
//
|
||||||
|
// See the full documentation at:
|
||||||
|
// http://man7.org/linux/man-pages/man3/keyctl_restrict_keyring.3.html
|
||||||
|
// http://man7.org/linux/man-pages/man2/keyctl.2.html
|
||||||
|
func KeyctlRestrictKeyring(ringid int, keyType string, restriction string) error {
|
||||||
|
if keyType == "" {
|
||||||
|
return keyctlRestrictKeyring(KEYCTL_RESTRICT_KEYRING, ringid)
|
||||||
|
}
|
||||||
|
return keyctlRestrictKeyringByType(KEYCTL_RESTRICT_KEYRING, ringid, keyType, restriction)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) = SYS_KEYCTL
|
||||||
|
//sys keyctlRestrictKeyring(cmd int, arg2 int) (err error) = SYS_KEYCTL
|
||||||
|
|
||||||
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
var msg Msghdr
|
var msg Msghdr
|
||||||
var rsa RawSockaddrAny
|
var rsa RawSockaddrAny
|
||||||
|
@ -1403,8 +1493,12 @@ func PtraceSyscall(pid int, signal int) (err error) {
|
||||||
|
|
||||||
func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) }
|
func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) }
|
||||||
|
|
||||||
|
func PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, pid, 0, 0) }
|
||||||
|
|
||||||
func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) }
|
func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) }
|
||||||
|
|
||||||
|
func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) }
|
||||||
|
|
||||||
func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) }
|
func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) }
|
||||||
|
|
||||||
//sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error)
|
//sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error)
|
||||||
|
@ -1413,6 +1507,22 @@ func Reboot(cmd int) (err error) {
|
||||||
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
|
}
|
||||||
|
|
||||||
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error)
|
||||||
|
|
||||||
func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
|
func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
|
||||||
|
@ -1745,6 +1855,17 @@ func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err erro
|
||||||
return openByHandleAt(mountFD, handle.fileHandle, flags)
|
return openByHandleAt(mountFD, handle.fileHandle, flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Klogset wraps the sys_syslog system call; it sets console_loglevel to
|
||||||
|
// the value specified by arg and passes a dummy pointer to bufp.
|
||||||
|
func Klogset(typ int, arg int) (err error) {
|
||||||
|
var p unsafe.Pointer
|
||||||
|
_, _, errno := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(p), uintptr(arg))
|
||||||
|
if errno != 0 {
|
||||||
|
return errnoErr(errno)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -372,6 +372,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,6 +163,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint64(length)
|
msghdr.Controllen = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint64(length)
|
cmsg.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -252,6 +252,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,6 +180,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint64(length)
|
msghdr.Controllen = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint64(length)
|
cmsg.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,6 +208,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint64(length)
|
msghdr.Controllen = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint64(length)
|
cmsg.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,6 +220,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,6 +91,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint64(length)
|
msghdr.Controllen = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint64(length)
|
cmsg.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,6 +179,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint64(length)
|
msghdr.Controllen = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint64(length)
|
cmsg.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint64(length)
|
msghdr.Controllen = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint64(length)
|
cmsg.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint64(length)
|
msghdr.Controllen = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint64(length)
|
cmsg.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,6 +94,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||||
return mib, nil
|
return mib, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
mib, err := sysctlmib(name)
|
mib, err := sysctlmib(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -175,42 +187,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
// functions for specific types are permissible.
|
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
|
||||||
// on fd, using the specified request number.
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
||||||
// from fd, using the specified request number.
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
||||||
var value Ptmget
|
var value Ptmget
|
||||||
|
@ -353,7 +330,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sysnb Setegid(egid int) (err error)
|
//sysnb Setegid(egid int) (err error)
|
||||||
//sysnb Seteuid(euid int) (err error)
|
//sysnb Seteuid(euid int) (err error)
|
||||||
//sysnb Setgid(gid int) (err error)
|
//sysnb Setgid(gid int) (err error)
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,18 @@ func nametomib(name string) (mib []_C_int, err error) {
|
||||||
return nil, EINVAL
|
return nil, EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
|
}
|
||||||
|
|
||||||
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
func SysctlClockinfo(name string) (*Clockinfo, error) {
|
||||||
mib, err := sysctlmib(name)
|
mib, err := sysctlmib(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -166,42 +178,7 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL
|
||||||
// functions for specific types are permissible.
|
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
|
||||||
// on fd, using the specified request number.
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// IoctlGetInt performs an ioctl operation which gets an integer value
|
|
||||||
// from fd, using the specified request number.
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)
|
||||||
|
|
||||||
|
@ -328,7 +305,7 @@ func Uname(uname *Utsname) error {
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sysnb Setegid(egid int) (err error)
|
//sysnb Setegid(egid int) (err error)
|
||||||
//sysnb Seteuid(euid int) (err error)
|
//sysnb Seteuid(euid int) (err error)
|
||||||
//sysnb Setgid(gid int) (err error)
|
//sysnb Setgid(gid int) (err error)
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,10 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
msghdr.Controllen = uint32(length)
|
msghdr.Controllen = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,22 @@ type SockaddrDatalink struct {
|
||||||
raw RawSockaddrDatalink
|
raw RawSockaddrDatalink
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
|
}
|
||||||
|
|
||||||
//sysnb pipe(p *[2]_C_int) (n int, err error)
|
//sysnb pipe(p *[2]_C_int) (n int, err error)
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
|
@ -375,7 +391,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
for n < len(pp.Path) && pp.Path[n] != 0 {
|
for n < len(pp.Path) && pp.Path[n] != 0 {
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
|
||||||
sa.Name = string(bytes)
|
sa.Name = string(bytes)
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
|
@ -537,40 +553,10 @@ func Minor(dev uint64) uint32 {
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
func IoctlSetInt(fd int, req uint, value int) (err error) {
|
|
||||||
return ioctl(fd, req, uintptr(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func ioctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetTermio(fd int, req uint, value *Termio) (err error) {
|
func IoctlSetTermio(fd int, req uint, value *Termio) (err error) {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlGetInt(fd int, req uint) (int, error) {
|
|
||||||
var value int
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
|
||||||
var value Winsize
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|
||||||
var value Termios
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
|
||||||
return &value, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlGetTermio(fd int, req uint) (*Termio, error) {
|
func IoctlGetTermio(fd int, req uint) (*Termio, error) {
|
||||||
var value Termio
|
var value Termio
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
@ -663,7 +649,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = lseek
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = lseek
|
||||||
//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||||
//sysnb Setegid(egid int) (err error)
|
//sysnb Setegid(egid int) (err error)
|
||||||
//sysnb Seteuid(euid int) (err error)
|
//sysnb Seteuid(euid int) (err error)
|
||||||
//sysnb Setgid(gid int) (err error)
|
//sysnb Setgid(gid int) (err error)
|
||||||
|
|
|
@ -18,6 +18,10 @@ func (iov *Iovec) SetLen(length int) {
|
||||||
iov.Len = uint64(length)
|
iov.Len = uint64(length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = int32(length)
|
||||||
|
}
|
||||||
|
|
||||||
func (cmsg *Cmsghdr) SetLen(length int) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
cmsg.Len = uint32(length)
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build 386,darwin
|
// +build 386,darwin
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m32 _const.go
|
// cgo -godefs -- -m32 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -980,6 +980,7 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NFDBITS = 0x20
|
||||||
NL0 = 0x0
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NL2 = 0x200
|
NL2 = 0x200
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build amd64,darwin
|
// +build amd64,darwin
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -980,6 +980,7 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NFDBITS = 0x20
|
||||||
NL0 = 0x0
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NL2 = 0x200
|
NL2 = 0x200
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build arm,darwin
|
// +build arm,darwin
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- _const.go
|
// cgo -godefs -- _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -980,6 +980,7 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NFDBITS = 0x20
|
||||||
NL0 = 0x0
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NL2 = 0x200
|
NL2 = 0x200
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build arm64,darwin
|
// +build arm64,darwin
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -980,6 +980,7 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NFDBITS = 0x20
|
||||||
NL0 = 0x0
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NL2 = 0x200
|
NL2 = 0x200
|
||||||
|
|
|
@ -938,6 +938,7 @@ const (
|
||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_MAXID = 0x4
|
NET_RT_MAXID = 0x4
|
||||||
|
NFDBITS = 0x40
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build 386,freebsd
|
// +build 386,freebsd
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m32 _const.go
|
// cgo -godefs -- -m32 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -1055,6 +1055,7 @@ const (
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build amd64,freebsd
|
// +build amd64,freebsd
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -1056,6 +1056,7 @@ const (
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
|
NFDBITS = 0x40
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build arm,freebsd
|
// +build arm,freebsd
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- _const.go
|
// cgo -godefs -- _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -1063,6 +1063,7 @@ const (
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build arm64,freebsd
|
// +build arm64,freebsd
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -1056,6 +1056,7 @@ const (
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
|
NFDBITS = 0x40
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -708,6 +732,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -973,6 +998,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1071,6 +1097,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1083,6 +1120,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1135,6 +1174,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1314,6 +1367,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x20
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1378,6 +1432,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0xb703
|
||||||
|
NS_GET_OWNER_UID = 0xb704
|
||||||
|
NS_GET_PARENT = 0xb702
|
||||||
|
NS_GET_USERNS = 0xb701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1643,6 +1701,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1658,6 +1718,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_GET_THREAD_AREA = 0x19
|
PTRACE_GET_THREAD_AREA = 0x19
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
|
@ -1696,6 +1757,10 @@ const (
|
||||||
PTRACE_SINGLEBLOCK = 0x21
|
PTRACE_SINGLEBLOCK = 0x21
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_SYSEMU = 0x1f
|
PTRACE_SYSEMU = 0x1f
|
||||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
|
@ -1756,7 +1821,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1829,6 +1894,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1853,6 +1919,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1860,7 +1927,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1872,6 +1939,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1880,8 +1948,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1966,6 +2034,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1997,6 +2067,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2100,6 +2174,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2204,6 +2279,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2399,6 +2475,71 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2412,7 +2553,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2423,6 +2564,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x400854d5
|
TUNATTACHFILTER = 0x400854d5
|
||||||
TUNDETACHFILTER = 0x400854d6
|
TUNDETACHFILTER = 0x400854d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x800854db
|
TUNGETFILTER = 0x800854db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
|
@ -2610,6 +2752,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2626,6 +2770,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -708,6 +732,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -973,6 +998,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1071,6 +1097,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1083,6 +1120,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1135,6 +1174,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1314,6 +1367,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1378,6 +1432,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0xb703
|
||||||
|
NS_GET_OWNER_UID = 0xb704
|
||||||
|
NS_GET_PARENT = 0xb702
|
||||||
|
NS_GET_USERNS = 0xb701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1644,6 +1702,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1659,6 +1719,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_GET_THREAD_AREA = 0x19
|
PTRACE_GET_THREAD_AREA = 0x19
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
|
@ -1697,6 +1758,10 @@ const (
|
||||||
PTRACE_SINGLEBLOCK = 0x21
|
PTRACE_SINGLEBLOCK = 0x21
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_SYSEMU = 0x1f
|
PTRACE_SYSEMU = 0x1f
|
||||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
|
@ -1757,7 +1822,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1830,6 +1895,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1854,6 +1920,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1861,7 +1928,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1873,6 +1940,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1881,8 +1949,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1967,6 +2035,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1998,6 +2068,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2101,6 +2175,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2205,6 +2280,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2400,6 +2476,71 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2413,7 +2554,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2424,6 +2565,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
|
@ -2610,6 +2752,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2626,6 +2770,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1312,6 +1365,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x20
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1376,6 +1430,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0xb703
|
||||||
|
NS_GET_OWNER_UID = 0xb704
|
||||||
|
NS_GET_PARENT = 0xb702
|
||||||
|
NS_GET_USERNS = 0xb701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1641,6 +1699,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1662,6 +1722,7 @@ const (
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
PTRACE_GETVFPREGS = 0x1b
|
PTRACE_GETVFPREGS = 0x1b
|
||||||
PTRACE_GETWMMXREGS = 0x12
|
PTRACE_GETWMMXREGS = 0x12
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_GET_THREAD_AREA = 0x16
|
PTRACE_GET_THREAD_AREA = 0x16
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
|
@ -1702,6 +1763,10 @@ const (
|
||||||
PTRACE_SET_SYSCALL = 0x17
|
PTRACE_SET_SYSCALL = 0x17
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
PT_DATA_ADDR = 0x10004
|
PT_DATA_ADDR = 0x10004
|
||||||
PT_TEXT_ADDR = 0x10000
|
PT_TEXT_ADDR = 0x10000
|
||||||
|
@ -1763,7 +1828,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1836,6 +1901,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1860,6 +1926,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1867,7 +1934,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1879,6 +1946,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1887,8 +1955,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1973,6 +2041,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -2004,6 +2074,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2107,6 +2181,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2211,6 +2286,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2406,6 +2482,71 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2419,7 +2560,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2430,6 +2571,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x400854d5
|
TUNATTACHFILTER = 0x400854d5
|
||||||
TUNDETACHFILTER = 0x400854d6
|
TUNDETACHFILTER = 0x400854d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x800854db
|
TUNGETFILTER = 0x800854db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
|
@ -2616,6 +2758,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2632,6 +2776,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -528,6 +550,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -547,6 +570,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -710,6 +734,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -975,6 +1000,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1073,6 +1099,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1085,6 +1122,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1137,6 +1176,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1315,6 +1368,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1379,6 +1433,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0xb703
|
||||||
|
NS_GET_OWNER_UID = 0xb704
|
||||||
|
NS_GET_PARENT = 0xb702
|
||||||
|
NS_GET_USERNS = 0xb701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1644,6 +1702,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1657,6 +1717,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
|
@ -1689,6 +1750,12 @@ const (
|
||||||
PTRACE_SETSIGMASK = 0x420b
|
PTRACE_SETSIGMASK = 0x420b
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
|
PTRACE_SYSEMU = 0x1f
|
||||||
|
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
QNX4_SUPER_MAGIC = 0x2f
|
QNX4_SUPER_MAGIC = 0x2f
|
||||||
QNX6_SUPER_MAGIC = 0x68191122
|
QNX6_SUPER_MAGIC = 0x68191122
|
||||||
|
@ -1747,7 +1814,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1820,6 +1887,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1844,6 +1912,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1851,7 +1920,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1863,6 +1932,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1871,8 +1941,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1957,6 +2027,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1988,6 +2060,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2091,6 +2167,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2196,6 +2273,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2391,6 +2469,71 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2404,7 +2547,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2415,6 +2558,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
|
@ -2601,6 +2745,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2617,6 +2763,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1312,6 +1365,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x20
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1376,6 +1430,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1641,6 +1699,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1655,6 +1715,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_GET_THREAD_AREA = 0x19
|
PTRACE_GET_THREAD_AREA = 0x19
|
||||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||||
PTRACE_GET_WATCH_REGS = 0xd0
|
PTRACE_GET_WATCH_REGS = 0xd0
|
||||||
|
@ -1698,6 +1759,10 @@ const (
|
||||||
PTRACE_SET_WATCH_REGS = 0xd1
|
PTRACE_SET_WATCH_REGS = 0xd1
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
QNX4_SUPER_MAGIC = 0x2f
|
QNX4_SUPER_MAGIC = 0x2f
|
||||||
QNX6_SUPER_MAGIC = 0x68191122
|
QNX6_SUPER_MAGIC = 0x68191122
|
||||||
|
@ -1756,7 +1821,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1829,6 +1894,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1853,6 +1919,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1860,7 +1927,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1872,6 +1939,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1880,8 +1948,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1966,6 +2034,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1997,6 +2067,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2100,6 +2174,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2205,6 +2280,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2401,6 +2477,71 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
TOSTOP = 0x8000
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2414,7 +2555,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2425,6 +2566,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x800854d5
|
TUNATTACHFILTER = 0x800854d5
|
||||||
TUNDETACHFILTER = 0x800854d6
|
TUNDETACHFILTER = 0x800854d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x400854db
|
TUNGETFILTER = 0x400854db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
|
@ -2612,6 +2754,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2628,6 +2772,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1312,6 +1365,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1376,6 +1430,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1641,6 +1699,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1655,6 +1715,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_GET_THREAD_AREA = 0x19
|
PTRACE_GET_THREAD_AREA = 0x19
|
||||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||||
PTRACE_GET_WATCH_REGS = 0xd0
|
PTRACE_GET_WATCH_REGS = 0xd0
|
||||||
|
@ -1698,6 +1759,10 @@ const (
|
||||||
PTRACE_SET_WATCH_REGS = 0xd1
|
PTRACE_SET_WATCH_REGS = 0xd1
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
QNX4_SUPER_MAGIC = 0x2f
|
QNX4_SUPER_MAGIC = 0x2f
|
||||||
QNX6_SUPER_MAGIC = 0x68191122
|
QNX6_SUPER_MAGIC = 0x68191122
|
||||||
|
@ -1756,7 +1821,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1829,6 +1894,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1853,6 +1919,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1860,7 +1927,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1872,6 +1939,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1880,8 +1948,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1966,6 +2034,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1997,6 +2067,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2100,6 +2174,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2205,6 +2280,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2401,6 +2477,71 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
TOSTOP = 0x8000
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2414,7 +2555,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2425,6 +2566,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
|
@ -2612,6 +2754,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2628,6 +2772,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1312,6 +1365,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1376,6 +1430,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1641,6 +1699,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1655,6 +1715,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_GET_THREAD_AREA = 0x19
|
PTRACE_GET_THREAD_AREA = 0x19
|
||||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||||
PTRACE_GET_WATCH_REGS = 0xd0
|
PTRACE_GET_WATCH_REGS = 0xd0
|
||||||
|
@ -1698,6 +1759,10 @@ const (
|
||||||
PTRACE_SET_WATCH_REGS = 0xd1
|
PTRACE_SET_WATCH_REGS = 0xd1
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
QNX4_SUPER_MAGIC = 0x2f
|
QNX4_SUPER_MAGIC = 0x2f
|
||||||
QNX6_SUPER_MAGIC = 0x68191122
|
QNX6_SUPER_MAGIC = 0x68191122
|
||||||
|
@ -1756,7 +1821,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1829,6 +1894,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1853,6 +1919,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1860,7 +1927,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1872,6 +1939,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1880,8 +1948,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1966,6 +2034,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1997,6 +2067,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2100,6 +2174,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2205,6 +2280,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2401,6 +2477,71 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
TOSTOP = 0x8000
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2414,7 +2555,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2425,6 +2566,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
|
@ -2612,6 +2754,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2628,6 +2772,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1312,6 +1365,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x20
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1376,6 +1430,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1641,6 +1699,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1655,6 +1715,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_GET_THREAD_AREA = 0x19
|
PTRACE_GET_THREAD_AREA = 0x19
|
||||||
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
PTRACE_GET_THREAD_AREA_3264 = 0xc4
|
||||||
PTRACE_GET_WATCH_REGS = 0xd0
|
PTRACE_GET_WATCH_REGS = 0xd0
|
||||||
|
@ -1698,6 +1759,10 @@ const (
|
||||||
PTRACE_SET_WATCH_REGS = 0xd1
|
PTRACE_SET_WATCH_REGS = 0xd1
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
QNX4_SUPER_MAGIC = 0x2f
|
QNX4_SUPER_MAGIC = 0x2f
|
||||||
QNX6_SUPER_MAGIC = 0x68191122
|
QNX6_SUPER_MAGIC = 0x68191122
|
||||||
|
@ -1756,7 +1821,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1829,6 +1894,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1853,6 +1919,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1860,7 +1927,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1872,6 +1939,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1880,8 +1948,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1966,6 +2034,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1997,6 +2067,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x467f
|
SIOCINQ = 0x467f
|
||||||
SIOCOUTQ = 0x7472
|
SIOCOUTQ = 0x7472
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2100,6 +2174,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2205,6 +2280,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2401,6 +2477,71 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
TOSTOP = 0x8000
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2414,7 +2555,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2425,6 +2566,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x800854d5
|
TUNATTACHFILTER = 0x800854d5
|
||||||
TUNDETACHFILTER = 0x800854d6
|
TUNDETACHFILTER = 0x800854d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x400854db
|
TUNGETFILTER = 0x400854db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
|
@ -2612,6 +2754,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2628,6 +2772,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1311,6 +1364,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1377,6 +1431,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1643,6 +1701,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1662,6 +1722,7 @@ const (
|
||||||
PTRACE_GETVRREGS = 0x12
|
PTRACE_GETVRREGS = 0x12
|
||||||
PTRACE_GETVSRREGS = 0x1b
|
PTRACE_GETVSRREGS = 0x1b
|
||||||
PTRACE_GET_DEBUGREG = 0x19
|
PTRACE_GET_DEBUGREG = 0x19
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
|
@ -1701,6 +1762,10 @@ const (
|
||||||
PTRACE_SINGLEBLOCK = 0x100
|
PTRACE_SINGLEBLOCK = 0x100
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_SYSEMU = 0x1d
|
PTRACE_SYSEMU = 0x1d
|
||||||
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
|
@ -1814,7 +1879,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1887,6 +1952,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1911,6 +1977,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1918,7 +1985,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1930,6 +1997,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1938,8 +2006,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -2024,6 +2092,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -2055,6 +2125,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x4004667f
|
SIOCINQ = 0x4004667f
|
||||||
SIOCOUTQ = 0x40047473
|
SIOCOUTQ = 0x40047473
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2158,6 +2232,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2262,6 +2337,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2461,6 +2537,71 @@ const (
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2474,7 +2615,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2485,6 +2626,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
|
@ -2671,6 +2813,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2687,6 +2831,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1311,6 +1364,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1377,6 +1431,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1643,6 +1701,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1662,6 +1722,7 @@ const (
|
||||||
PTRACE_GETVRREGS = 0x12
|
PTRACE_GETVRREGS = 0x12
|
||||||
PTRACE_GETVSRREGS = 0x1b
|
PTRACE_GETVSRREGS = 0x1b
|
||||||
PTRACE_GET_DEBUGREG = 0x19
|
PTRACE_GET_DEBUGREG = 0x19
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
|
@ -1701,6 +1762,10 @@ const (
|
||||||
PTRACE_SINGLEBLOCK = 0x100
|
PTRACE_SINGLEBLOCK = 0x100
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_SYSEMU = 0x1d
|
PTRACE_SYSEMU = 0x1d
|
||||||
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
|
@ -1814,7 +1879,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1887,6 +1952,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1911,6 +1977,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1918,7 +1985,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1930,6 +1997,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1938,8 +2006,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -2024,6 +2092,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -2055,6 +2125,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x4004667f
|
SIOCINQ = 0x4004667f
|
||||||
SIOCOUTQ = 0x40047473
|
SIOCOUTQ = 0x40047473
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2158,6 +2232,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2262,6 +2337,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2461,6 +2537,71 @@ const (
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2474,7 +2615,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2485,6 +2626,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
|
@ -2671,6 +2813,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2687,6 +2831,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0xc00
|
XTABS = 0xc00
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1312,6 +1365,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1376,6 +1430,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0xb703
|
||||||
|
NS_GET_OWNER_UID = 0xb704
|
||||||
|
NS_GET_PARENT = 0xb702
|
||||||
|
NS_GET_USERNS = 0xb701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1641,6 +1699,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1654,6 +1714,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
|
@ -1686,6 +1747,10 @@ const (
|
||||||
PTRACE_SETSIGMASK = 0x420b
|
PTRACE_SETSIGMASK = 0x420b
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
QNX4_SUPER_MAGIC = 0x2f
|
QNX4_SUPER_MAGIC = 0x2f
|
||||||
QNX6_SUPER_MAGIC = 0x68191122
|
QNX6_SUPER_MAGIC = 0x68191122
|
||||||
|
@ -1744,7 +1809,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1817,6 +1882,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1841,6 +1907,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1848,7 +1915,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1860,6 +1927,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1868,8 +1936,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -1954,6 +2022,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -1985,6 +2055,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2088,6 +2162,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2192,6 +2267,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2387,6 +2463,71 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2400,7 +2541,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2411,6 +2552,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
|
@ -2597,6 +2739,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2613,6 +2757,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -217,6 +219,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -238,16 +245,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -290,11 +301,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -411,6 +425,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -446,7 +461,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -527,6 +549,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -546,6 +569,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -707,6 +731,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x0
|
F_RDLCK = 0x0
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -972,6 +997,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1070,6 +1096,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1082,6 +1119,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1134,6 +1173,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1312,6 +1365,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1376,6 +1430,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0xb703
|
||||||
|
NS_GET_OWNER_UID = 0xb704
|
||||||
|
NS_GET_PARENT = 0xb702
|
||||||
|
NS_GET_USERNS = 0xb701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1643,6 +1701,8 @@ const (
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
PTRACE_DISABLE_TE = 0x5010
|
PTRACE_DISABLE_TE = 0x5010
|
||||||
PTRACE_ENABLE_TE = 0x5009
|
PTRACE_ENABLE_TE = 0x5009
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1657,6 +1717,7 @@ const (
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
PTRACE_GET_LAST_BREAK = 0x5006
|
PTRACE_GET_LAST_BREAK = 0x5006
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
|
@ -1700,6 +1761,10 @@ const (
|
||||||
PTRACE_SINGLEBLOCK = 0xc
|
PTRACE_SINGLEBLOCK = 0xc
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TE_ABORT_RAND = 0x5011
|
PTRACE_TE_ABORT_RAND = 0x5011
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
PT_ACR0 = 0x90
|
PT_ACR0 = 0x90
|
||||||
|
@ -1817,7 +1882,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1890,6 +1955,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1914,6 +1980,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1921,7 +1988,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1933,6 +2000,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1941,8 +2009,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -2027,6 +2095,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -2058,6 +2128,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x80108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x80108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x541b
|
SIOCINQ = 0x541b
|
||||||
SIOCOUTQ = 0x5411
|
SIOCOUTQ = 0x5411
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2161,6 +2235,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
SO_DOMAIN = 0x27
|
SO_DOMAIN = 0x27
|
||||||
SO_DONTROUTE = 0x5
|
SO_DONTROUTE = 0x5
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2265,6 +2340,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2460,6 +2536,71 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2473,7 +2614,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2484,6 +2625,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
TUNGETDEVNETNS = 0x54e3
|
||||||
TUNGETFEATURES = 0x800454cf
|
TUNGETFEATURES = 0x800454cf
|
||||||
TUNGETFILTER = 0x801054db
|
TUNGETFILTER = 0x801054db
|
||||||
TUNGETIFF = 0x800454d2
|
TUNGETIFF = 0x800454d2
|
||||||
|
@ -2670,6 +2812,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2686,6 +2830,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -199,6 +199,8 @@ const (
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
BPF_ADD = 0x0
|
BPF_ADD = 0x0
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
|
||||||
|
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
|
||||||
BPF_ALU = 0x4
|
BPF_ALU = 0x4
|
||||||
BPF_ALU64 = 0x7
|
BPF_ALU64 = 0x7
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
|
@ -220,6 +222,11 @@ const (
|
||||||
BPF_FROM_BE = 0x8
|
BPF_FROM_BE = 0x8
|
||||||
BPF_FROM_LE = 0x0
|
BPF_FROM_LE = 0x0
|
||||||
BPF_FS_MAGIC = 0xcafe4a11
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
|
||||||
|
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
|
||||||
|
BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
|
||||||
BPF_F_ALLOW_MULTI = 0x2
|
BPF_F_ALLOW_MULTI = 0x2
|
||||||
BPF_F_ALLOW_OVERRIDE = 0x1
|
BPF_F_ALLOW_OVERRIDE = 0x1
|
||||||
BPF_F_ANY_ALIGNMENT = 0x2
|
BPF_F_ANY_ALIGNMENT = 0x2
|
||||||
|
@ -241,16 +248,20 @@ const (
|
||||||
BPF_F_PSEUDO_HDR = 0x10
|
BPF_F_PSEUDO_HDR = 0x10
|
||||||
BPF_F_QUERY_EFFECTIVE = 0x1
|
BPF_F_QUERY_EFFECTIVE = 0x1
|
||||||
BPF_F_RDONLY = 0x8
|
BPF_F_RDONLY = 0x8
|
||||||
|
BPF_F_RDONLY_PROG = 0x80
|
||||||
BPF_F_RECOMPUTE_CSUM = 0x1
|
BPF_F_RECOMPUTE_CSUM = 0x1
|
||||||
BPF_F_REUSE_STACKID = 0x400
|
BPF_F_REUSE_STACKID = 0x400
|
||||||
BPF_F_SEQ_NUMBER = 0x8
|
BPF_F_SEQ_NUMBER = 0x8
|
||||||
BPF_F_SKIP_FIELD_MASK = 0xff
|
BPF_F_SKIP_FIELD_MASK = 0xff
|
||||||
BPF_F_STACK_BUILD_ID = 0x20
|
BPF_F_STACK_BUILD_ID = 0x20
|
||||||
BPF_F_STRICT_ALIGNMENT = 0x1
|
BPF_F_STRICT_ALIGNMENT = 0x1
|
||||||
|
BPF_F_SYSCTL_BASE_NAME = 0x1
|
||||||
|
BPF_F_TEST_RND_HI32 = 0x4
|
||||||
BPF_F_TUNINFO_IPV6 = 0x1
|
BPF_F_TUNINFO_IPV6 = 0x1
|
||||||
BPF_F_USER_BUILD_ID = 0x800
|
BPF_F_USER_BUILD_ID = 0x800
|
||||||
BPF_F_USER_STACK = 0x100
|
BPF_F_USER_STACK = 0x100
|
||||||
BPF_F_WRONLY = 0x10
|
BPF_F_WRONLY = 0x10
|
||||||
|
BPF_F_WRONLY_PROG = 0x100
|
||||||
BPF_F_ZERO_CSUM_TX = 0x2
|
BPF_F_ZERO_CSUM_TX = 0x2
|
||||||
BPF_F_ZERO_SEED = 0x40
|
BPF_F_ZERO_SEED = 0x40
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
|
@ -293,11 +304,14 @@ const (
|
||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_PSEUDO_CALL = 0x1
|
BPF_PSEUDO_CALL = 0x1
|
||||||
BPF_PSEUDO_MAP_FD = 0x1
|
BPF_PSEUDO_MAP_FD = 0x1
|
||||||
|
BPF_PSEUDO_MAP_VALUE = 0x2
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7
|
BPF_SK_STORAGE_GET_F_CREATE = 0x1
|
||||||
|
BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
|
||||||
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
|
||||||
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
|
||||||
|
BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
|
||||||
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
|
@ -414,6 +428,7 @@ const (
|
||||||
CLONE_NEWUTS = 0x4000000
|
CLONE_NEWUTS = 0x4000000
|
||||||
CLONE_PARENT = 0x8000
|
CLONE_PARENT = 0x8000
|
||||||
CLONE_PARENT_SETTID = 0x100000
|
CLONE_PARENT_SETTID = 0x100000
|
||||||
|
CLONE_PIDFD = 0x1000
|
||||||
CLONE_PTRACE = 0x2000
|
CLONE_PTRACE = 0x2000
|
||||||
CLONE_SETTLS = 0x80000
|
CLONE_SETTLS = 0x80000
|
||||||
CLONE_SIGHAND = 0x800
|
CLONE_SIGHAND = 0x800
|
||||||
|
@ -449,7 +464,14 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
DAXFS_MAGIC = 0x64646178
|
DAXFS_MAGIC = 0x64646178
|
||||||
DEBUGFS_MAGIC = 0x64626720
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d
|
||||||
|
DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e
|
||||||
|
DEVLINK_GENL_MCGRP_CONFIG_NAME = "config"
|
||||||
|
DEVLINK_GENL_NAME = "devlink"
|
||||||
|
DEVLINK_GENL_VERSION = 0x1
|
||||||
|
DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14
|
||||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
|
DMA_BUF_MAGIC = 0x444d4142
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -531,6 +553,7 @@ const (
|
||||||
ETH_P_DNA_RC = 0x6002
|
ETH_P_DNA_RC = 0x6002
|
||||||
ETH_P_DNA_RT = 0x6003
|
ETH_P_DNA_RT = 0x6003
|
||||||
ETH_P_DSA = 0x1b
|
ETH_P_DSA = 0x1b
|
||||||
|
ETH_P_DSA_8021Q = 0xdadb
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
@ -550,6 +573,7 @@ const (
|
||||||
ETH_P_IRDA = 0x17
|
ETH_P_IRDA = 0x17
|
||||||
ETH_P_LAT = 0x6004
|
ETH_P_LAT = 0x6004
|
||||||
ETH_P_LINK_CTL = 0x886c
|
ETH_P_LINK_CTL = 0x886c
|
||||||
|
ETH_P_LLDP = 0x88cc
|
||||||
ETH_P_LOCALTALK = 0x9
|
ETH_P_LOCALTALK = 0x9
|
||||||
ETH_P_LOOP = 0x60
|
ETH_P_LOOP = 0x60
|
||||||
ETH_P_LOOPBACK = 0x9000
|
ETH_P_LOOPBACK = 0x9000
|
||||||
|
@ -711,6 +735,7 @@ const (
|
||||||
F_OFD_SETLKW = 0x26
|
F_OFD_SETLKW = 0x26
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x1
|
F_RDLCK = 0x1
|
||||||
|
F_SEAL_FUTURE_WRITE = 0x10
|
||||||
F_SEAL_GROW = 0x4
|
F_SEAL_GROW = 0x4
|
||||||
F_SEAL_SEAL = 0x1
|
F_SEAL_SEAL = 0x1
|
||||||
F_SEAL_SHRINK = 0x2
|
F_SEAL_SHRINK = 0x2
|
||||||
|
@ -976,6 +1001,7 @@ const (
|
||||||
IPV6_RECVRTHDR = 0x38
|
IPV6_RECVRTHDR = 0x38
|
||||||
IPV6_RECVTCLASS = 0x42
|
IPV6_RECVTCLASS = 0x42
|
||||||
IPV6_ROUTER_ALERT = 0x16
|
IPV6_ROUTER_ALERT = 0x16
|
||||||
|
IPV6_ROUTER_ALERT_ISOLATE = 0x1e
|
||||||
IPV6_RTHDR = 0x39
|
IPV6_RTHDR = 0x39
|
||||||
IPV6_RTHDRDSTOPTS = 0x37
|
IPV6_RTHDRDSTOPTS = 0x37
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -1074,6 +1100,17 @@ const (
|
||||||
KEXEC_PRESERVE_CONTEXT = 0x2
|
KEXEC_PRESERVE_CONTEXT = 0x2
|
||||||
KEXEC_SEGMENT_MAX = 0x10
|
KEXEC_SEGMENT_MAX = 0x10
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
|
KEYCTL_CAPABILITIES = 0x1f
|
||||||
|
KEYCTL_CAPS0_BIG_KEY = 0x10
|
||||||
|
KEYCTL_CAPS0_CAPABILITIES = 0x1
|
||||||
|
KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
|
||||||
|
KEYCTL_CAPS0_INVALIDATE = 0x20
|
||||||
|
KEYCTL_CAPS0_MOVE = 0x80
|
||||||
|
KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
|
||||||
|
KEYCTL_CAPS0_PUBLIC_KEY = 0x8
|
||||||
|
KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
|
||||||
|
KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
|
||||||
|
KEYCTL_CAPS1_NS_KEY_TAG = 0x2
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
KEYCTL_DESCRIBE = 0x6
|
KEYCTL_DESCRIBE = 0x6
|
||||||
|
@ -1086,6 +1123,8 @@ const (
|
||||||
KEYCTL_INVALIDATE = 0x15
|
KEYCTL_INVALIDATE = 0x15
|
||||||
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
KEYCTL_JOIN_SESSION_KEYRING = 0x1
|
||||||
KEYCTL_LINK = 0x8
|
KEYCTL_LINK = 0x8
|
||||||
|
KEYCTL_MOVE = 0x1e
|
||||||
|
KEYCTL_MOVE_EXCL = 0x1
|
||||||
KEYCTL_NEGATE = 0xd
|
KEYCTL_NEGATE = 0xd
|
||||||
KEYCTL_PKEY_DECRYPT = 0x1a
|
KEYCTL_PKEY_DECRYPT = 0x1a
|
||||||
KEYCTL_PKEY_ENCRYPT = 0x19
|
KEYCTL_PKEY_ENCRYPT = 0x19
|
||||||
|
@ -1138,6 +1177,20 @@ const (
|
||||||
LOCK_NB = 0x4
|
LOCK_NB = 0x4
|
||||||
LOCK_SH = 0x1
|
LOCK_SH = 0x1
|
||||||
LOCK_UN = 0x8
|
LOCK_UN = 0x8
|
||||||
|
LOOP_CLR_FD = 0x4c01
|
||||||
|
LOOP_CTL_ADD = 0x4c80
|
||||||
|
LOOP_CTL_GET_FREE = 0x4c82
|
||||||
|
LOOP_CTL_REMOVE = 0x4c81
|
||||||
|
LOOP_GET_STATUS = 0x4c03
|
||||||
|
LOOP_GET_STATUS64 = 0x4c05
|
||||||
|
LOOP_SET_BLOCK_SIZE = 0x4c09
|
||||||
|
LOOP_SET_CAPACITY = 0x4c07
|
||||||
|
LOOP_SET_DIRECT_IO = 0x4c08
|
||||||
|
LOOP_SET_FD = 0x4c00
|
||||||
|
LOOP_SET_STATUS = 0x4c02
|
||||||
|
LOOP_SET_STATUS64 = 0x4c04
|
||||||
|
LO_KEY_SIZE = 0x20
|
||||||
|
LO_NAME_SIZE = 0x40
|
||||||
MADV_DODUMP = 0x11
|
MADV_DODUMP = 0x11
|
||||||
MADV_DOFORK = 0xb
|
MADV_DOFORK = 0xb
|
||||||
MADV_DONTDUMP = 0x10
|
MADV_DONTDUMP = 0x10
|
||||||
|
@ -1316,6 +1369,7 @@ const (
|
||||||
NETLINK_XFRM = 0x6
|
NETLINK_XFRM = 0x6
|
||||||
NETNSA_MAX = 0x5
|
NETNSA_MAX = 0x5
|
||||||
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
NETNSA_NSID_NOT_ASSIGNED = -0x1
|
||||||
|
NFDBITS = 0x40
|
||||||
NFNETLINK_V0 = 0x0
|
NFNETLINK_V0 = 0x0
|
||||||
NFNLGRP_ACCT_QUOTA = 0x8
|
NFNLGRP_ACCT_QUOTA = 0x8
|
||||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||||
|
@ -1380,6 +1434,10 @@ const (
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
NSFS_MAGIC = 0x6e736673
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
|
@ -1645,6 +1703,8 @@ const (
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
|
||||||
|
PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
|
||||||
PTRACE_EVENT_CLONE = 0x3
|
PTRACE_EVENT_CLONE = 0x3
|
||||||
PTRACE_EVENT_EXEC = 0x4
|
PTRACE_EVENT_EXEC = 0x4
|
||||||
PTRACE_EVENT_EXIT = 0x6
|
PTRACE_EVENT_EXIT = 0x6
|
||||||
|
@ -1662,6 +1722,7 @@ const (
|
||||||
PTRACE_GETREGSET = 0x4204
|
PTRACE_GETREGSET = 0x4204
|
||||||
PTRACE_GETSIGINFO = 0x4202
|
PTRACE_GETSIGINFO = 0x4202
|
||||||
PTRACE_GETSIGMASK = 0x420a
|
PTRACE_GETSIGMASK = 0x420a
|
||||||
|
PTRACE_GET_SYSCALL_INFO = 0x420e
|
||||||
PTRACE_INTERRUPT = 0x4207
|
PTRACE_INTERRUPT = 0x4207
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LISTEN = 0x4208
|
PTRACE_LISTEN = 0x4208
|
||||||
|
@ -1701,6 +1762,10 @@ const (
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SPARC_DETACH = 0xb
|
PTRACE_SPARC_DETACH = 0xb
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
|
PTRACE_SYSCALL_INFO_ENTRY = 0x1
|
||||||
|
PTRACE_SYSCALL_INFO_EXIT = 0x2
|
||||||
|
PTRACE_SYSCALL_INFO_NONE = 0x0
|
||||||
|
PTRACE_SYSCALL_INFO_SECCOMP = 0x3
|
||||||
PTRACE_TRACEME = 0x0
|
PTRACE_TRACEME = 0x0
|
||||||
PTRACE_WRITEDATA = 0x11
|
PTRACE_WRITEDATA = 0x11
|
||||||
PTRACE_WRITETEXT = 0x13
|
PTRACE_WRITETEXT = 0x13
|
||||||
|
@ -1809,7 +1874,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1d
|
RTA_MAX = 0x1e
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1882,6 +1947,7 @@ const (
|
||||||
RTM_DELMDB = 0x55
|
RTM_DELMDB = 0x55
|
||||||
RTM_DELNEIGH = 0x1d
|
RTM_DELNEIGH = 0x1d
|
||||||
RTM_DELNETCONF = 0x51
|
RTM_DELNETCONF = 0x51
|
||||||
|
RTM_DELNEXTHOP = 0x69
|
||||||
RTM_DELNSID = 0x59
|
RTM_DELNSID = 0x59
|
||||||
RTM_DELQDISC = 0x25
|
RTM_DELQDISC = 0x25
|
||||||
RTM_DELROUTE = 0x19
|
RTM_DELROUTE = 0x19
|
||||||
|
@ -1906,6 +1972,7 @@ const (
|
||||||
RTM_GETNEIGH = 0x1e
|
RTM_GETNEIGH = 0x1e
|
||||||
RTM_GETNEIGHTBL = 0x42
|
RTM_GETNEIGHTBL = 0x42
|
||||||
RTM_GETNETCONF = 0x52
|
RTM_GETNETCONF = 0x52
|
||||||
|
RTM_GETNEXTHOP = 0x6a
|
||||||
RTM_GETNSID = 0x5a
|
RTM_GETNSID = 0x5a
|
||||||
RTM_GETQDISC = 0x26
|
RTM_GETQDISC = 0x26
|
||||||
RTM_GETROUTE = 0x1a
|
RTM_GETROUTE = 0x1a
|
||||||
|
@ -1913,7 +1980,7 @@ const (
|
||||||
RTM_GETSTATS = 0x5e
|
RTM_GETSTATS = 0x5e
|
||||||
RTM_GETTCLASS = 0x2a
|
RTM_GETTCLASS = 0x2a
|
||||||
RTM_GETTFILTER = 0x2e
|
RTM_GETTFILTER = 0x2e
|
||||||
RTM_MAX = 0x67
|
RTM_MAX = 0x6b
|
||||||
RTM_NEWACTION = 0x30
|
RTM_NEWACTION = 0x30
|
||||||
RTM_NEWADDR = 0x14
|
RTM_NEWADDR = 0x14
|
||||||
RTM_NEWADDRLABEL = 0x48
|
RTM_NEWADDRLABEL = 0x48
|
||||||
|
@ -1925,6 +1992,7 @@ const (
|
||||||
RTM_NEWNEIGH = 0x1c
|
RTM_NEWNEIGH = 0x1c
|
||||||
RTM_NEWNEIGHTBL = 0x40
|
RTM_NEWNEIGHTBL = 0x40
|
||||||
RTM_NEWNETCONF = 0x50
|
RTM_NEWNETCONF = 0x50
|
||||||
|
RTM_NEWNEXTHOP = 0x68
|
||||||
RTM_NEWNSID = 0x58
|
RTM_NEWNSID = 0x58
|
||||||
RTM_NEWPREFIX = 0x34
|
RTM_NEWPREFIX = 0x34
|
||||||
RTM_NEWQDISC = 0x24
|
RTM_NEWQDISC = 0x24
|
||||||
|
@ -1933,8 +2001,8 @@ const (
|
||||||
RTM_NEWSTATS = 0x5c
|
RTM_NEWSTATS = 0x5c
|
||||||
RTM_NEWTCLASS = 0x28
|
RTM_NEWTCLASS = 0x28
|
||||||
RTM_NEWTFILTER = 0x2c
|
RTM_NEWTFILTER = 0x2c
|
||||||
RTM_NR_FAMILIES = 0x16
|
RTM_NR_FAMILIES = 0x17
|
||||||
RTM_NR_MSGTYPES = 0x58
|
RTM_NR_MSGTYPES = 0x5c
|
||||||
RTM_SETDCB = 0x4f
|
RTM_SETDCB = 0x4f
|
||||||
RTM_SETLINK = 0x13
|
RTM_SETLINK = 0x13
|
||||||
RTM_SETNEIGHTBL = 0x43
|
RTM_SETNEIGHTBL = 0x43
|
||||||
|
@ -2019,6 +2087,8 @@ const (
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
SIOCETHTOOL = 0x8946
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGETLINKNAME = 0x89e0
|
||||||
|
SIOCGETNODEID = 0x89e1
|
||||||
SIOCGHWTSTAMP = 0x89b1
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
|
@ -2050,6 +2120,10 @@ const (
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMPNS_OLD = 0x8907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCGSTAMP_OLD = 0x8906
|
||||||
SIOCINQ = 0x4004667f
|
SIOCINQ = 0x4004667f
|
||||||
SIOCOUTQ = 0x40047473
|
SIOCOUTQ = 0x40047473
|
||||||
SIOCOUTQNSD = 0x894b
|
SIOCOUTQNSD = 0x894b
|
||||||
|
@ -2153,6 +2227,7 @@ const (
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
SO_DETACH_BPF = 0x1b
|
SO_DETACH_BPF = 0x1b
|
||||||
SO_DETACH_FILTER = 0x1b
|
SO_DETACH_FILTER = 0x1b
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x47
|
||||||
SO_DOMAIN = 0x1029
|
SO_DOMAIN = 0x1029
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
|
||||||
|
@ -2257,6 +2332,7 @@ const (
|
||||||
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
SYNC_FILE_RANGE_WAIT_AFTER = 0x4
|
||||||
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
|
||||||
SYNC_FILE_RANGE_WRITE = 0x2
|
SYNC_FILE_RANGE_WRITE = 0x2
|
||||||
|
SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
|
||||||
SYSFS_MAGIC = 0x62656572
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
|
@ -2449,6 +2525,71 @@ const (
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x20005437
|
TIOCVHANGUP = 0x20005437
|
||||||
|
TIPC_ADDR_ID = 0x3
|
||||||
|
TIPC_ADDR_MCAST = 0x1
|
||||||
|
TIPC_ADDR_NAME = 0x2
|
||||||
|
TIPC_ADDR_NAMESEQ = 0x1
|
||||||
|
TIPC_CFG_SRV = 0x0
|
||||||
|
TIPC_CLUSTER_BITS = 0xc
|
||||||
|
TIPC_CLUSTER_MASK = 0xfff000
|
||||||
|
TIPC_CLUSTER_OFFSET = 0xc
|
||||||
|
TIPC_CLUSTER_SIZE = 0xfff
|
||||||
|
TIPC_CONN_SHUTDOWN = 0x5
|
||||||
|
TIPC_CONN_TIMEOUT = 0x82
|
||||||
|
TIPC_CRITICAL_IMPORTANCE = 0x3
|
||||||
|
TIPC_DESTNAME = 0x3
|
||||||
|
TIPC_DEST_DROPPABLE = 0x81
|
||||||
|
TIPC_ERRINFO = 0x1
|
||||||
|
TIPC_ERR_NO_NAME = 0x1
|
||||||
|
TIPC_ERR_NO_NODE = 0x3
|
||||||
|
TIPC_ERR_NO_PORT = 0x2
|
||||||
|
TIPC_ERR_OVERLOAD = 0x4
|
||||||
|
TIPC_GROUP_JOIN = 0x87
|
||||||
|
TIPC_GROUP_LEAVE = 0x88
|
||||||
|
TIPC_GROUP_LOOPBACK = 0x1
|
||||||
|
TIPC_GROUP_MEMBER_EVTS = 0x2
|
||||||
|
TIPC_HIGH_IMPORTANCE = 0x2
|
||||||
|
TIPC_IMPORTANCE = 0x7f
|
||||||
|
TIPC_LINK_STATE = 0x2
|
||||||
|
TIPC_LOW_IMPORTANCE = 0x0
|
||||||
|
TIPC_MAX_BEARER_NAME = 0x20
|
||||||
|
TIPC_MAX_IF_NAME = 0x10
|
||||||
|
TIPC_MAX_LINK_NAME = 0x44
|
||||||
|
TIPC_MAX_MEDIA_NAME = 0x10
|
||||||
|
TIPC_MAX_USER_MSG_SIZE = 0x101d0
|
||||||
|
TIPC_MCAST_BROADCAST = 0x85
|
||||||
|
TIPC_MCAST_REPLICAST = 0x86
|
||||||
|
TIPC_MEDIUM_IMPORTANCE = 0x1
|
||||||
|
TIPC_NODEID_LEN = 0x10
|
||||||
|
TIPC_NODE_BITS = 0xc
|
||||||
|
TIPC_NODE_MASK = 0xfff
|
||||||
|
TIPC_NODE_OFFSET = 0x0
|
||||||
|
TIPC_NODE_RECVQ_DEPTH = 0x83
|
||||||
|
TIPC_NODE_SIZE = 0xfff
|
||||||
|
TIPC_NODE_STATE = 0x0
|
||||||
|
TIPC_OK = 0x0
|
||||||
|
TIPC_PUBLISHED = 0x1
|
||||||
|
TIPC_RESERVED_TYPES = 0x40
|
||||||
|
TIPC_RETDATA = 0x2
|
||||||
|
TIPC_SERVICE_ADDR = 0x2
|
||||||
|
TIPC_SERVICE_RANGE = 0x1
|
||||||
|
TIPC_SOCKET_ADDR = 0x3
|
||||||
|
TIPC_SOCK_RECVQ_DEPTH = 0x84
|
||||||
|
TIPC_SOCK_RECVQ_USED = 0x89
|
||||||
|
TIPC_SRC_DROPPABLE = 0x80
|
||||||
|
TIPC_SUBSCR_TIMEOUT = 0x3
|
||||||
|
TIPC_SUB_CANCEL = 0x4
|
||||||
|
TIPC_SUB_PORTS = 0x1
|
||||||
|
TIPC_SUB_SERVICE = 0x2
|
||||||
|
TIPC_TOP_SRV = 0x1
|
||||||
|
TIPC_WAIT_FOREVER = 0xffffffff
|
||||||
|
TIPC_WITHDRAWN = 0x2
|
||||||
|
TIPC_ZONE_BITS = 0x8
|
||||||
|
TIPC_ZONE_CLUSTER_MASK = 0xfffff000
|
||||||
|
TIPC_ZONE_MASK = 0xff000000
|
||||||
|
TIPC_ZONE_OFFSET = 0x18
|
||||||
|
TIPC_ZONE_SCOPE = 0x1
|
||||||
|
TIPC_ZONE_SIZE = 0xff
|
||||||
TMPFS_MAGIC = 0x1021994
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
TPACKET_ALIGNMENT = 0x10
|
TPACKET_ALIGNMENT = 0x10
|
||||||
|
@ -2462,7 +2603,7 @@ const (
|
||||||
TP_STATUS_LOSING = 0x4
|
TP_STATUS_LOSING = 0x4
|
||||||
TP_STATUS_SENDING = 0x2
|
TP_STATUS_SENDING = 0x2
|
||||||
TP_STATUS_SEND_REQUEST = 0x1
|
TP_STATUS_SEND_REQUEST = 0x1
|
||||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
TP_STATUS_TS_RAW_HARDWARE = 0x80000000
|
||||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||||
TP_STATUS_USER = 0x1
|
TP_STATUS_USER = 0x1
|
||||||
|
@ -2473,6 +2614,7 @@ const (
|
||||||
TS_COMM_LEN = 0x20
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
TUNGETFEATURES = 0x400454cf
|
TUNGETFEATURES = 0x400454cf
|
||||||
TUNGETFILTER = 0x401054db
|
TUNGETFILTER = 0x401054db
|
||||||
TUNGETIFF = 0x400454d2
|
TUNGETIFF = 0x400454d2
|
||||||
|
@ -2659,6 +2801,8 @@ const (
|
||||||
XDP_FLAGS_SKB_MODE = 0x2
|
XDP_FLAGS_SKB_MODE = 0x2
|
||||||
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
|
||||||
XDP_MMAP_OFFSETS = 0x1
|
XDP_MMAP_OFFSETS = 0x1
|
||||||
|
XDP_OPTIONS = 0x8
|
||||||
|
XDP_OPTIONS_ZEROCOPY = 0x1
|
||||||
XDP_PACKET_HEADROOM = 0x100
|
XDP_PACKET_HEADROOM = 0x100
|
||||||
XDP_PGOFF_RX_RING = 0x0
|
XDP_PGOFF_RX_RING = 0x0
|
||||||
XDP_PGOFF_TX_RING = 0x80000000
|
XDP_PGOFF_TX_RING = 0x80000000
|
||||||
|
@ -2675,6 +2819,7 @@ const (
|
||||||
XENFS_SUPER_MAGIC = 0xabba1974
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XFS_SUPER_MAGIC = 0x58465342
|
XFS_SUPER_MAGIC = 0x58465342
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
Z3FOLD_MAGIC = 0x33
|
||||||
ZSMALLOC_MAGIC = 0x58295829
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
__TIOCFLUSH = 0x80047410
|
__TIOCFLUSH = 0x80047410
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build 386,netbsd
|
// +build 386,netbsd
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m32 _const.go
|
// cgo -godefs -- -m32 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -1085,6 +1085,7 @@ const (
|
||||||
NET_RT_MAXID = 0x6
|
NET_RT_MAXID = 0x6
|
||||||
NET_RT_OIFLIST = 0x4
|
NET_RT_OIFLIST = 0x4
|
||||||
NET_RT_OOIFLIST = 0x3
|
NET_RT_OOIFLIST = 0x3
|
||||||
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue