mirror of https://github.com/docker/cli.git
Merge pull request #2511 from thaJeztah/bump_term
vendor: moby/term 73f35e472e8f0a3f91347164138ce6bd73b756a9 (and dependencies)
This commit is contained in:
commit
f327b97d37
|
@ -47,7 +47,7 @@ github.com/miekg/pkcs11 210dc1e16747c5ba98a03bcbcf72
|
||||||
github.com/mitchellh/mapstructure f15292f7a699fcc1a38a80977f80a046874ba8ac
|
github.com/mitchellh/mapstructure f15292f7a699fcc1a38a80977f80a046874ba8ac
|
||||||
github.com/moby/buildkit ae7ff7174f73bcb4df89b97e1623b3fb0bfb0a0c
|
github.com/moby/buildkit ae7ff7174f73bcb4df89b97e1623b3fb0bfb0a0c
|
||||||
github.com/moby/sys 6154f11e6840c0d6b0dbb23f4125a6134b3013c9 # mountinfo/v0.1.3
|
github.com/moby/sys 6154f11e6840c0d6b0dbb23f4125a6134b3013c9 # mountinfo/v0.1.3
|
||||||
github.com/moby/term 063f2cd0b49dbb0752774d1cb649998d91424fea
|
github.com/moby/term 73f35e472e8f0a3f91347164138ce6bd73b756a9
|
||||||
github.com/modern-go/concurrent bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94 # 1.0.3
|
github.com/modern-go/concurrent bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94 # 1.0.3
|
||||||
github.com/modern-go/reflect2 4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd # 1.0.1
|
github.com/modern-go/reflect2 4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd # 1.0.1
|
||||||
github.com/morikuni/aec 39771216ff4c63d11f5e604076f9c45e8be1067b # v1.0.0
|
github.com/morikuni/aec 39771216ff4c63d11f5e604076f9c45e8be1067b # v1.0.0
|
||||||
|
@ -75,7 +75,7 @@ golang.org/x/crypto 2aa609cf4a9d7d1126360de73b55
|
||||||
golang.org/x/net 0de0cce0169b09b364e001f108dc0399ea8630b3
|
golang.org/x/net 0de0cce0169b09b364e001f108dc0399ea8630b3
|
||||||
golang.org/x/oauth2 bf48bf16ab8d622ce64ec6ce98d2c98f916b6303
|
golang.org/x/oauth2 bf48bf16ab8d622ce64ec6ce98d2c98f916b6303
|
||||||
golang.org/x/sync cd5d95a43a6e21273425c7ae415d3df9ea832eeb
|
golang.org/x/sync cd5d95a43a6e21273425c7ae415d3df9ea832eeb
|
||||||
golang.org/x/sys d5e6a3e2c0ae16fc7480523ebcb7fd4dd3215489
|
golang.org/x/sys 85ca7c5b95cdf1e557abb38a283d1e61a5959c31
|
||||||
golang.org/x/text 342b2e1fbaa52c93f31447ad2c6abc048c63e475 # v0.3.2
|
golang.org/x/text 342b2e1fbaa52c93f31447ad2c6abc048c63e475 # v0.3.2
|
||||||
golang.org/x/time 555d28b269f0569763d25dbe1a237ae74c6bcc82
|
golang.org/x/time 555d28b269f0569763d25dbe1a237ae74c6bcc82
|
||||||
google.golang.org/genproto 3f1135a288c9a07e340ae8ba4cc6c7065a3160e8
|
google.golang.org/genproto 3f1135a288c9a07e340ae8ba4cc6c7065a3160e8
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# term - utilities for dealing with terminals
|
# term - utilities for dealing with terminals
|
||||||
|
|
||||||
![](https://github.com/moby/term/workflows/.github/workflows/test.yml/badge.svg) [![GoDoc](https://godoc.org/github.com/moby/term?status.svg)](https://godoc.org/github.com/moby/term) [![Go Report Card](https://goreportcard.com/badge/github.com/moby/term)](https://goreportcard.com/report/github.com/moby/term)
|
![Test](https://github.com/moby/term/workflows/Test/badge.svg) [![GoDoc](https://godoc.org/github.com/moby/term?status.svg)](https://godoc.org/github.com/moby/term) [![Go Report Card](https://goreportcard.com/badge/github.com/moby/term)](https://goreportcard.com/report/github.com/moby/term)
|
||||||
|
|
||||||
term provides structures and helper functions to work with terminal (state, sizes).
|
term provides structures and helper functions to work with terminal (state, sizes).
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,9 @@ go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
|
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78
|
||||||
github.com/google/go-cmp v0.3.1
|
github.com/creack/pty v1.1.9
|
||||||
|
github.com/google/go-cmp v0.4.0
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/sirupsen/logrus v1.4.2
|
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd
|
||||||
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527
|
|
||||||
gotest.tools v2.2.0+incompatible
|
gotest.tools v2.2.0+incompatible
|
||||||
gotest.tools/v3 v3.0.2 // indirect
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// +build !windows
|
// +build !windows,!illumos,!solaris
|
||||||
|
|
||||||
package term
|
package term
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
//+build solaris illumos
|
||||||
|
|
||||||
|
package term
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
func tcget(fd uintptr, p *Termios) syscall.Errno {
|
||||||
|
|
||||||
|
termios, err := unix.IoctlGetTermios(int(fd), getTermios)
|
||||||
|
if err != nil {
|
||||||
|
return syscall.EINVAL
|
||||||
|
}
|
||||||
|
p = (*Termios)(termios)
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func tcset(fd uintptr, p *Termios) syscall.Errno {
|
||||||
|
if err := unix.IoctlSetTermios(int(fd), setTermios, (*unix.Termios)(p)); err != nil {
|
||||||
|
return syscall.EINVAL
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
// +build !windows
|
// +build !windows,!illumos,!solaris
|
||||||
|
|
||||||
// Package term provides structures and helper functions to work with
|
// Package term provides structures and helper functions to work with
|
||||||
// terminal (state, sizes).
|
// terminal (state, sizes).
|
||||||
|
|
|
@ -0,0 +1,124 @@
|
||||||
|
//+build solaris illumos
|
||||||
|
|
||||||
|
// Package term provides structures and helper functions to work with
|
||||||
|
// terminal (state, sizes).
|
||||||
|
package term
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
"os/signal"
|
||||||
|
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// ErrInvalidState is returned if the state of the terminal is invalid.
|
||||||
|
ErrInvalidState = errors.New("Invalid terminal state")
|
||||||
|
)
|
||||||
|
|
||||||
|
// State represents the state of the terminal.
|
||||||
|
type State struct {
|
||||||
|
termios Termios
|
||||||
|
}
|
||||||
|
|
||||||
|
// Winsize represents the size of the terminal window.
|
||||||
|
type Winsize struct {
|
||||||
|
Height uint16
|
||||||
|
Width uint16
|
||||||
|
x uint16
|
||||||
|
y uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
// StdStreams returns the standard streams (stdin, stdout, stderr).
|
||||||
|
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) {
|
||||||
|
return os.Stdin, os.Stdout, os.Stderr
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetFdInfo returns the file descriptor for an os.File and indicates whether the file represents a terminal.
|
||||||
|
func GetFdInfo(in interface{}) (uintptr, bool) {
|
||||||
|
var inFd uintptr
|
||||||
|
var isTerminalIn bool
|
||||||
|
if file, ok := in.(*os.File); ok {
|
||||||
|
inFd = file.Fd()
|
||||||
|
isTerminalIn = IsTerminal(inFd)
|
||||||
|
}
|
||||||
|
return inFd, isTerminalIn
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsTerminal returns true if the given file descriptor is a terminal.
|
||||||
|
func IsTerminal(fd uintptr) bool {
|
||||||
|
var termios Termios
|
||||||
|
return tcget(fd, &termios) == 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// RestoreTerminal restores the terminal connected to the given file descriptor
|
||||||
|
// to a previous state.
|
||||||
|
func RestoreTerminal(fd uintptr, state *State) error {
|
||||||
|
if state == nil {
|
||||||
|
return ErrInvalidState
|
||||||
|
}
|
||||||
|
if err := tcset(fd, &state.termios); err != 0 {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SaveState saves the state of the terminal connected to the given file descriptor.
|
||||||
|
func SaveState(fd uintptr) (*State, error) {
|
||||||
|
var oldState State
|
||||||
|
if err := tcget(fd, &oldState.termios); err != 0 {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return &oldState, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// DisableEcho applies the specified state to the terminal connected to the file
|
||||||
|
// descriptor, with echo disabled.
|
||||||
|
func DisableEcho(fd uintptr, state *State) error {
|
||||||
|
newState := state.termios
|
||||||
|
newState.Lflag &^= unix.ECHO
|
||||||
|
|
||||||
|
if err := tcset(fd, &newState); err != 0 {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
handleInterrupt(fd, state)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetRawTerminal puts the terminal connected to the given file descriptor into
|
||||||
|
// raw mode and returns the previous state. On UNIX, this puts both the input
|
||||||
|
// and output into raw mode. On Windows, it only puts the input into raw mode.
|
||||||
|
func SetRawTerminal(fd uintptr) (*State, error) {
|
||||||
|
oldState, err := MakeRaw(fd)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
handleInterrupt(fd, oldState)
|
||||||
|
return oldState, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetRawTerminalOutput puts the output of terminal connected to the given file
|
||||||
|
// descriptor into raw mode. On UNIX, this does nothing and returns nil for the
|
||||||
|
// state. On Windows, it disables LF -> CRLF translation.
|
||||||
|
func SetRawTerminalOutput(fd uintptr) (*State, error) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func handleInterrupt(fd uintptr, state *State) {
|
||||||
|
sigchan := make(chan os.Signal, 1)
|
||||||
|
signal.Notify(sigchan, os.Interrupt)
|
||||||
|
go func() {
|
||||||
|
for range sigchan {
|
||||||
|
// quit cleanly and the new terminal item is on a new line
|
||||||
|
fmt.Println()
|
||||||
|
signal.Stop(sigchan)
|
||||||
|
close(sigchan)
|
||||||
|
RestoreTerminal(fd, state)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
}
|
|
@ -4,10 +4,9 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall" // used for STD_INPUT_HANDLE, STD_OUTPUT_HANDLE and STD_ERROR_HANDLE
|
|
||||||
|
|
||||||
"github.com/Azure/go-ansiterm/winterm"
|
|
||||||
windowsconsole "github.com/moby/term/windows"
|
windowsconsole "github.com/moby/term/windows"
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
// State holds the console mode for the terminal.
|
// State holds the console mode for the terminal.
|
||||||
|
@ -28,37 +27,42 @@ var vtInputSupported bool
|
||||||
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) {
|
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) {
|
||||||
// Turn on VT handling on all std handles, if possible. This might
|
// Turn on VT handling on all std handles, if possible. This might
|
||||||
// fail, in which case we will fall back to terminal emulation.
|
// fail, in which case we will fall back to terminal emulation.
|
||||||
var emulateStdin, emulateStdout, emulateStderr bool
|
var (
|
||||||
fd := os.Stdin.Fd()
|
emulateStdin, emulateStdout, emulateStderr bool
|
||||||
if mode, err := winterm.GetConsoleMode(fd); err == nil {
|
|
||||||
|
mode uint32
|
||||||
|
)
|
||||||
|
|
||||||
|
fd := windows.Handle(os.Stdin.Fd())
|
||||||
|
if err := windows.GetConsoleMode(fd, &mode); err == nil {
|
||||||
// Validate that winterm.ENABLE_VIRTUAL_TERMINAL_INPUT is supported, but do not set it.
|
// Validate that winterm.ENABLE_VIRTUAL_TERMINAL_INPUT is supported, but do not set it.
|
||||||
if err = winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_INPUT); err != nil {
|
if err = windows.SetConsoleMode(fd, mode|windows.ENABLE_VIRTUAL_TERMINAL_INPUT); err != nil {
|
||||||
emulateStdin = true
|
emulateStdin = true
|
||||||
} else {
|
} else {
|
||||||
vtInputSupported = true
|
vtInputSupported = true
|
||||||
}
|
}
|
||||||
// Unconditionally set the console mode back even on failure because SetConsoleMode
|
// Unconditionally set the console mode back even on failure because SetConsoleMode
|
||||||
// remembers invalid bits on input handles.
|
// remembers invalid bits on input handles.
|
||||||
winterm.SetConsoleMode(fd, mode)
|
_ = windows.SetConsoleMode(fd, mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
fd = os.Stdout.Fd()
|
fd = windows.Handle(os.Stdout.Fd())
|
||||||
if mode, err := winterm.GetConsoleMode(fd); err == nil {
|
if err := windows.GetConsoleMode(fd, &mode); err == nil {
|
||||||
// Validate winterm.DISABLE_NEWLINE_AUTO_RETURN is supported, but do not set it.
|
// Validate winterm.DISABLE_NEWLINE_AUTO_RETURN is supported, but do not set it.
|
||||||
if err = winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING|winterm.DISABLE_NEWLINE_AUTO_RETURN); err != nil {
|
if err = windows.SetConsoleMode(fd, mode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING|windows.DISABLE_NEWLINE_AUTO_RETURN); err != nil {
|
||||||
emulateStdout = true
|
emulateStdout = true
|
||||||
} else {
|
} else {
|
||||||
winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
_ = windows.SetConsoleMode(fd, mode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fd = os.Stderr.Fd()
|
fd = windows.Handle(os.Stderr.Fd())
|
||||||
if mode, err := winterm.GetConsoleMode(fd); err == nil {
|
if err := windows.GetConsoleMode(fd, &mode); err == nil {
|
||||||
// Validate winterm.DISABLE_NEWLINE_AUTO_RETURN is supported, but do not set it.
|
// Validate winterm.DISABLE_NEWLINE_AUTO_RETURN is supported, but do not set it.
|
||||||
if err = winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING|winterm.DISABLE_NEWLINE_AUTO_RETURN); err != nil {
|
if err = windows.SetConsoleMode(fd, mode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING|windows.DISABLE_NEWLINE_AUTO_RETURN); err != nil {
|
||||||
emulateStderr = true
|
emulateStderr = true
|
||||||
} else {
|
} else {
|
||||||
winterm.SetConsoleMode(fd, mode|winterm.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
_ = windows.SetConsoleMode(fd, mode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,19 +71,19 @@ func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) {
|
||||||
// go-ansiterm hasn't switch to x/sys/windows.
|
// go-ansiterm hasn't switch to x/sys/windows.
|
||||||
// TODO: switch back to x/sys/windows once go-ansiterm has switched
|
// TODO: switch back to x/sys/windows once go-ansiterm has switched
|
||||||
if emulateStdin {
|
if emulateStdin {
|
||||||
stdIn = windowsconsole.NewAnsiReader(syscall.STD_INPUT_HANDLE)
|
stdIn = windowsconsole.NewAnsiReader(windows.STD_INPUT_HANDLE)
|
||||||
} else {
|
} else {
|
||||||
stdIn = os.Stdin
|
stdIn = os.Stdin
|
||||||
}
|
}
|
||||||
|
|
||||||
if emulateStdout {
|
if emulateStdout {
|
||||||
stdOut = windowsconsole.NewAnsiWriter(syscall.STD_OUTPUT_HANDLE)
|
stdOut = windowsconsole.NewAnsiWriter(windows.STD_OUTPUT_HANDLE)
|
||||||
} else {
|
} else {
|
||||||
stdOut = os.Stdout
|
stdOut = os.Stdout
|
||||||
}
|
}
|
||||||
|
|
||||||
if emulateStderr {
|
if emulateStderr {
|
||||||
stdErr = windowsconsole.NewAnsiWriter(syscall.STD_ERROR_HANDLE)
|
stdErr = windowsconsole.NewAnsiWriter(windows.STD_ERROR_HANDLE)
|
||||||
} else {
|
} else {
|
||||||
stdErr = os.Stderr
|
stdErr = os.Stderr
|
||||||
}
|
}
|
||||||
|
@ -94,8 +98,8 @@ func GetFdInfo(in interface{}) (uintptr, bool) {
|
||||||
|
|
||||||
// GetWinsize returns the window size based on the specified file descriptor.
|
// GetWinsize returns the window size based on the specified file descriptor.
|
||||||
func GetWinsize(fd uintptr) (*Winsize, error) {
|
func GetWinsize(fd uintptr) (*Winsize, error) {
|
||||||
info, err := winterm.GetConsoleScreenBufferInfo(fd)
|
var info windows.ConsoleScreenBufferInfo
|
||||||
if err != nil {
|
if err := windows.GetConsoleScreenBufferInfo(windows.Handle(fd), &info); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,20 +113,23 @@ func GetWinsize(fd uintptr) (*Winsize, error) {
|
||||||
|
|
||||||
// IsTerminal returns true if the given file descriptor is a terminal.
|
// IsTerminal returns true if the given file descriptor is a terminal.
|
||||||
func IsTerminal(fd uintptr) bool {
|
func IsTerminal(fd uintptr) bool {
|
||||||
return windowsconsole.IsConsole(fd)
|
var mode uint32
|
||||||
|
err := windows.GetConsoleMode(windows.Handle(fd), &mode)
|
||||||
|
return err == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// RestoreTerminal restores the terminal connected to the given file descriptor
|
// RestoreTerminal restores the terminal connected to the given file descriptor
|
||||||
// to a previous state.
|
// to a previous state.
|
||||||
func RestoreTerminal(fd uintptr, state *State) error {
|
func RestoreTerminal(fd uintptr, state *State) error {
|
||||||
return winterm.SetConsoleMode(fd, state.mode)
|
return windows.SetConsoleMode(windows.Handle(fd), state.mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SaveState saves the state of the terminal connected to the given file descriptor.
|
// SaveState saves the state of the terminal connected to the given file descriptor.
|
||||||
func SaveState(fd uintptr) (*State, error) {
|
func SaveState(fd uintptr) (*State, error) {
|
||||||
mode, e := winterm.GetConsoleMode(fd)
|
var mode uint32
|
||||||
if e != nil {
|
|
||||||
return nil, e
|
if err := windows.GetConsoleMode(windows.Handle(fd), &mode); err != nil {
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return &State{mode: mode}, nil
|
return &State{mode: mode}, nil
|
||||||
|
@ -132,9 +139,9 @@ func SaveState(fd uintptr) (*State, error) {
|
||||||
// -- See https://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx
|
// -- See https://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx
|
||||||
func DisableEcho(fd uintptr, state *State) error {
|
func DisableEcho(fd uintptr, state *State) error {
|
||||||
mode := state.mode
|
mode := state.mode
|
||||||
mode &^= winterm.ENABLE_ECHO_INPUT
|
mode &^= windows.ENABLE_ECHO_INPUT
|
||||||
mode |= winterm.ENABLE_PROCESSED_INPUT | winterm.ENABLE_LINE_INPUT
|
mode |= windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT
|
||||||
err := winterm.SetConsoleMode(fd, mode)
|
err := windows.SetConsoleMode(windows.Handle(fd), mode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -169,7 +176,7 @@ func SetRawTerminalOutput(fd uintptr) (*State, error) {
|
||||||
|
|
||||||
// Ignore failures, since winterm.DISABLE_NEWLINE_AUTO_RETURN might not be supported on this
|
// Ignore failures, since winterm.DISABLE_NEWLINE_AUTO_RETURN might not be supported on this
|
||||||
// version of Windows.
|
// version of Windows.
|
||||||
winterm.SetConsoleMode(fd, state.mode|winterm.DISABLE_NEWLINE_AUTO_RETURN)
|
_ = windows.SetConsoleMode(windows.Handle(fd), state.mode|windows.DISABLE_NEWLINE_AUTO_RETURN)
|
||||||
return state, err
|
return state, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,21 +195,21 @@ func MakeRaw(fd uintptr) (*State, error) {
|
||||||
// -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx
|
// -- https://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx
|
||||||
|
|
||||||
// Disable these modes
|
// Disable these modes
|
||||||
mode &^= winterm.ENABLE_ECHO_INPUT
|
mode &^= windows.ENABLE_ECHO_INPUT
|
||||||
mode &^= winterm.ENABLE_LINE_INPUT
|
mode &^= windows.ENABLE_LINE_INPUT
|
||||||
mode &^= winterm.ENABLE_MOUSE_INPUT
|
mode &^= windows.ENABLE_MOUSE_INPUT
|
||||||
mode &^= winterm.ENABLE_WINDOW_INPUT
|
mode &^= windows.ENABLE_WINDOW_INPUT
|
||||||
mode &^= winterm.ENABLE_PROCESSED_INPUT
|
mode &^= windows.ENABLE_PROCESSED_INPUT
|
||||||
|
|
||||||
// Enable these modes
|
// Enable these modes
|
||||||
mode |= winterm.ENABLE_EXTENDED_FLAGS
|
mode |= windows.ENABLE_EXTENDED_FLAGS
|
||||||
mode |= winterm.ENABLE_INSERT_MODE
|
mode |= windows.ENABLE_INSERT_MODE
|
||||||
mode |= winterm.ENABLE_QUICK_EDIT_MODE
|
mode |= windows.ENABLE_QUICK_EDIT_MODE
|
||||||
if vtInputSupported {
|
if vtInputSupported {
|
||||||
mode |= winterm.ENABLE_VIRTUAL_TERMINAL_INPUT
|
mode |= windows.ENABLE_VIRTUAL_TERMINAL_INPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
err = winterm.SetConsoleMode(fd, mode)
|
err = windows.SetConsoleMode(windows.Handle(fd), mode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -215,7 +222,7 @@ func restoreAtInterrupt(fd uintptr, state *State) {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
_ = <-sigchan
|
_ = <-sigchan
|
||||||
RestoreTerminal(fd, state)
|
_ = RestoreTerminal(fd, state)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
//+build solaris illumos
|
||||||
|
|
||||||
|
package term
|
||||||
|
|
||||||
|
import (
|
||||||
|
"golang.org/x/sys/unix"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
getTermios = unix.TCGETS
|
||||||
|
setTermios = unix.TCSETS
|
||||||
|
)
|
||||||
|
|
||||||
|
// Termios is the Unix API for terminal I/O.
|
||||||
|
type Termios unix.Termios
|
||||||
|
|
||||||
|
// MakeRaw put the terminal connected to the given file descriptor into raw
|
||||||
|
// mode and returns the previous state of the terminal so that it can be
|
||||||
|
// restored.
|
||||||
|
func MakeRaw(fd uintptr) (*State, error) {
|
||||||
|
termios, err := unix.IoctlGetTermios(int(fd), getTermios)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
var oldState State
|
||||||
|
oldState.termios = Termios(*termios)
|
||||||
|
|
||||||
|
termios.Iflag &^= (unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON)
|
||||||
|
termios.Oflag &^= unix.OPOST
|
||||||
|
termios.Lflag &^= (unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN)
|
||||||
|
termios.Cflag &^= (unix.CSIZE | unix.PARENB)
|
||||||
|
termios.Cflag |= unix.CS8
|
||||||
|
termios.Cc[unix.VMIN] = 1
|
||||||
|
termios.Cc[unix.VTIME] = 0
|
||||||
|
|
||||||
|
if err := unix.IoctlSetTermios(int(fd), setTermios, termios); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &oldState, nil
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
package windowsconsole // import "github.com/moby/term/windows"
|
package windowsconsole
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -31,7 +31,6 @@ type ansiReader struct {
|
||||||
// NewAnsiReader returns an io.ReadCloser that provides VT100 terminal emulation on top of a
|
// NewAnsiReader returns an io.ReadCloser that provides VT100 terminal emulation on top of a
|
||||||
// Windows console input handle.
|
// Windows console input handle.
|
||||||
func NewAnsiReader(nFile int) io.ReadCloser {
|
func NewAnsiReader(nFile int) io.ReadCloser {
|
||||||
initLogger()
|
|
||||||
file, fd := winterm.GetStdFile(nFile)
|
file, fd := winterm.GetStdFile(nFile)
|
||||||
return &ansiReader{
|
return &ansiReader{
|
||||||
file: file,
|
file: file,
|
||||||
|
@ -59,8 +58,6 @@ func (ar *ansiReader) Read(p []byte) (int, error) {
|
||||||
|
|
||||||
// Previously read bytes exist, read as much as we can and return
|
// Previously read bytes exist, read as much as we can and return
|
||||||
if len(ar.buffer) > 0 {
|
if len(ar.buffer) > 0 {
|
||||||
logger.Debugf("Reading previously cached bytes")
|
|
||||||
|
|
||||||
originalLength := len(ar.buffer)
|
originalLength := len(ar.buffer)
|
||||||
copiedLength := copy(p, ar.buffer)
|
copiedLength := copy(p, ar.buffer)
|
||||||
|
|
||||||
|
@ -70,16 +67,14 @@ func (ar *ansiReader) Read(p []byte) (int, error) {
|
||||||
ar.buffer = ar.buffer[copiedLength:]
|
ar.buffer = ar.buffer[copiedLength:]
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Debugf("Read from cache p[%d]: % x", copiedLength, p)
|
|
||||||
return copiedLength, nil
|
return copiedLength, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read and translate key events
|
// Read and translate key events
|
||||||
events, err := readInputEvents(ar.fd, len(p))
|
events, err := readInputEvents(ar, len(p))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
} else if len(events) == 0 {
|
} else if len(events) == 0 {
|
||||||
logger.Debug("No input events detected")
|
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,11 +82,9 @@ func (ar *ansiReader) Read(p []byte) (int, error) {
|
||||||
|
|
||||||
// Save excess bytes and right-size keyBytes
|
// Save excess bytes and right-size keyBytes
|
||||||
if len(keyBytes) > len(p) {
|
if len(keyBytes) > len(p) {
|
||||||
logger.Debugf("Received %d keyBytes, only room for %d bytes", len(keyBytes), len(p))
|
|
||||||
ar.buffer = keyBytes[len(p):]
|
ar.buffer = keyBytes[len(p):]
|
||||||
keyBytes = keyBytes[:len(p)]
|
keyBytes = keyBytes[:len(p)]
|
||||||
} else if len(keyBytes) == 0 {
|
} else if len(keyBytes) == 0 {
|
||||||
logger.Debug("No key bytes returned from the translator")
|
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,13 +93,11 @@ func (ar *ansiReader) Read(p []byte) (int, error) {
|
||||||
return 0, errors.New("unexpected copy length encountered")
|
return 0, errors.New("unexpected copy length encountered")
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Debugf("Read p[%d]: % x", copiedLength, p)
|
|
||||||
logger.Debugf("Read keyBytes[%d]: % x", copiedLength, keyBytes)
|
|
||||||
return copiedLength, nil
|
return copiedLength, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// readInputEvents polls until at least one event is available.
|
// readInputEvents polls until at least one event is available.
|
||||||
func readInputEvents(fd uintptr, maxBytes int) ([]winterm.INPUT_RECORD, error) {
|
func readInputEvents(ar *ansiReader, maxBytes int) ([]winterm.INPUT_RECORD, error) {
|
||||||
// Determine the maximum number of records to retrieve
|
// Determine the maximum number of records to retrieve
|
||||||
// -- Cast around the type system to obtain the size of a single INPUT_RECORD.
|
// -- Cast around the type system to obtain the size of a single INPUT_RECORD.
|
||||||
// unsafe.Sizeof requires an expression vs. a type-reference; the casting
|
// unsafe.Sizeof requires an expression vs. a type-reference; the casting
|
||||||
|
@ -118,25 +109,23 @@ func readInputEvents(fd uintptr, maxBytes int) ([]winterm.INPUT_RECORD, error) {
|
||||||
} else if countRecords == 0 {
|
} else if countRecords == 0 {
|
||||||
countRecords = 1
|
countRecords = 1
|
||||||
}
|
}
|
||||||
logger.Debugf("[windows] readInputEvents: Reading %v records (buffer size %v, record size %v)", countRecords, maxBytes, recordSize)
|
|
||||||
|
|
||||||
// Wait for and read input events
|
// Wait for and read input events
|
||||||
events := make([]winterm.INPUT_RECORD, countRecords)
|
events := make([]winterm.INPUT_RECORD, countRecords)
|
||||||
nEvents := uint32(0)
|
nEvents := uint32(0)
|
||||||
eventsExist, err := winterm.WaitForSingleObject(fd, winterm.WAIT_INFINITE)
|
eventsExist, err := winterm.WaitForSingleObject(ar.fd, winterm.WAIT_INFINITE)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if eventsExist {
|
if eventsExist {
|
||||||
err = winterm.ReadConsoleInput(fd, events, &nEvents)
|
err = winterm.ReadConsoleInput(ar.fd, events, &nEvents)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return a slice restricted to the number of returned records
|
// Return a slice restricted to the number of returned records
|
||||||
logger.Debugf("[windows] readInputEvents: Read %v events", nEvents)
|
|
||||||
return events[:nEvents], nil
|
return events[:nEvents], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
package windowsconsole // import "github.com/moby/term/windows"
|
package windowsconsole
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
@ -24,7 +24,6 @@ type ansiWriter struct {
|
||||||
// NewAnsiWriter returns an io.Writer that provides VT100 terminal emulation on top of a
|
// NewAnsiWriter returns an io.Writer that provides VT100 terminal emulation on top of a
|
||||||
// Windows console output handle.
|
// Windows console output handle.
|
||||||
func NewAnsiWriter(nFile int) io.Writer {
|
func NewAnsiWriter(nFile int) io.Writer {
|
||||||
initLogger()
|
|
||||||
file, fd := winterm.GetStdFile(nFile)
|
file, fd := winterm.GetStdFile(nFile)
|
||||||
info, err := winterm.GetConsoleScreenBufferInfo(fd)
|
info, err := winterm.GetConsoleScreenBufferInfo(fd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -32,9 +31,8 @@ func NewAnsiWriter(nFile int) io.Writer {
|
||||||
}
|
}
|
||||||
|
|
||||||
parser := ansiterm.CreateParser("Ground", winterm.CreateWinEventHandler(fd, file))
|
parser := ansiterm.CreateParser("Ground", winterm.CreateWinEventHandler(fd, file))
|
||||||
logger.Infof("newAnsiWriter: parser %p", parser)
|
|
||||||
|
|
||||||
aw := &ansiWriter{
|
return &ansiWriter{
|
||||||
file: file,
|
file: file,
|
||||||
fd: fd,
|
fd: fd,
|
||||||
infoReset: info,
|
infoReset: info,
|
||||||
|
@ -42,10 +40,6 @@ func NewAnsiWriter(nFile int) io.Writer {
|
||||||
escapeSequence: []byte(ansiterm.KEY_ESC_CSI),
|
escapeSequence: []byte(ansiterm.KEY_ESC_CSI),
|
||||||
parser: parser,
|
parser: parser,
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Infof("newAnsiWriter: aw.parser %p", aw.parser)
|
|
||||||
logger.Infof("newAnsiWriter: %v", aw)
|
|
||||||
return aw
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (aw *ansiWriter) Fd() uintptr {
|
func (aw *ansiWriter) Fd() uintptr {
|
||||||
|
@ -58,7 +52,5 @@ func (aw *ansiWriter) Write(p []byte) (total int, err error) {
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Infof("Write: % x", p)
|
|
||||||
logger.Infof("Write: %s", string(p))
|
|
||||||
return aw.parser.Parse(p)
|
return aw.parser.Parse(p)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
package windowsconsole // import "github.com/moby/term/windows"
|
package windowsconsole
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/Azure/go-ansiterm/winterm"
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetHandleInfo returns file descriptor and bool indicating whether the file is a console.
|
// GetHandleInfo returns file descriptor and bool indicating whether the file is a console.
|
||||||
|
@ -22,14 +22,18 @@ func GetHandleInfo(in interface{}) (uintptr, bool) {
|
||||||
|
|
||||||
if file, ok := in.(*os.File); ok {
|
if file, ok := in.(*os.File); ok {
|
||||||
inFd = file.Fd()
|
inFd = file.Fd()
|
||||||
isTerminal = IsConsole(inFd)
|
isTerminal = isConsole(inFd)
|
||||||
}
|
}
|
||||||
return inFd, isTerminal
|
return inFd, isTerminal
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsConsole returns true if the given file descriptor is a Windows Console.
|
// IsConsole returns true if the given file descriptor is a Windows Console.
|
||||||
// The code assumes that GetConsoleMode will return an error for file descriptors that are not a console.
|
// The code assumes that GetConsoleMode will return an error for file descriptors that are not a console.
|
||||||
func IsConsole(fd uintptr) bool {
|
// Deprecated: use golang.org/x/sys/windows.GetConsoleMode() or golang.org/x/crypto/ssh/terminal.IsTerminal()
|
||||||
_, e := winterm.GetConsoleMode(fd)
|
var IsConsole = isConsole
|
||||||
return e == nil
|
|
||||||
|
func isConsole(fd uintptr) bool {
|
||||||
|
var mode uint32
|
||||||
|
err := windows.GetConsoleMode(windows.Handle(fd), &mode)
|
||||||
|
return err == nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
// These files implement ANSI-aware input and output streams for use by the Docker Windows client.
|
||||||
|
// When asked for the set of standard streams (e.g., stdin, stdout, stderr), the code will create
|
||||||
|
// and return pseudo-streams that convert ANSI sequences to / from Windows Console API calls.
|
||||||
|
|
||||||
|
package windowsconsole
|
|
@ -1,34 +0,0 @@
|
||||||
// +build windows
|
|
||||||
// These files implement ANSI-aware input and output streams for use by the Docker Windows client.
|
|
||||||
// When asked for the set of standard streams (e.g., stdin, stdout, stderr), the code will create
|
|
||||||
// and return pseudo-streams that convert ANSI sequences to / from Windows Console API calls.
|
|
||||||
|
|
||||||
package windowsconsole // import "github.com/moby/term/windows"
|
|
||||||
|
|
||||||
import (
|
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
|
||||||
"sync"
|
|
||||||
|
|
||||||
ansiterm "github.com/Azure/go-ansiterm"
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
)
|
|
||||||
|
|
||||||
var logger *logrus.Logger
|
|
||||||
var initOnce sync.Once
|
|
||||||
|
|
||||||
func initLogger() {
|
|
||||||
initOnce.Do(func() {
|
|
||||||
logFile := ioutil.Discard
|
|
||||||
|
|
||||||
if isDebugEnv := os.Getenv(ansiterm.LogEnv); isDebugEnv == "1" {
|
|
||||||
logFile, _ = os.Create("ansiReaderWriter.log")
|
|
||||||
}
|
|
||||||
|
|
||||||
logger = &logrus.Logger{
|
|
||||||
Out: logFile,
|
|
||||||
Formatter: new(logrus.TextFormatter),
|
|
||||||
Level: logrus.DebugLevel,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
|
@ -114,6 +114,15 @@ var ARM struct {
|
||||||
_ CacheLinePad
|
_ CacheLinePad
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MIPS64X contains the supported CPU features of the current mips64/mips64le
|
||||||
|
// platforms. If the current platform is not mips64/mips64le or the current
|
||||||
|
// operating system is not Linux then all feature flags are false.
|
||||||
|
var MIPS64X struct {
|
||||||
|
_ CacheLinePad
|
||||||
|
HasMSA bool // MIPS SIMD architecture
|
||||||
|
_ 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.
|
||||||
//
|
//
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
// Copyright 2020 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 mips64 mips64le
|
||||||
|
|
||||||
|
package cpu
|
||||||
|
|
||||||
|
// HWCAP bits. These are exposed by the Linux kernel 5.4.
|
||||||
|
const (
|
||||||
|
// CPU features
|
||||||
|
hwcap_MIPS_MSA = 1 << 1
|
||||||
|
)
|
||||||
|
|
||||||
|
func doinit() {
|
||||||
|
// HWCAP feature bits
|
||||||
|
MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA)
|
||||||
|
}
|
||||||
|
|
||||||
|
func isSet(hwc uint, value uint) bool {
|
||||||
|
return hwc&value != 0
|
||||||
|
}
|
|
@ -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 linux,!arm,!arm64,!ppc64,!ppc64le,!s390x
|
// +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x
|
||||||
|
|
||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,17 @@ To add a constant, add the header that includes it to the appropriate variable.
|
||||||
Then, edit the regex (if necessary) to match the desired constant. Avoid making
|
Then, edit the regex (if necessary) to match the desired constant. Avoid making
|
||||||
the regex too broad to avoid matching unintended constants.
|
the regex too broad to avoid matching unintended constants.
|
||||||
|
|
||||||
|
### mkmerge.go
|
||||||
|
|
||||||
|
This program is used to extract duplicate const, func, and type declarations
|
||||||
|
from the generated architecture-specific files listed below, and merge these
|
||||||
|
into a common file for each OS.
|
||||||
|
|
||||||
|
The merge is performed in the following steps:
|
||||||
|
1. Construct the set of common code that is idential in all architecture-specific files.
|
||||||
|
2. Write this common code to the merged file.
|
||||||
|
3. Remove the common code from all architecture-specific files.
|
||||||
|
|
||||||
|
|
||||||
## Generated files
|
## Generated files
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
DLT_HHDLC = 0x79
|
||||||
IFF_SMART = 0x20
|
IFF_SMART = 0x20
|
||||||
IFT_1822 = 0x2
|
IFT_1822 = 0x2
|
||||||
IFT_A12MPPSWITCH = 0x82
|
IFT_A12MPPSWITCH = 0x82
|
||||||
|
@ -210,13 +211,18 @@ const (
|
||||||
IFT_XETHER = 0x1a
|
IFT_XETHER = 0x1a
|
||||||
IPPROTO_MAXID = 0x34
|
IPPROTO_MAXID = 0x34
|
||||||
IPV6_FAITH = 0x1d
|
IPV6_FAITH = 0x1d
|
||||||
|
IPV6_MIN_MEMBERSHIPS = 0x1f
|
||||||
IP_FAITH = 0x16
|
IP_FAITH = 0x16
|
||||||
|
IP_MAX_SOURCE_FILTER = 0x400
|
||||||
|
IP_MIN_MEMBERSHIPS = 0x1f
|
||||||
MAP_NORESERVE = 0x40
|
MAP_NORESERVE = 0x40
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x20
|
||||||
NET_RT_MAXID = 0x6
|
NET_RT_MAXID = 0x6
|
||||||
RTF_PRCLONING = 0x10000
|
RTF_PRCLONING = 0x10000
|
||||||
RTM_OLDADD = 0x9
|
RTM_OLDADD = 0x9
|
||||||
RTM_OLDDEL = 0xa
|
RTM_OLDDEL = 0xa
|
||||||
|
RT_CACHING_CONTEXT = 0x1
|
||||||
|
RT_NORTREF = 0x2
|
||||||
SIOCADDRT = 0x8030720a
|
SIOCADDRT = 0x8030720a
|
||||||
SIOCALIFADDR = 0x8118691b
|
SIOCALIFADDR = 0x8118691b
|
||||||
SIOCDELRT = 0x8030720b
|
SIOCDELRT = 0x8030720b
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
DLT_HHDLC = 0x79
|
||||||
IFF_SMART = 0x20
|
IFF_SMART = 0x20
|
||||||
IFT_1822 = 0x2
|
IFT_1822 = 0x2
|
||||||
IFT_A12MPPSWITCH = 0x82
|
IFT_A12MPPSWITCH = 0x82
|
||||||
|
@ -210,13 +211,18 @@ const (
|
||||||
IFT_XETHER = 0x1a
|
IFT_XETHER = 0x1a
|
||||||
IPPROTO_MAXID = 0x34
|
IPPROTO_MAXID = 0x34
|
||||||
IPV6_FAITH = 0x1d
|
IPV6_FAITH = 0x1d
|
||||||
|
IPV6_MIN_MEMBERSHIPS = 0x1f
|
||||||
IP_FAITH = 0x16
|
IP_FAITH = 0x16
|
||||||
|
IP_MAX_SOURCE_FILTER = 0x400
|
||||||
|
IP_MIN_MEMBERSHIPS = 0x1f
|
||||||
MAP_NORESERVE = 0x40
|
MAP_NORESERVE = 0x40
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x20
|
||||||
NET_RT_MAXID = 0x6
|
NET_RT_MAXID = 0x6
|
||||||
RTF_PRCLONING = 0x10000
|
RTF_PRCLONING = 0x10000
|
||||||
RTM_OLDADD = 0x9
|
RTM_OLDADD = 0x9
|
||||||
RTM_OLDDEL = 0xa
|
RTM_OLDDEL = 0xa
|
||||||
|
RT_CACHING_CONTEXT = 0x1
|
||||||
|
RT_NORTREF = 0x2
|
||||||
SIOCADDRT = 0x8040720a
|
SIOCADDRT = 0x8040720a
|
||||||
SIOCALIFADDR = 0x8118691b
|
SIOCALIFADDR = 0x8118691b
|
||||||
SIOCDELRT = 0x8040720b
|
SIOCDELRT = 0x8040720b
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
// Copyright 2020 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.
|
||||||
|
|
||||||
|
// Constants that were deprecated or moved to enums in the FreeBSD headers. Keep
|
||||||
|
// them here for backwards compatibility.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
DLT_HHDLC = 0x79
|
||||||
|
IPV6_MIN_MEMBERSHIPS = 0x1f
|
||||||
|
IP_MAX_SOURCE_FILTER = 0x400
|
||||||
|
IP_MIN_MEMBERSHIPS = 0x1f
|
||||||
|
RT_CACHING_CONTEXT = 0x1
|
||||||
|
RT_NORTREF = 0x2
|
||||||
|
)
|
|
@ -521,10 +521,6 @@ func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) {
|
||||||
return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
|
return ptrace(PTRACE_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
|
||||||
return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
func PtraceGetRegs(pid int, regsout *Reg) (err error) {
|
||||||
return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
|
return ptrace(PTRACE_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,10 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
||||||
|
return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
||||||
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
|
|
|
@ -55,6 +55,10 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
|
|
||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
|
func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
||||||
|
return ptrace(PTRACE_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0)
|
||||||
|
}
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
||||||
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
err = ptrace(PTRACE_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
// Copyright 2009 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.
|
||||||
|
|
||||||
|
// illumos system calls not present on Solaris.
|
||||||
|
|
||||||
|
// +build amd64,illumos
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "unsafe"
|
||||||
|
|
||||||
|
func bytes2iovec(bs [][]byte) []Iovec {
|
||||||
|
iovecs := make([]Iovec, len(bs))
|
||||||
|
for i, b := range bs {
|
||||||
|
iovecs[i].SetLen(len(b))
|
||||||
|
if len(b) > 0 {
|
||||||
|
// somehow Iovec.Base on illumos is (*int8), not (*byte)
|
||||||
|
iovecs[i].Base = (*int8)(unsafe.Pointer(&b[0]))
|
||||||
|
} else {
|
||||||
|
iovecs[i].Base = (*int8)(unsafe.Pointer(&_zero))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return iovecs
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys readv(fd int, iovs []Iovec) (n int, err error)
|
||||||
|
|
||||||
|
func Readv(fd int, iovs [][]byte) (n int, err error) {
|
||||||
|
iovecs := bytes2iovec(iovs)
|
||||||
|
n, err = readv(fd, iovecs)
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys preadv(fd int, iovs []Iovec, off int64) (n int, err error)
|
||||||
|
|
||||||
|
func Preadv(fd int, iovs [][]byte, off int64) (n int, err error) {
|
||||||
|
iovecs := bytes2iovec(iovs)
|
||||||
|
n, err = preadv(fd, iovecs, off)
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys writev(fd int, iovs []Iovec) (n int, err error)
|
||||||
|
|
||||||
|
func Writev(fd int, iovs [][]byte) (n int, err error) {
|
||||||
|
iovecs := bytes2iovec(iovs)
|
||||||
|
n, err = writev(fd, iovecs)
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys pwritev(fd int, iovs []Iovec, off int64) (n int, err error)
|
||||||
|
|
||||||
|
func Pwritev(fd int, iovs [][]byte, off int64) (n int, err error) {
|
||||||
|
iovecs := bytes2iovec(iovs)
|
||||||
|
n, err = pwritev(fd, iovecs, off)
|
||||||
|
return n, err
|
||||||
|
}
|
|
@ -839,6 +839,40 @@ func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SockaddrL2TPIP implements the Sockaddr interface for IPPROTO_L2TP/AF_INET sockets.
|
||||||
|
type SockaddrL2TPIP struct {
|
||||||
|
Addr [4]byte
|
||||||
|
ConnId uint32
|
||||||
|
raw RawSockaddrL2TPIP
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrL2TPIP) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
sa.raw.Family = AF_INET
|
||||||
|
sa.raw.Conn_id = sa.ConnId
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.raw.Addr[i] = sa.Addr[i]
|
||||||
|
}
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SockaddrL2TPIP6 implements the Sockaddr interface for IPPROTO_L2TP/AF_INET6 sockets.
|
||||||
|
type SockaddrL2TPIP6 struct {
|
||||||
|
Addr [16]byte
|
||||||
|
ZoneId uint32
|
||||||
|
ConnId uint32
|
||||||
|
raw RawSockaddrL2TPIP6
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
sa.raw.Family = AF_INET6
|
||||||
|
sa.raw.Conn_id = sa.ConnId
|
||||||
|
sa.raw.Scope_id = sa.ZoneId
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.raw.Addr[i] = sa.Addr[i]
|
||||||
|
}
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, 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:
|
||||||
|
@ -889,25 +923,58 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
|
proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
|
||||||
sa := new(SockaddrInet4)
|
if err != nil {
|
||||||
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
|
return nil, err
|
||||||
sa.Port = int(p[0])<<8 + int(p[1])
|
}
|
||||||
for i := 0; i < len(sa.Addr); i++ {
|
|
||||||
sa.Addr[i] = pp.Addr[i]
|
switch proto {
|
||||||
|
case IPPROTO_L2TP:
|
||||||
|
pp := (*RawSockaddrL2TPIP)(unsafe.Pointer(rsa))
|
||||||
|
sa := new(SockaddrL2TPIP)
|
||||||
|
sa.ConnId = pp.Conn_id
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.Addr[i] = pp.Addr[i]
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
|
default:
|
||||||
|
pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
|
||||||
|
sa := new(SockaddrInet4)
|
||||||
|
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
|
||||||
|
sa.Port = int(p[0])<<8 + int(p[1])
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.Addr[i] = pp.Addr[i]
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
}
|
}
|
||||||
return sa, nil
|
|
||||||
|
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
|
proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
|
||||||
sa := new(SockaddrInet6)
|
if err != nil {
|
||||||
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
|
return nil, err
|
||||||
sa.Port = int(p[0])<<8 + int(p[1])
|
}
|
||||||
sa.ZoneId = pp.Scope_id
|
|
||||||
for i := 0; i < len(sa.Addr); i++ {
|
switch proto {
|
||||||
sa.Addr[i] = pp.Addr[i]
|
case IPPROTO_L2TP:
|
||||||
|
pp := (*RawSockaddrL2TPIP6)(unsafe.Pointer(rsa))
|
||||||
|
sa := new(SockaddrL2TPIP6)
|
||||||
|
sa.ConnId = pp.Conn_id
|
||||||
|
sa.ZoneId = pp.Scope_id
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.Addr[i] = pp.Addr[i]
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
|
default:
|
||||||
|
pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
|
||||||
|
sa := new(SockaddrInet6)
|
||||||
|
p := (*[2]byte)(unsafe.Pointer(&pp.Port))
|
||||||
|
sa.Port = int(p[0])<<8 + int(p[1])
|
||||||
|
sa.ZoneId = pp.Scope_id
|
||||||
|
for i := 0; i < len(sa.Addr); i++ {
|
||||||
|
sa.Addr[i] = pp.Addr[i]
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
}
|
}
|
||||||
return sa, nil
|
|
||||||
|
|
||||||
case AF_VSOCK:
|
case AF_VSOCK:
|
||||||
pp := (*RawSockaddrVM)(unsafe.Pointer(rsa))
|
pp := (*RawSockaddrVM)(unsafe.Pointer(rsa))
|
||||||
|
|
|
@ -76,7 +76,7 @@ func SignalName(s syscall.Signal) string {
|
||||||
// The signal name should start with "SIG".
|
// The signal name should start with "SIG".
|
||||||
func SignalNum(s string) syscall.Signal {
|
func SignalNum(s string) syscall.Signal {
|
||||||
signalNameMapOnce.Do(func() {
|
signalNameMapOnce.Do(func() {
|
||||||
signalNameMap = make(map[string]syscall.Signal)
|
signalNameMap = make(map[string]syscall.Signal, len(signalList))
|
||||||
for _, signal := range signalList {
|
for _, signal := range signalList {
|
||||||
signalNameMap[signal.name] = signal.num
|
signalNameMap[signal.name] = signal.num
|
||||||
}
|
}
|
||||||
|
|
|
@ -355,6 +355,22 @@ const (
|
||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0x18
|
CTL_MAXNAME = 0x18
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCGATTR = 0xc144648e
|
||||||
|
DIOCGDELETE = 0x80106488
|
||||||
|
DIOCGFLUSH = 0x20006487
|
||||||
|
DIOCGFRONTSTUFF = 0x40086486
|
||||||
|
DIOCGFWHEADS = 0x40046483
|
||||||
|
DIOCGFWSECTORS = 0x40046482
|
||||||
|
DIOCGIDENT = 0x41006489
|
||||||
|
DIOCGMEDIASIZE = 0x40086481
|
||||||
|
DIOCGPHYSPATH = 0x4400648d
|
||||||
|
DIOCGPROVIDERNAME = 0x4400648a
|
||||||
|
DIOCGSECTORSIZE = 0x40046480
|
||||||
|
DIOCGSTRIPEOFFSET = 0x4008648c
|
||||||
|
DIOCGSTRIPESIZE = 0x4008648b
|
||||||
|
DIOCSKERNELDUMP = 0x804c6490
|
||||||
|
DIOCSKERNELDUMP_FREEBSD11 = 0x80046485
|
||||||
|
DIOCZONECMD = 0xc06c648f
|
||||||
DLT_A429 = 0xb8
|
DLT_A429 = 0xb8
|
||||||
DLT_A653_ICM = 0xb9
|
DLT_A653_ICM = 0xb9
|
||||||
DLT_AIRONET_HEADER = 0x78
|
DLT_AIRONET_HEADER = 0x78
|
||||||
|
@ -379,11 +395,14 @@ const (
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
DLT_CHDLC = 0x68
|
DLT_CHDLC = 0x68
|
||||||
DLT_CISCO_IOS = 0x76
|
DLT_CISCO_IOS = 0x76
|
||||||
|
DLT_CLASS_NETBSD_RAWAF = 0x2240000
|
||||||
DLT_C_HDLC = 0x68
|
DLT_C_HDLC = 0x68
|
||||||
DLT_C_HDLC_WITH_DIR = 0xcd
|
DLT_C_HDLC_WITH_DIR = 0xcd
|
||||||
DLT_DBUS = 0xe7
|
DLT_DBUS = 0xe7
|
||||||
DLT_DECT = 0xdd
|
DLT_DECT = 0xdd
|
||||||
|
DLT_DISPLAYPORT_AUX = 0x113
|
||||||
DLT_DOCSIS = 0x8f
|
DLT_DOCSIS = 0x8f
|
||||||
|
DLT_DOCSIS31_XRA31 = 0x111
|
||||||
DLT_DVB_CI = 0xeb
|
DLT_DVB_CI = 0xeb
|
||||||
DLT_ECONET = 0x73
|
DLT_ECONET = 0x73
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
|
@ -393,6 +412,7 @@ const (
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
|
DLT_ETHERNET_MPACKET = 0x112
|
||||||
DLT_FC_2 = 0xe0
|
DLT_FC_2 = 0xe0
|
||||||
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
||||||
DLT_FDDI = 0xa
|
DLT_FDDI = 0xa
|
||||||
|
@ -406,7 +426,6 @@ const (
|
||||||
DLT_GPRS_LLC = 0xa9
|
DLT_GPRS_LLC = 0xa9
|
||||||
DLT_GSMTAP_ABIS = 0xda
|
DLT_GSMTAP_ABIS = 0xda
|
||||||
DLT_GSMTAP_UM = 0xd9
|
DLT_GSMTAP_UM = 0xd9
|
||||||
DLT_HHDLC = 0x79
|
|
||||||
DLT_IBM_SN = 0x92
|
DLT_IBM_SN = 0x92
|
||||||
DLT_IBM_SP = 0x91
|
DLT_IBM_SP = 0x91
|
||||||
DLT_IEEE802 = 0x6
|
DLT_IEEE802 = 0x6
|
||||||
|
@ -429,6 +448,7 @@ const (
|
||||||
DLT_IPV4 = 0xe4
|
DLT_IPV4 = 0xe4
|
||||||
DLT_IPV6 = 0xe5
|
DLT_IPV6 = 0xe5
|
||||||
DLT_IP_OVER_FC = 0x7a
|
DLT_IP_OVER_FC = 0x7a
|
||||||
|
DLT_ISO_14443 = 0x108
|
||||||
DLT_JUNIPER_ATM1 = 0x89
|
DLT_JUNIPER_ATM1 = 0x89
|
||||||
DLT_JUNIPER_ATM2 = 0x87
|
DLT_JUNIPER_ATM2 = 0x87
|
||||||
DLT_JUNIPER_ATM_CEMIC = 0xee
|
DLT_JUNIPER_ATM_CEMIC = 0xee
|
||||||
|
@ -461,8 +481,9 @@ const (
|
||||||
DLT_LINUX_PPP_WITHDIRECTION = 0xa6
|
DLT_LINUX_PPP_WITHDIRECTION = 0xa6
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
|
DLT_LORATAP = 0x10e
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
DLT_MATCHING_MAX = 0x104
|
DLT_MATCHING_MAX = 0x113
|
||||||
DLT_MATCHING_MIN = 0x68
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
|
@ -478,14 +499,16 @@ const (
|
||||||
DLT_NFC_LLCP = 0xf5
|
DLT_NFC_LLCP = 0xf5
|
||||||
DLT_NFLOG = 0xef
|
DLT_NFLOG = 0xef
|
||||||
DLT_NG40 = 0xf4
|
DLT_NG40 = 0xf4
|
||||||
|
DLT_NORDIC_BLE = 0x110
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_OPENFLOW = 0x10b
|
||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x79
|
DLT_PFSYNC = 0x79
|
||||||
DLT_PKTAP = 0x102
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0xe
|
||||||
DLT_PPP_ETHER = 0x33
|
DLT_PPP_ETHER = 0x33
|
||||||
DLT_PPP_PPPD = 0xa6
|
DLT_PPP_PPPD = 0xa6
|
||||||
DLT_PPP_SERIAL = 0x32
|
DLT_PPP_SERIAL = 0x32
|
||||||
|
@ -496,19 +519,25 @@ const (
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
|
DLT_RDS = 0x109
|
||||||
|
DLT_REDBACK_SMARTEDGE = 0x20
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
DLT_RTAC_SERIAL = 0xfa
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
DLT_SCTP = 0xf8
|
DLT_SCTP = 0xf8
|
||||||
|
DLT_SDLC = 0x10c
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xd
|
||||||
DLT_STANAG_5066_D_PDU = 0xed
|
DLT_STANAG_5066_D_PDU = 0xed
|
||||||
DLT_SUNATM = 0x7b
|
DLT_SUNATM = 0x7b
|
||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
|
DLT_TI_LLN_SNIFFER = 0x10d
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
DLT_USBPCAP = 0xf9
|
DLT_USBPCAP = 0xf9
|
||||||
|
DLT_USB_DARWIN = 0x10a
|
||||||
|
DLT_USB_FREEBSD = 0xba
|
||||||
DLT_USB_LINUX = 0xbd
|
DLT_USB_LINUX = 0xbd
|
||||||
DLT_USB_LINUX_MMAPPED = 0xdc
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
DLT_USER0 = 0x93
|
DLT_USER0 = 0x93
|
||||||
|
@ -527,10 +556,14 @@ const (
|
||||||
DLT_USER7 = 0x9a
|
DLT_USER7 = 0x9a
|
||||||
DLT_USER8 = 0x9b
|
DLT_USER8 = 0x9b
|
||||||
DLT_USER9 = 0x9c
|
DLT_USER9 = 0x9c
|
||||||
|
DLT_VSOCK = 0x10f
|
||||||
|
DLT_WATTSTOPPER_DLM = 0x107
|
||||||
DLT_WIHART = 0xdf
|
DLT_WIHART = 0xdf
|
||||||
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
||||||
DLT_X2E_SERIAL = 0xd5
|
DLT_X2E_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
|
DLT_ZWAVE_R1_R2 = 0x105
|
||||||
|
DLT_ZWAVE_R3 = 0x106
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -548,6 +581,7 @@ const (
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_EMPTY = -0xd
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_LIO = -0xa
|
EVFILT_LIO = -0xa
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
|
@ -555,11 +589,12 @@ const (
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SENDFILE = -0xc
|
EVFILT_SENDFILE = -0xc
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xc
|
EVFILT_SYSCOUNT = 0xd
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xb
|
EVFILT_USER = -0xb
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
|
EVNAMEMAP_NAME_SIZE = 0x40
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
|
@ -576,6 +611,7 @@ const (
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
|
EXTATTR_MAXNAMELEN = 0xff
|
||||||
EXTATTR_NAMESPACE_EMPTY = 0x0
|
EXTATTR_NAMESPACE_EMPTY = 0x0
|
||||||
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
||||||
EXTATTR_NAMESPACE_USER = 0x1
|
EXTATTR_NAMESPACE_USER = 0x1
|
||||||
|
@ -617,6 +653,7 @@ const (
|
||||||
IEXTEN = 0x400
|
IEXTEN = 0x400
|
||||||
IFAN_ARRIVAL = 0x0
|
IFAN_ARRIVAL = 0x0
|
||||||
IFAN_DEPARTURE = 0x1
|
IFAN_DEPARTURE = 0x1
|
||||||
|
IFCAP_WOL_MAGIC = 0x2000
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
|
@ -633,6 +670,7 @@ const (
|
||||||
IFF_MONITOR = 0x40000
|
IFF_MONITOR = 0x40000
|
||||||
IFF_MULTICAST = 0x8000
|
IFF_MULTICAST = 0x8000
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
|
IFF_NOGROUP = 0x800000
|
||||||
IFF_OACTIVE = 0x400
|
IFF_OACTIVE = 0x400
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PPROMISC = 0x20000
|
IFF_PPROMISC = 0x20000
|
||||||
|
@ -807,6 +845,7 @@ const (
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FLOWID = 0x43
|
IPV6_FLOWID = 0x43
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
|
IPV6_FLOWLABEL_LEN = 0x14
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
IPV6_FLOWTYPE = 0x44
|
IPV6_FLOWTYPE = 0x44
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
|
@ -827,13 +866,13 @@ const (
|
||||||
IPV6_MAX_GROUP_SRC_FILTER = 0x200
|
IPV6_MAX_GROUP_SRC_FILTER = 0x200
|
||||||
IPV6_MAX_MEMBERSHIPS = 0xfff
|
IPV6_MAX_MEMBERSHIPS = 0xfff
|
||||||
IPV6_MAX_SOCK_SRC_FILTER = 0x80
|
IPV6_MAX_SOCK_SRC_FILTER = 0x80
|
||||||
IPV6_MIN_MEMBERSHIPS = 0x1f
|
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MSFILTER = 0x4a
|
IPV6_MSFILTER = 0x4a
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
IPV6_MULTICAST_IF = 0x9
|
IPV6_MULTICAST_IF = 0x9
|
||||||
IPV6_MULTICAST_LOOP = 0xb
|
IPV6_MULTICAST_LOOP = 0xb
|
||||||
IPV6_NEXTHOP = 0x30
|
IPV6_NEXTHOP = 0x30
|
||||||
|
IPV6_ORIGDSTADDR = 0x48
|
||||||
IPV6_PATHMTU = 0x2c
|
IPV6_PATHMTU = 0x2c
|
||||||
IPV6_PKTINFO = 0x2e
|
IPV6_PKTINFO = 0x2e
|
||||||
IPV6_PORTRANGE = 0xe
|
IPV6_PORTRANGE = 0xe
|
||||||
|
@ -845,6 +884,7 @@ const (
|
||||||
IPV6_RECVFLOWID = 0x46
|
IPV6_RECVFLOWID = 0x46
|
||||||
IPV6_RECVHOPLIMIT = 0x25
|
IPV6_RECVHOPLIMIT = 0x25
|
||||||
IPV6_RECVHOPOPTS = 0x27
|
IPV6_RECVHOPOPTS = 0x27
|
||||||
|
IPV6_RECVORIGDSTADDR = 0x48
|
||||||
IPV6_RECVPATHMTU = 0x2b
|
IPV6_RECVPATHMTU = 0x2b
|
||||||
IPV6_RECVPKTINFO = 0x24
|
IPV6_RECVPKTINFO = 0x24
|
||||||
IPV6_RECVRSSBUCKETID = 0x47
|
IPV6_RECVRSSBUCKETID = 0x47
|
||||||
|
@ -905,10 +945,8 @@ const (
|
||||||
IP_MAX_MEMBERSHIPS = 0xfff
|
IP_MAX_MEMBERSHIPS = 0xfff
|
||||||
IP_MAX_SOCK_MUTE_FILTER = 0x80
|
IP_MAX_SOCK_MUTE_FILTER = 0x80
|
||||||
IP_MAX_SOCK_SRC_FILTER = 0x80
|
IP_MAX_SOCK_SRC_FILTER = 0x80
|
||||||
IP_MAX_SOURCE_FILTER = 0x400
|
|
||||||
IP_MF = 0x2000
|
IP_MF = 0x2000
|
||||||
IP_MINTTL = 0x42
|
IP_MINTTL = 0x42
|
||||||
IP_MIN_MEMBERSHIPS = 0x1f
|
|
||||||
IP_MSFILTER = 0x4a
|
IP_MSFILTER = 0x4a
|
||||||
IP_MSS = 0x240
|
IP_MSS = 0x240
|
||||||
IP_MULTICAST_IF = 0x9
|
IP_MULTICAST_IF = 0x9
|
||||||
|
@ -918,6 +956,7 @@ const (
|
||||||
IP_OFFMASK = 0x1fff
|
IP_OFFMASK = 0x1fff
|
||||||
IP_ONESBCAST = 0x17
|
IP_ONESBCAST = 0x17
|
||||||
IP_OPTIONS = 0x1
|
IP_OPTIONS = 0x1
|
||||||
|
IP_ORIGDSTADDR = 0x1b
|
||||||
IP_PORTRANGE = 0x13
|
IP_PORTRANGE = 0x13
|
||||||
IP_PORTRANGE_DEFAULT = 0x0
|
IP_PORTRANGE_DEFAULT = 0x0
|
||||||
IP_PORTRANGE_HIGH = 0x1
|
IP_PORTRANGE_HIGH = 0x1
|
||||||
|
@ -926,6 +965,7 @@ const (
|
||||||
IP_RECVFLOWID = 0x5d
|
IP_RECVFLOWID = 0x5d
|
||||||
IP_RECVIF = 0x14
|
IP_RECVIF = 0x14
|
||||||
IP_RECVOPTS = 0x5
|
IP_RECVOPTS = 0x5
|
||||||
|
IP_RECVORIGDSTADDR = 0x1b
|
||||||
IP_RECVRETOPTS = 0x6
|
IP_RECVRETOPTS = 0x6
|
||||||
IP_RECVRSSBUCKETID = 0x5e
|
IP_RECVRSSBUCKETID = 0x5e
|
||||||
IP_RECVTOS = 0x44
|
IP_RECVTOS = 0x44
|
||||||
|
@ -975,6 +1015,7 @@ const (
|
||||||
MAP_EXCL = 0x4000
|
MAP_EXCL = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_GUARD = 0x2000
|
||||||
MAP_HASSEMAPHORE = 0x200
|
MAP_HASSEMAPHORE = 0x200
|
||||||
MAP_NOCORE = 0x20000
|
MAP_NOCORE = 0x20000
|
||||||
MAP_NOSYNC = 0x800
|
MAP_NOSYNC = 0x800
|
||||||
|
@ -986,6 +1027,15 @@ const (
|
||||||
MAP_RESERVED0100 = 0x100
|
MAP_RESERVED0100 = 0x100
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MAP_STACK = 0x400
|
MAP_STACK = 0x400
|
||||||
|
MCAST_BLOCK_SOURCE = 0x54
|
||||||
|
MCAST_EXCLUDE = 0x2
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x50
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x52
|
||||||
|
MCAST_LEAVE_GROUP = 0x51
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x53
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x55
|
||||||
|
MCAST_UNDEFINED = 0x0
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MNT_ACLS = 0x8000000
|
MNT_ACLS = 0x8000000
|
||||||
|
@ -1026,10 +1076,12 @@ const (
|
||||||
MNT_SUSPEND = 0x4
|
MNT_SUSPEND = 0x4
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UNION = 0x20
|
MNT_UNION = 0x20
|
||||||
|
MNT_UNTRUSTED = 0x800000000
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_UPDATEMASK = 0x2d8d0807e
|
MNT_UPDATEMASK = 0xad8d0807e
|
||||||
MNT_USER = 0x8000
|
MNT_USER = 0x8000
|
||||||
MNT_VISFLAGMASK = 0x3fef0ffff
|
MNT_VERIFIED = 0x400000000
|
||||||
|
MNT_VISFLAGMASK = 0xffef0ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MSG_CMSG_CLOEXEC = 0x40000
|
MSG_CMSG_CLOEXEC = 0x40000
|
||||||
MSG_COMPAT = 0x8000
|
MSG_COMPAT = 0x8000
|
||||||
|
@ -1058,6 +1110,7 @@ const (
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
|
NOTE_ABSTIME = 0x10
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_CLOSE = 0x100
|
NOTE_CLOSE = 0x100
|
||||||
|
@ -1212,7 +1265,6 @@ const (
|
||||||
RTV_WEIGHT = 0x100
|
RTV_WEIGHT = 0x100
|
||||||
RT_ALL_FIBS = -0x1
|
RT_ALL_FIBS = -0x1
|
||||||
RT_BLACKHOLE = 0x40
|
RT_BLACKHOLE = 0x40
|
||||||
RT_CACHING_CONTEXT = 0x1
|
|
||||||
RT_DEFAULT_FIB = 0x0
|
RT_DEFAULT_FIB = 0x0
|
||||||
RT_HAS_GW = 0x80
|
RT_HAS_GW = 0x80
|
||||||
RT_HAS_HEADER = 0x10
|
RT_HAS_HEADER = 0x10
|
||||||
|
@ -1222,15 +1274,17 @@ const (
|
||||||
RT_LLE_CACHE = 0x100
|
RT_LLE_CACHE = 0x100
|
||||||
RT_MAY_LOOP = 0x8
|
RT_MAY_LOOP = 0x8
|
||||||
RT_MAY_LOOP_BIT = 0x3
|
RT_MAY_LOOP_BIT = 0x3
|
||||||
RT_NORTREF = 0x2
|
|
||||||
RT_REJECT = 0x20
|
RT_REJECT = 0x20
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_BINTIME = 0x4
|
SCM_BINTIME = 0x4
|
||||||
SCM_CREDS = 0x3
|
SCM_CREDS = 0x3
|
||||||
|
SCM_MONOTONIC = 0x6
|
||||||
|
SCM_REALTIME = 0x5
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x2
|
SCM_TIMESTAMP = 0x2
|
||||||
|
SCM_TIME_INFO = 0x7
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1246,6 +1300,7 @@ const (
|
||||||
SIOCGETSGCNT = 0xc0147210
|
SIOCGETSGCNT = 0xc0147210
|
||||||
SIOCGETVIFCNT = 0xc014720f
|
SIOCGETVIFCNT = 0xc014720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
|
SIOCGHWADDR = 0xc020693e
|
||||||
SIOCGI2C = 0xc020693d
|
SIOCGI2C = 0xc020693d
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
|
@ -1267,8 +1322,11 @@ const (
|
||||||
SIOCGIFPDSTADDR = 0xc0206948
|
SIOCGIFPDSTADDR = 0xc0206948
|
||||||
SIOCGIFPHYS = 0xc0206935
|
SIOCGIFPHYS = 0xc0206935
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
SIOCGIFPSRCADDR = 0xc0206947
|
||||||
|
SIOCGIFRSSHASH = 0xc0186997
|
||||||
|
SIOCGIFRSSKEY = 0xc0946996
|
||||||
SIOCGIFSTATUS = 0xc331693b
|
SIOCGIFSTATUS = 0xc331693b
|
||||||
SIOCGIFXMEDIA = 0xc028698b
|
SIOCGIFXMEDIA = 0xc028698b
|
||||||
|
SIOCGLANPCP = 0xc0206998
|
||||||
SIOCGLOWAT = 0x40047303
|
SIOCGLOWAT = 0x40047303
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGPRIVATE_0 = 0xc0206950
|
SIOCGPRIVATE_0 = 0xc0206950
|
||||||
|
@ -1299,6 +1357,7 @@ const (
|
||||||
SIOCSIFPHYS = 0x80206936
|
SIOCSIFPHYS = 0x80206936
|
||||||
SIOCSIFRVNET = 0xc020695b
|
SIOCSIFRVNET = 0xc020695b
|
||||||
SIOCSIFVNET = 0xc020695a
|
SIOCSIFVNET = 0xc020695a
|
||||||
|
SIOCSLANPCP = 0x80206999
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSTUNFIB = 0x8020695f
|
SIOCSTUNFIB = 0x8020695f
|
||||||
|
@ -1317,6 +1376,7 @@ const (
|
||||||
SO_BINTIME = 0x2000
|
SO_BINTIME = 0x2000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1019
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
|
@ -1325,6 +1385,7 @@ const (
|
||||||
SO_LISTENINCQLEN = 0x1013
|
SO_LISTENINCQLEN = 0x1013
|
||||||
SO_LISTENQLEN = 0x1012
|
SO_LISTENQLEN = 0x1012
|
||||||
SO_LISTENQLIMIT = 0x1011
|
SO_LISTENQLIMIT = 0x1011
|
||||||
|
SO_MAX_PACING_RATE = 0x1018
|
||||||
SO_NOSIGPIPE = 0x800
|
SO_NOSIGPIPE = 0x800
|
||||||
SO_NO_DDP = 0x8000
|
SO_NO_DDP = 0x8000
|
||||||
SO_NO_OFFLOAD = 0x4000
|
SO_NO_OFFLOAD = 0x4000
|
||||||
|
@ -1337,11 +1398,19 @@ const (
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
|
SO_REUSEPORT_LB = 0x10000
|
||||||
SO_SETFIB = 0x1014
|
SO_SETFIB = 0x1014
|
||||||
SO_SNDBUF = 0x1001
|
SO_SNDBUF = 0x1001
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
SO_TIMESTAMP = 0x400
|
SO_TIMESTAMP = 0x400
|
||||||
|
SO_TS_BINTIME = 0x1
|
||||||
|
SO_TS_CLOCK = 0x1017
|
||||||
|
SO_TS_CLOCK_MAX = 0x3
|
||||||
|
SO_TS_DEFAULT = 0x0
|
||||||
|
SO_TS_MONOTONIC = 0x3
|
||||||
|
SO_TS_REALTIME = 0x2
|
||||||
|
SO_TS_REALTIME_MICRO = 0x0
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
|
@ -1385,10 +1454,45 @@ const (
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
|
TCP_BBR_ACK_COMP_ALG = 0x448
|
||||||
|
TCP_BBR_DRAIN_INC_EXTRA = 0x43c
|
||||||
|
TCP_BBR_DRAIN_PG = 0x42e
|
||||||
|
TCP_BBR_EXTRA_GAIN = 0x449
|
||||||
|
TCP_BBR_IWINTSO = 0x42b
|
||||||
|
TCP_BBR_LOWGAIN_FD = 0x436
|
||||||
|
TCP_BBR_LOWGAIN_HALF = 0x435
|
||||||
|
TCP_BBR_LOWGAIN_THRESH = 0x434
|
||||||
|
TCP_BBR_MAX_RTO = 0x439
|
||||||
|
TCP_BBR_MIN_RTO = 0x438
|
||||||
|
TCP_BBR_ONE_RETRAN = 0x431
|
||||||
|
TCP_BBR_PACE_CROSS = 0x442
|
||||||
|
TCP_BBR_PACE_DEL_TAR = 0x43f
|
||||||
|
TCP_BBR_PACE_PER_SEC = 0x43e
|
||||||
|
TCP_BBR_PACE_SEG_MAX = 0x440
|
||||||
|
TCP_BBR_PACE_SEG_MIN = 0x441
|
||||||
|
TCP_BBR_PROBE_RTT_GAIN = 0x44d
|
||||||
|
TCP_BBR_PROBE_RTT_INT = 0x430
|
||||||
|
TCP_BBR_PROBE_RTT_LEN = 0x44e
|
||||||
|
TCP_BBR_RACK_RTT_USE = 0x44a
|
||||||
|
TCP_BBR_RECFORCE = 0x42c
|
||||||
|
TCP_BBR_REC_OVER_HPTS = 0x43a
|
||||||
|
TCP_BBR_RETRAN_WTSO = 0x44b
|
||||||
|
TCP_BBR_RWND_IS_APP = 0x42f
|
||||||
|
TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d
|
||||||
|
TCP_BBR_STARTUP_LOSS_EXIT = 0x432
|
||||||
|
TCP_BBR_STARTUP_PG = 0x42d
|
||||||
|
TCP_BBR_UNLIMITED = 0x43b
|
||||||
|
TCP_BBR_USEDEL_RATE = 0x437
|
||||||
|
TCP_BBR_USE_LOWGAIN = 0x433
|
||||||
TCP_CA_NAME_MAX = 0x10
|
TCP_CA_NAME_MAX = 0x10
|
||||||
TCP_CCALGOOPT = 0x41
|
TCP_CCALGOOPT = 0x41
|
||||||
TCP_CONGESTION = 0x40
|
TCP_CONGESTION = 0x40
|
||||||
|
TCP_DATA_AFTER_CLOSE = 0x44c
|
||||||
|
TCP_DELACK = 0x48
|
||||||
TCP_FASTOPEN = 0x401
|
TCP_FASTOPEN = 0x401
|
||||||
|
TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10
|
||||||
|
TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4
|
||||||
|
TCP_FASTOPEN_PSK_LEN = 0x10
|
||||||
TCP_FUNCTION_BLK = 0x2000
|
TCP_FUNCTION_BLK = 0x2000
|
||||||
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
||||||
TCP_INFO = 0x20
|
TCP_INFO = 0x20
|
||||||
|
@ -1396,6 +1500,12 @@ const (
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
TCP_KEEPINIT = 0x80
|
TCP_KEEPINIT = 0x80
|
||||||
TCP_KEEPINTVL = 0x200
|
TCP_KEEPINTVL = 0x200
|
||||||
|
TCP_LOG = 0x22
|
||||||
|
TCP_LOGBUF = 0x23
|
||||||
|
TCP_LOGDUMP = 0x25
|
||||||
|
TCP_LOGDUMPID = 0x26
|
||||||
|
TCP_LOGID = 0x24
|
||||||
|
TCP_LOG_ID_LEN = 0x40
|
||||||
TCP_MAXBURST = 0x4
|
TCP_MAXBURST = 0x4
|
||||||
TCP_MAXHLEN = 0x3c
|
TCP_MAXHLEN = 0x3c
|
||||||
TCP_MAXOLEN = 0x28
|
TCP_MAXOLEN = 0x28
|
||||||
|
@ -1411,8 +1521,30 @@ const (
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
TCP_PCAP_IN = 0x1000
|
TCP_PCAP_IN = 0x1000
|
||||||
TCP_PCAP_OUT = 0x800
|
TCP_PCAP_OUT = 0x800
|
||||||
|
TCP_RACK_EARLY_RECOV = 0x423
|
||||||
|
TCP_RACK_EARLY_SEG = 0x424
|
||||||
|
TCP_RACK_IDLE_REDUCE_HIGH = 0x444
|
||||||
|
TCP_RACK_MIN_PACE = 0x445
|
||||||
|
TCP_RACK_MIN_PACE_SEG = 0x446
|
||||||
|
TCP_RACK_MIN_TO = 0x422
|
||||||
|
TCP_RACK_PACE_ALWAYS = 0x41f
|
||||||
|
TCP_RACK_PACE_MAX_SEG = 0x41e
|
||||||
|
TCP_RACK_PACE_REDUCE = 0x41d
|
||||||
|
TCP_RACK_PKT_DELAY = 0x428
|
||||||
|
TCP_RACK_PROP = 0x41b
|
||||||
|
TCP_RACK_PROP_RATE = 0x420
|
||||||
|
TCP_RACK_PRR_SENDALOT = 0x421
|
||||||
|
TCP_RACK_REORD_FADE = 0x426
|
||||||
|
TCP_RACK_REORD_THRESH = 0x425
|
||||||
|
TCP_RACK_SESS_CWV = 0x42a
|
||||||
|
TCP_RACK_TLP_INC_VAR = 0x429
|
||||||
|
TCP_RACK_TLP_REDUCE = 0x41c
|
||||||
|
TCP_RACK_TLP_THRESH = 0x427
|
||||||
|
TCP_RACK_TLP_USE = 0x447
|
||||||
TCP_VENDOR = 0x80000000
|
TCP_VENDOR = 0x80000000
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
|
@ -1476,6 +1608,8 @@ const (
|
||||||
TIOCTIMESTAMP = 0x40087459
|
TIOCTIMESTAMP = 0x40087459
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x1
|
||||||
|
UTIME_OMIT = -0x2
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
|
@ -1487,6 +1621,8 @@ const (
|
||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_BCACHE_SIZE_MAX = 0x70e0000
|
||||||
|
VM_SWZONE_SIZE_MAX = 0x2280000
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
|
|
|
@ -355,6 +355,22 @@ const (
|
||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0x18
|
CTL_MAXNAME = 0x18
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCGATTR = 0xc148648e
|
||||||
|
DIOCGDELETE = 0x80106488
|
||||||
|
DIOCGFLUSH = 0x20006487
|
||||||
|
DIOCGFRONTSTUFF = 0x40086486
|
||||||
|
DIOCGFWHEADS = 0x40046483
|
||||||
|
DIOCGFWSECTORS = 0x40046482
|
||||||
|
DIOCGIDENT = 0x41006489
|
||||||
|
DIOCGMEDIASIZE = 0x40086481
|
||||||
|
DIOCGPHYSPATH = 0x4400648d
|
||||||
|
DIOCGPROVIDERNAME = 0x4400648a
|
||||||
|
DIOCGSECTORSIZE = 0x40046480
|
||||||
|
DIOCGSTRIPEOFFSET = 0x4008648c
|
||||||
|
DIOCGSTRIPESIZE = 0x4008648b
|
||||||
|
DIOCSKERNELDUMP = 0x80506490
|
||||||
|
DIOCSKERNELDUMP_FREEBSD11 = 0x80046485
|
||||||
|
DIOCZONECMD = 0xc080648f
|
||||||
DLT_A429 = 0xb8
|
DLT_A429 = 0xb8
|
||||||
DLT_A653_ICM = 0xb9
|
DLT_A653_ICM = 0xb9
|
||||||
DLT_AIRONET_HEADER = 0x78
|
DLT_AIRONET_HEADER = 0x78
|
||||||
|
@ -379,11 +395,14 @@ const (
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
DLT_CHDLC = 0x68
|
DLT_CHDLC = 0x68
|
||||||
DLT_CISCO_IOS = 0x76
|
DLT_CISCO_IOS = 0x76
|
||||||
|
DLT_CLASS_NETBSD_RAWAF = 0x2240000
|
||||||
DLT_C_HDLC = 0x68
|
DLT_C_HDLC = 0x68
|
||||||
DLT_C_HDLC_WITH_DIR = 0xcd
|
DLT_C_HDLC_WITH_DIR = 0xcd
|
||||||
DLT_DBUS = 0xe7
|
DLT_DBUS = 0xe7
|
||||||
DLT_DECT = 0xdd
|
DLT_DECT = 0xdd
|
||||||
|
DLT_DISPLAYPORT_AUX = 0x113
|
||||||
DLT_DOCSIS = 0x8f
|
DLT_DOCSIS = 0x8f
|
||||||
|
DLT_DOCSIS31_XRA31 = 0x111
|
||||||
DLT_DVB_CI = 0xeb
|
DLT_DVB_CI = 0xeb
|
||||||
DLT_ECONET = 0x73
|
DLT_ECONET = 0x73
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
|
@ -393,6 +412,7 @@ const (
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
|
DLT_ETHERNET_MPACKET = 0x112
|
||||||
DLT_FC_2 = 0xe0
|
DLT_FC_2 = 0xe0
|
||||||
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
||||||
DLT_FDDI = 0xa
|
DLT_FDDI = 0xa
|
||||||
|
@ -406,7 +426,6 @@ const (
|
||||||
DLT_GPRS_LLC = 0xa9
|
DLT_GPRS_LLC = 0xa9
|
||||||
DLT_GSMTAP_ABIS = 0xda
|
DLT_GSMTAP_ABIS = 0xda
|
||||||
DLT_GSMTAP_UM = 0xd9
|
DLT_GSMTAP_UM = 0xd9
|
||||||
DLT_HHDLC = 0x79
|
|
||||||
DLT_IBM_SN = 0x92
|
DLT_IBM_SN = 0x92
|
||||||
DLT_IBM_SP = 0x91
|
DLT_IBM_SP = 0x91
|
||||||
DLT_IEEE802 = 0x6
|
DLT_IEEE802 = 0x6
|
||||||
|
@ -429,6 +448,7 @@ const (
|
||||||
DLT_IPV4 = 0xe4
|
DLT_IPV4 = 0xe4
|
||||||
DLT_IPV6 = 0xe5
|
DLT_IPV6 = 0xe5
|
||||||
DLT_IP_OVER_FC = 0x7a
|
DLT_IP_OVER_FC = 0x7a
|
||||||
|
DLT_ISO_14443 = 0x108
|
||||||
DLT_JUNIPER_ATM1 = 0x89
|
DLT_JUNIPER_ATM1 = 0x89
|
||||||
DLT_JUNIPER_ATM2 = 0x87
|
DLT_JUNIPER_ATM2 = 0x87
|
||||||
DLT_JUNIPER_ATM_CEMIC = 0xee
|
DLT_JUNIPER_ATM_CEMIC = 0xee
|
||||||
|
@ -461,8 +481,9 @@ const (
|
||||||
DLT_LINUX_PPP_WITHDIRECTION = 0xa6
|
DLT_LINUX_PPP_WITHDIRECTION = 0xa6
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
|
DLT_LORATAP = 0x10e
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
DLT_MATCHING_MAX = 0x104
|
DLT_MATCHING_MAX = 0x113
|
||||||
DLT_MATCHING_MIN = 0x68
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
|
@ -478,14 +499,16 @@ const (
|
||||||
DLT_NFC_LLCP = 0xf5
|
DLT_NFC_LLCP = 0xf5
|
||||||
DLT_NFLOG = 0xef
|
DLT_NFLOG = 0xef
|
||||||
DLT_NG40 = 0xf4
|
DLT_NG40 = 0xf4
|
||||||
|
DLT_NORDIC_BLE = 0x110
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_OPENFLOW = 0x10b
|
||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x79
|
DLT_PFSYNC = 0x79
|
||||||
DLT_PKTAP = 0x102
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0xe
|
||||||
DLT_PPP_ETHER = 0x33
|
DLT_PPP_ETHER = 0x33
|
||||||
DLT_PPP_PPPD = 0xa6
|
DLT_PPP_PPPD = 0xa6
|
||||||
DLT_PPP_SERIAL = 0x32
|
DLT_PPP_SERIAL = 0x32
|
||||||
|
@ -496,19 +519,25 @@ const (
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
|
DLT_RDS = 0x109
|
||||||
|
DLT_REDBACK_SMARTEDGE = 0x20
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
DLT_RTAC_SERIAL = 0xfa
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
DLT_SCTP = 0xf8
|
DLT_SCTP = 0xf8
|
||||||
|
DLT_SDLC = 0x10c
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xd
|
||||||
DLT_STANAG_5066_D_PDU = 0xed
|
DLT_STANAG_5066_D_PDU = 0xed
|
||||||
DLT_SUNATM = 0x7b
|
DLT_SUNATM = 0x7b
|
||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
|
DLT_TI_LLN_SNIFFER = 0x10d
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
DLT_USBPCAP = 0xf9
|
DLT_USBPCAP = 0xf9
|
||||||
|
DLT_USB_DARWIN = 0x10a
|
||||||
|
DLT_USB_FREEBSD = 0xba
|
||||||
DLT_USB_LINUX = 0xbd
|
DLT_USB_LINUX = 0xbd
|
||||||
DLT_USB_LINUX_MMAPPED = 0xdc
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
DLT_USER0 = 0x93
|
DLT_USER0 = 0x93
|
||||||
|
@ -527,10 +556,14 @@ const (
|
||||||
DLT_USER7 = 0x9a
|
DLT_USER7 = 0x9a
|
||||||
DLT_USER8 = 0x9b
|
DLT_USER8 = 0x9b
|
||||||
DLT_USER9 = 0x9c
|
DLT_USER9 = 0x9c
|
||||||
|
DLT_VSOCK = 0x10f
|
||||||
|
DLT_WATTSTOPPER_DLM = 0x107
|
||||||
DLT_WIHART = 0xdf
|
DLT_WIHART = 0xdf
|
||||||
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
||||||
DLT_X2E_SERIAL = 0xd5
|
DLT_X2E_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
|
DLT_ZWAVE_R1_R2 = 0x105
|
||||||
|
DLT_ZWAVE_R3 = 0x106
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -548,6 +581,7 @@ const (
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_EMPTY = -0xd
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_LIO = -0xa
|
EVFILT_LIO = -0xa
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
|
@ -555,11 +589,12 @@ const (
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SENDFILE = -0xc
|
EVFILT_SENDFILE = -0xc
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xc
|
EVFILT_SYSCOUNT = 0xd
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xb
|
EVFILT_USER = -0xb
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
|
EVNAMEMAP_NAME_SIZE = 0x40
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
|
@ -576,6 +611,7 @@ const (
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
|
EXTATTR_MAXNAMELEN = 0xff
|
||||||
EXTATTR_NAMESPACE_EMPTY = 0x0
|
EXTATTR_NAMESPACE_EMPTY = 0x0
|
||||||
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
||||||
EXTATTR_NAMESPACE_USER = 0x1
|
EXTATTR_NAMESPACE_USER = 0x1
|
||||||
|
@ -617,6 +653,7 @@ const (
|
||||||
IEXTEN = 0x400
|
IEXTEN = 0x400
|
||||||
IFAN_ARRIVAL = 0x0
|
IFAN_ARRIVAL = 0x0
|
||||||
IFAN_DEPARTURE = 0x1
|
IFAN_DEPARTURE = 0x1
|
||||||
|
IFCAP_WOL_MAGIC = 0x2000
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
|
@ -633,6 +670,7 @@ const (
|
||||||
IFF_MONITOR = 0x40000
|
IFF_MONITOR = 0x40000
|
||||||
IFF_MULTICAST = 0x8000
|
IFF_MULTICAST = 0x8000
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
|
IFF_NOGROUP = 0x800000
|
||||||
IFF_OACTIVE = 0x400
|
IFF_OACTIVE = 0x400
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PPROMISC = 0x20000
|
IFF_PPROMISC = 0x20000
|
||||||
|
@ -807,6 +845,7 @@ const (
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FLOWID = 0x43
|
IPV6_FLOWID = 0x43
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
|
IPV6_FLOWLABEL_LEN = 0x14
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
IPV6_FLOWTYPE = 0x44
|
IPV6_FLOWTYPE = 0x44
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
|
@ -827,13 +866,13 @@ const (
|
||||||
IPV6_MAX_GROUP_SRC_FILTER = 0x200
|
IPV6_MAX_GROUP_SRC_FILTER = 0x200
|
||||||
IPV6_MAX_MEMBERSHIPS = 0xfff
|
IPV6_MAX_MEMBERSHIPS = 0xfff
|
||||||
IPV6_MAX_SOCK_SRC_FILTER = 0x80
|
IPV6_MAX_SOCK_SRC_FILTER = 0x80
|
||||||
IPV6_MIN_MEMBERSHIPS = 0x1f
|
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MSFILTER = 0x4a
|
IPV6_MSFILTER = 0x4a
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
IPV6_MULTICAST_IF = 0x9
|
IPV6_MULTICAST_IF = 0x9
|
||||||
IPV6_MULTICAST_LOOP = 0xb
|
IPV6_MULTICAST_LOOP = 0xb
|
||||||
IPV6_NEXTHOP = 0x30
|
IPV6_NEXTHOP = 0x30
|
||||||
|
IPV6_ORIGDSTADDR = 0x48
|
||||||
IPV6_PATHMTU = 0x2c
|
IPV6_PATHMTU = 0x2c
|
||||||
IPV6_PKTINFO = 0x2e
|
IPV6_PKTINFO = 0x2e
|
||||||
IPV6_PORTRANGE = 0xe
|
IPV6_PORTRANGE = 0xe
|
||||||
|
@ -845,6 +884,7 @@ const (
|
||||||
IPV6_RECVFLOWID = 0x46
|
IPV6_RECVFLOWID = 0x46
|
||||||
IPV6_RECVHOPLIMIT = 0x25
|
IPV6_RECVHOPLIMIT = 0x25
|
||||||
IPV6_RECVHOPOPTS = 0x27
|
IPV6_RECVHOPOPTS = 0x27
|
||||||
|
IPV6_RECVORIGDSTADDR = 0x48
|
||||||
IPV6_RECVPATHMTU = 0x2b
|
IPV6_RECVPATHMTU = 0x2b
|
||||||
IPV6_RECVPKTINFO = 0x24
|
IPV6_RECVPKTINFO = 0x24
|
||||||
IPV6_RECVRSSBUCKETID = 0x47
|
IPV6_RECVRSSBUCKETID = 0x47
|
||||||
|
@ -905,10 +945,8 @@ const (
|
||||||
IP_MAX_MEMBERSHIPS = 0xfff
|
IP_MAX_MEMBERSHIPS = 0xfff
|
||||||
IP_MAX_SOCK_MUTE_FILTER = 0x80
|
IP_MAX_SOCK_MUTE_FILTER = 0x80
|
||||||
IP_MAX_SOCK_SRC_FILTER = 0x80
|
IP_MAX_SOCK_SRC_FILTER = 0x80
|
||||||
IP_MAX_SOURCE_FILTER = 0x400
|
|
||||||
IP_MF = 0x2000
|
IP_MF = 0x2000
|
||||||
IP_MINTTL = 0x42
|
IP_MINTTL = 0x42
|
||||||
IP_MIN_MEMBERSHIPS = 0x1f
|
|
||||||
IP_MSFILTER = 0x4a
|
IP_MSFILTER = 0x4a
|
||||||
IP_MSS = 0x240
|
IP_MSS = 0x240
|
||||||
IP_MULTICAST_IF = 0x9
|
IP_MULTICAST_IF = 0x9
|
||||||
|
@ -918,6 +956,7 @@ const (
|
||||||
IP_OFFMASK = 0x1fff
|
IP_OFFMASK = 0x1fff
|
||||||
IP_ONESBCAST = 0x17
|
IP_ONESBCAST = 0x17
|
||||||
IP_OPTIONS = 0x1
|
IP_OPTIONS = 0x1
|
||||||
|
IP_ORIGDSTADDR = 0x1b
|
||||||
IP_PORTRANGE = 0x13
|
IP_PORTRANGE = 0x13
|
||||||
IP_PORTRANGE_DEFAULT = 0x0
|
IP_PORTRANGE_DEFAULT = 0x0
|
||||||
IP_PORTRANGE_HIGH = 0x1
|
IP_PORTRANGE_HIGH = 0x1
|
||||||
|
@ -926,6 +965,7 @@ const (
|
||||||
IP_RECVFLOWID = 0x5d
|
IP_RECVFLOWID = 0x5d
|
||||||
IP_RECVIF = 0x14
|
IP_RECVIF = 0x14
|
||||||
IP_RECVOPTS = 0x5
|
IP_RECVOPTS = 0x5
|
||||||
|
IP_RECVORIGDSTADDR = 0x1b
|
||||||
IP_RECVRETOPTS = 0x6
|
IP_RECVRETOPTS = 0x6
|
||||||
IP_RECVRSSBUCKETID = 0x5e
|
IP_RECVRSSBUCKETID = 0x5e
|
||||||
IP_RECVTOS = 0x44
|
IP_RECVTOS = 0x44
|
||||||
|
@ -976,6 +1016,7 @@ const (
|
||||||
MAP_EXCL = 0x4000
|
MAP_EXCL = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_GUARD = 0x2000
|
||||||
MAP_HASSEMAPHORE = 0x200
|
MAP_HASSEMAPHORE = 0x200
|
||||||
MAP_NOCORE = 0x20000
|
MAP_NOCORE = 0x20000
|
||||||
MAP_NOSYNC = 0x800
|
MAP_NOSYNC = 0x800
|
||||||
|
@ -987,6 +1028,15 @@ const (
|
||||||
MAP_RESERVED0100 = 0x100
|
MAP_RESERVED0100 = 0x100
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MAP_STACK = 0x400
|
MAP_STACK = 0x400
|
||||||
|
MCAST_BLOCK_SOURCE = 0x54
|
||||||
|
MCAST_EXCLUDE = 0x2
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x50
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x52
|
||||||
|
MCAST_LEAVE_GROUP = 0x51
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x53
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x55
|
||||||
|
MCAST_UNDEFINED = 0x0
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MNT_ACLS = 0x8000000
|
MNT_ACLS = 0x8000000
|
||||||
|
@ -1027,10 +1077,12 @@ const (
|
||||||
MNT_SUSPEND = 0x4
|
MNT_SUSPEND = 0x4
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UNION = 0x20
|
MNT_UNION = 0x20
|
||||||
|
MNT_UNTRUSTED = 0x800000000
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_UPDATEMASK = 0x2d8d0807e
|
MNT_UPDATEMASK = 0xad8d0807e
|
||||||
MNT_USER = 0x8000
|
MNT_USER = 0x8000
|
||||||
MNT_VISFLAGMASK = 0x3fef0ffff
|
MNT_VERIFIED = 0x400000000
|
||||||
|
MNT_VISFLAGMASK = 0xffef0ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MSG_CMSG_CLOEXEC = 0x40000
|
MSG_CMSG_CLOEXEC = 0x40000
|
||||||
MSG_COMPAT = 0x8000
|
MSG_COMPAT = 0x8000
|
||||||
|
@ -1059,6 +1111,7 @@ const (
|
||||||
NFDBITS = 0x40
|
NFDBITS = 0x40
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
|
NOTE_ABSTIME = 0x10
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_CLOSE = 0x100
|
NOTE_CLOSE = 0x100
|
||||||
|
@ -1213,7 +1266,6 @@ const (
|
||||||
RTV_WEIGHT = 0x100
|
RTV_WEIGHT = 0x100
|
||||||
RT_ALL_FIBS = -0x1
|
RT_ALL_FIBS = -0x1
|
||||||
RT_BLACKHOLE = 0x40
|
RT_BLACKHOLE = 0x40
|
||||||
RT_CACHING_CONTEXT = 0x1
|
|
||||||
RT_DEFAULT_FIB = 0x0
|
RT_DEFAULT_FIB = 0x0
|
||||||
RT_HAS_GW = 0x80
|
RT_HAS_GW = 0x80
|
||||||
RT_HAS_HEADER = 0x10
|
RT_HAS_HEADER = 0x10
|
||||||
|
@ -1223,15 +1275,17 @@ const (
|
||||||
RT_LLE_CACHE = 0x100
|
RT_LLE_CACHE = 0x100
|
||||||
RT_MAY_LOOP = 0x8
|
RT_MAY_LOOP = 0x8
|
||||||
RT_MAY_LOOP_BIT = 0x3
|
RT_MAY_LOOP_BIT = 0x3
|
||||||
RT_NORTREF = 0x2
|
|
||||||
RT_REJECT = 0x20
|
RT_REJECT = 0x20
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_BINTIME = 0x4
|
SCM_BINTIME = 0x4
|
||||||
SCM_CREDS = 0x3
|
SCM_CREDS = 0x3
|
||||||
|
SCM_MONOTONIC = 0x6
|
||||||
|
SCM_REALTIME = 0x5
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x2
|
SCM_TIMESTAMP = 0x2
|
||||||
|
SCM_TIME_INFO = 0x7
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1247,6 +1301,7 @@ const (
|
||||||
SIOCGETSGCNT = 0xc0207210
|
SIOCGETSGCNT = 0xc0207210
|
||||||
SIOCGETVIFCNT = 0xc028720f
|
SIOCGETVIFCNT = 0xc028720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
|
SIOCGHWADDR = 0xc020693e
|
||||||
SIOCGI2C = 0xc020693d
|
SIOCGI2C = 0xc020693d
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
|
@ -1268,8 +1323,11 @@ const (
|
||||||
SIOCGIFPDSTADDR = 0xc0206948
|
SIOCGIFPDSTADDR = 0xc0206948
|
||||||
SIOCGIFPHYS = 0xc0206935
|
SIOCGIFPHYS = 0xc0206935
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
SIOCGIFPSRCADDR = 0xc0206947
|
||||||
|
SIOCGIFRSSHASH = 0xc0186997
|
||||||
|
SIOCGIFRSSKEY = 0xc0946996
|
||||||
SIOCGIFSTATUS = 0xc331693b
|
SIOCGIFSTATUS = 0xc331693b
|
||||||
SIOCGIFXMEDIA = 0xc030698b
|
SIOCGIFXMEDIA = 0xc030698b
|
||||||
|
SIOCGLANPCP = 0xc0206998
|
||||||
SIOCGLOWAT = 0x40047303
|
SIOCGLOWAT = 0x40047303
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGPRIVATE_0 = 0xc0206950
|
SIOCGPRIVATE_0 = 0xc0206950
|
||||||
|
@ -1300,6 +1358,7 @@ const (
|
||||||
SIOCSIFPHYS = 0x80206936
|
SIOCSIFPHYS = 0x80206936
|
||||||
SIOCSIFRVNET = 0xc020695b
|
SIOCSIFRVNET = 0xc020695b
|
||||||
SIOCSIFVNET = 0xc020695a
|
SIOCSIFVNET = 0xc020695a
|
||||||
|
SIOCSLANPCP = 0x80206999
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSTUNFIB = 0x8020695f
|
SIOCSTUNFIB = 0x8020695f
|
||||||
|
@ -1318,6 +1377,7 @@ const (
|
||||||
SO_BINTIME = 0x2000
|
SO_BINTIME = 0x2000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1019
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
|
@ -1326,6 +1386,7 @@ const (
|
||||||
SO_LISTENINCQLEN = 0x1013
|
SO_LISTENINCQLEN = 0x1013
|
||||||
SO_LISTENQLEN = 0x1012
|
SO_LISTENQLEN = 0x1012
|
||||||
SO_LISTENQLIMIT = 0x1011
|
SO_LISTENQLIMIT = 0x1011
|
||||||
|
SO_MAX_PACING_RATE = 0x1018
|
||||||
SO_NOSIGPIPE = 0x800
|
SO_NOSIGPIPE = 0x800
|
||||||
SO_NO_DDP = 0x8000
|
SO_NO_DDP = 0x8000
|
||||||
SO_NO_OFFLOAD = 0x4000
|
SO_NO_OFFLOAD = 0x4000
|
||||||
|
@ -1338,11 +1399,19 @@ const (
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
|
SO_REUSEPORT_LB = 0x10000
|
||||||
SO_SETFIB = 0x1014
|
SO_SETFIB = 0x1014
|
||||||
SO_SNDBUF = 0x1001
|
SO_SNDBUF = 0x1001
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
SO_TIMESTAMP = 0x400
|
SO_TIMESTAMP = 0x400
|
||||||
|
SO_TS_BINTIME = 0x1
|
||||||
|
SO_TS_CLOCK = 0x1017
|
||||||
|
SO_TS_CLOCK_MAX = 0x3
|
||||||
|
SO_TS_DEFAULT = 0x0
|
||||||
|
SO_TS_MONOTONIC = 0x3
|
||||||
|
SO_TS_REALTIME = 0x2
|
||||||
|
SO_TS_REALTIME_MICRO = 0x0
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
|
@ -1386,10 +1455,45 @@ const (
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
|
TCP_BBR_ACK_COMP_ALG = 0x448
|
||||||
|
TCP_BBR_DRAIN_INC_EXTRA = 0x43c
|
||||||
|
TCP_BBR_DRAIN_PG = 0x42e
|
||||||
|
TCP_BBR_EXTRA_GAIN = 0x449
|
||||||
|
TCP_BBR_IWINTSO = 0x42b
|
||||||
|
TCP_BBR_LOWGAIN_FD = 0x436
|
||||||
|
TCP_BBR_LOWGAIN_HALF = 0x435
|
||||||
|
TCP_BBR_LOWGAIN_THRESH = 0x434
|
||||||
|
TCP_BBR_MAX_RTO = 0x439
|
||||||
|
TCP_BBR_MIN_RTO = 0x438
|
||||||
|
TCP_BBR_ONE_RETRAN = 0x431
|
||||||
|
TCP_BBR_PACE_CROSS = 0x442
|
||||||
|
TCP_BBR_PACE_DEL_TAR = 0x43f
|
||||||
|
TCP_BBR_PACE_PER_SEC = 0x43e
|
||||||
|
TCP_BBR_PACE_SEG_MAX = 0x440
|
||||||
|
TCP_BBR_PACE_SEG_MIN = 0x441
|
||||||
|
TCP_BBR_PROBE_RTT_GAIN = 0x44d
|
||||||
|
TCP_BBR_PROBE_RTT_INT = 0x430
|
||||||
|
TCP_BBR_PROBE_RTT_LEN = 0x44e
|
||||||
|
TCP_BBR_RACK_RTT_USE = 0x44a
|
||||||
|
TCP_BBR_RECFORCE = 0x42c
|
||||||
|
TCP_BBR_REC_OVER_HPTS = 0x43a
|
||||||
|
TCP_BBR_RETRAN_WTSO = 0x44b
|
||||||
|
TCP_BBR_RWND_IS_APP = 0x42f
|
||||||
|
TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d
|
||||||
|
TCP_BBR_STARTUP_LOSS_EXIT = 0x432
|
||||||
|
TCP_BBR_STARTUP_PG = 0x42d
|
||||||
|
TCP_BBR_UNLIMITED = 0x43b
|
||||||
|
TCP_BBR_USEDEL_RATE = 0x437
|
||||||
|
TCP_BBR_USE_LOWGAIN = 0x433
|
||||||
TCP_CA_NAME_MAX = 0x10
|
TCP_CA_NAME_MAX = 0x10
|
||||||
TCP_CCALGOOPT = 0x41
|
TCP_CCALGOOPT = 0x41
|
||||||
TCP_CONGESTION = 0x40
|
TCP_CONGESTION = 0x40
|
||||||
|
TCP_DATA_AFTER_CLOSE = 0x44c
|
||||||
|
TCP_DELACK = 0x48
|
||||||
TCP_FASTOPEN = 0x401
|
TCP_FASTOPEN = 0x401
|
||||||
|
TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10
|
||||||
|
TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4
|
||||||
|
TCP_FASTOPEN_PSK_LEN = 0x10
|
||||||
TCP_FUNCTION_BLK = 0x2000
|
TCP_FUNCTION_BLK = 0x2000
|
||||||
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
||||||
TCP_INFO = 0x20
|
TCP_INFO = 0x20
|
||||||
|
@ -1397,6 +1501,12 @@ const (
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
TCP_KEEPINIT = 0x80
|
TCP_KEEPINIT = 0x80
|
||||||
TCP_KEEPINTVL = 0x200
|
TCP_KEEPINTVL = 0x200
|
||||||
|
TCP_LOG = 0x22
|
||||||
|
TCP_LOGBUF = 0x23
|
||||||
|
TCP_LOGDUMP = 0x25
|
||||||
|
TCP_LOGDUMPID = 0x26
|
||||||
|
TCP_LOGID = 0x24
|
||||||
|
TCP_LOG_ID_LEN = 0x40
|
||||||
TCP_MAXBURST = 0x4
|
TCP_MAXBURST = 0x4
|
||||||
TCP_MAXHLEN = 0x3c
|
TCP_MAXHLEN = 0x3c
|
||||||
TCP_MAXOLEN = 0x28
|
TCP_MAXOLEN = 0x28
|
||||||
|
@ -1412,8 +1522,30 @@ const (
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
TCP_PCAP_IN = 0x1000
|
TCP_PCAP_IN = 0x1000
|
||||||
TCP_PCAP_OUT = 0x800
|
TCP_PCAP_OUT = 0x800
|
||||||
|
TCP_RACK_EARLY_RECOV = 0x423
|
||||||
|
TCP_RACK_EARLY_SEG = 0x424
|
||||||
|
TCP_RACK_IDLE_REDUCE_HIGH = 0x444
|
||||||
|
TCP_RACK_MIN_PACE = 0x445
|
||||||
|
TCP_RACK_MIN_PACE_SEG = 0x446
|
||||||
|
TCP_RACK_MIN_TO = 0x422
|
||||||
|
TCP_RACK_PACE_ALWAYS = 0x41f
|
||||||
|
TCP_RACK_PACE_MAX_SEG = 0x41e
|
||||||
|
TCP_RACK_PACE_REDUCE = 0x41d
|
||||||
|
TCP_RACK_PKT_DELAY = 0x428
|
||||||
|
TCP_RACK_PROP = 0x41b
|
||||||
|
TCP_RACK_PROP_RATE = 0x420
|
||||||
|
TCP_RACK_PRR_SENDALOT = 0x421
|
||||||
|
TCP_RACK_REORD_FADE = 0x426
|
||||||
|
TCP_RACK_REORD_THRESH = 0x425
|
||||||
|
TCP_RACK_SESS_CWV = 0x42a
|
||||||
|
TCP_RACK_TLP_INC_VAR = 0x429
|
||||||
|
TCP_RACK_TLP_REDUCE = 0x41c
|
||||||
|
TCP_RACK_TLP_THRESH = 0x427
|
||||||
|
TCP_RACK_TLP_USE = 0x447
|
||||||
TCP_VENDOR = 0x80000000
|
TCP_VENDOR = 0x80000000
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
|
@ -1477,6 +1609,8 @@ const (
|
||||||
TIOCTIMESTAMP = 0x40107459
|
TIOCTIMESTAMP = 0x40107459
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x1
|
||||||
|
UTIME_OMIT = -0x2
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
|
|
|
@ -355,6 +355,22 @@ const (
|
||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0x18
|
CTL_MAXNAME = 0x18
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCGATTR = 0xc144648e
|
||||||
|
DIOCGDELETE = 0x80106488
|
||||||
|
DIOCGFLUSH = 0x20006487
|
||||||
|
DIOCGFRONTSTUFF = 0x40086486
|
||||||
|
DIOCGFWHEADS = 0x40046483
|
||||||
|
DIOCGFWSECTORS = 0x40046482
|
||||||
|
DIOCGIDENT = 0x41006489
|
||||||
|
DIOCGMEDIASIZE = 0x40086481
|
||||||
|
DIOCGPHYSPATH = 0x4400648d
|
||||||
|
DIOCGPROVIDERNAME = 0x4400648a
|
||||||
|
DIOCGSECTORSIZE = 0x40046480
|
||||||
|
DIOCGSTRIPEOFFSET = 0x4008648c
|
||||||
|
DIOCGSTRIPESIZE = 0x4008648b
|
||||||
|
DIOCSKERNELDUMP = 0x804c6490
|
||||||
|
DIOCSKERNELDUMP_FREEBSD11 = 0x80046485
|
||||||
|
DIOCZONECMD = 0xc06c648f
|
||||||
DLT_A429 = 0xb8
|
DLT_A429 = 0xb8
|
||||||
DLT_A653_ICM = 0xb9
|
DLT_A653_ICM = 0xb9
|
||||||
DLT_AIRONET_HEADER = 0x78
|
DLT_AIRONET_HEADER = 0x78
|
||||||
|
|
|
@ -355,6 +355,22 @@ const (
|
||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0x18
|
CTL_MAXNAME = 0x18
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCGATTR = 0xc148648e
|
||||||
|
DIOCGDELETE = 0x80106488
|
||||||
|
DIOCGFLUSH = 0x20006487
|
||||||
|
DIOCGFRONTSTUFF = 0x40086486
|
||||||
|
DIOCGFWHEADS = 0x40046483
|
||||||
|
DIOCGFWSECTORS = 0x40046482
|
||||||
|
DIOCGIDENT = 0x41006489
|
||||||
|
DIOCGMEDIASIZE = 0x40086481
|
||||||
|
DIOCGPHYSPATH = 0x4400648d
|
||||||
|
DIOCGPROVIDERNAME = 0x4400648a
|
||||||
|
DIOCGSECTORSIZE = 0x40046480
|
||||||
|
DIOCGSTRIPEOFFSET = 0x4008648c
|
||||||
|
DIOCGSTRIPESIZE = 0x4008648b
|
||||||
|
DIOCSKERNELDUMP = 0x80506490
|
||||||
|
DIOCSKERNELDUMP_FREEBSD11 = 0x80046485
|
||||||
|
DIOCZONECMD = 0xc080648f
|
||||||
DLT_A429 = 0xb8
|
DLT_A429 = 0xb8
|
||||||
DLT_A653_ICM = 0xb9
|
DLT_A653_ICM = 0xb9
|
||||||
DLT_AIRONET_HEADER = 0x78
|
DLT_AIRONET_HEADER = 0x78
|
||||||
|
@ -379,11 +395,14 @@ const (
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
DLT_CHDLC = 0x68
|
DLT_CHDLC = 0x68
|
||||||
DLT_CISCO_IOS = 0x76
|
DLT_CISCO_IOS = 0x76
|
||||||
|
DLT_CLASS_NETBSD_RAWAF = 0x2240000
|
||||||
DLT_C_HDLC = 0x68
|
DLT_C_HDLC = 0x68
|
||||||
DLT_C_HDLC_WITH_DIR = 0xcd
|
DLT_C_HDLC_WITH_DIR = 0xcd
|
||||||
DLT_DBUS = 0xe7
|
DLT_DBUS = 0xe7
|
||||||
DLT_DECT = 0xdd
|
DLT_DECT = 0xdd
|
||||||
|
DLT_DISPLAYPORT_AUX = 0x113
|
||||||
DLT_DOCSIS = 0x8f
|
DLT_DOCSIS = 0x8f
|
||||||
|
DLT_DOCSIS31_XRA31 = 0x111
|
||||||
DLT_DVB_CI = 0xeb
|
DLT_DVB_CI = 0xeb
|
||||||
DLT_ECONET = 0x73
|
DLT_ECONET = 0x73
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
|
@ -393,6 +412,7 @@ const (
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
|
DLT_ETHERNET_MPACKET = 0x112
|
||||||
DLT_FC_2 = 0xe0
|
DLT_FC_2 = 0xe0
|
||||||
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
||||||
DLT_FDDI = 0xa
|
DLT_FDDI = 0xa
|
||||||
|
@ -406,7 +426,6 @@ const (
|
||||||
DLT_GPRS_LLC = 0xa9
|
DLT_GPRS_LLC = 0xa9
|
||||||
DLT_GSMTAP_ABIS = 0xda
|
DLT_GSMTAP_ABIS = 0xda
|
||||||
DLT_GSMTAP_UM = 0xd9
|
DLT_GSMTAP_UM = 0xd9
|
||||||
DLT_HHDLC = 0x79
|
|
||||||
DLT_IBM_SN = 0x92
|
DLT_IBM_SN = 0x92
|
||||||
DLT_IBM_SP = 0x91
|
DLT_IBM_SP = 0x91
|
||||||
DLT_IEEE802 = 0x6
|
DLT_IEEE802 = 0x6
|
||||||
|
@ -429,6 +448,7 @@ const (
|
||||||
DLT_IPV4 = 0xe4
|
DLT_IPV4 = 0xe4
|
||||||
DLT_IPV6 = 0xe5
|
DLT_IPV6 = 0xe5
|
||||||
DLT_IP_OVER_FC = 0x7a
|
DLT_IP_OVER_FC = 0x7a
|
||||||
|
DLT_ISO_14443 = 0x108
|
||||||
DLT_JUNIPER_ATM1 = 0x89
|
DLT_JUNIPER_ATM1 = 0x89
|
||||||
DLT_JUNIPER_ATM2 = 0x87
|
DLT_JUNIPER_ATM2 = 0x87
|
||||||
DLT_JUNIPER_ATM_CEMIC = 0xee
|
DLT_JUNIPER_ATM_CEMIC = 0xee
|
||||||
|
@ -461,8 +481,9 @@ const (
|
||||||
DLT_LINUX_PPP_WITHDIRECTION = 0xa6
|
DLT_LINUX_PPP_WITHDIRECTION = 0xa6
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
|
DLT_LORATAP = 0x10e
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
DLT_MATCHING_MAX = 0x104
|
DLT_MATCHING_MAX = 0x113
|
||||||
DLT_MATCHING_MIN = 0x68
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
|
@ -478,14 +499,16 @@ const (
|
||||||
DLT_NFC_LLCP = 0xf5
|
DLT_NFC_LLCP = 0xf5
|
||||||
DLT_NFLOG = 0xef
|
DLT_NFLOG = 0xef
|
||||||
DLT_NG40 = 0xf4
|
DLT_NG40 = 0xf4
|
||||||
|
DLT_NORDIC_BLE = 0x110
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_OPENFLOW = 0x10b
|
||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x79
|
DLT_PFSYNC = 0x79
|
||||||
DLT_PKTAP = 0x102
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0xe
|
||||||
DLT_PPP_ETHER = 0x33
|
DLT_PPP_ETHER = 0x33
|
||||||
DLT_PPP_PPPD = 0xa6
|
DLT_PPP_PPPD = 0xa6
|
||||||
DLT_PPP_SERIAL = 0x32
|
DLT_PPP_SERIAL = 0x32
|
||||||
|
@ -496,19 +519,25 @@ const (
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
|
DLT_RDS = 0x109
|
||||||
|
DLT_REDBACK_SMARTEDGE = 0x20
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
DLT_RTAC_SERIAL = 0xfa
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
DLT_SCTP = 0xf8
|
DLT_SCTP = 0xf8
|
||||||
|
DLT_SDLC = 0x10c
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xd
|
||||||
DLT_STANAG_5066_D_PDU = 0xed
|
DLT_STANAG_5066_D_PDU = 0xed
|
||||||
DLT_SUNATM = 0x7b
|
DLT_SUNATM = 0x7b
|
||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
|
DLT_TI_LLN_SNIFFER = 0x10d
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
DLT_USBPCAP = 0xf9
|
DLT_USBPCAP = 0xf9
|
||||||
|
DLT_USB_DARWIN = 0x10a
|
||||||
|
DLT_USB_FREEBSD = 0xba
|
||||||
DLT_USB_LINUX = 0xbd
|
DLT_USB_LINUX = 0xbd
|
||||||
DLT_USB_LINUX_MMAPPED = 0xdc
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
DLT_USER0 = 0x93
|
DLT_USER0 = 0x93
|
||||||
|
@ -527,10 +556,14 @@ const (
|
||||||
DLT_USER7 = 0x9a
|
DLT_USER7 = 0x9a
|
||||||
DLT_USER8 = 0x9b
|
DLT_USER8 = 0x9b
|
||||||
DLT_USER9 = 0x9c
|
DLT_USER9 = 0x9c
|
||||||
|
DLT_VSOCK = 0x10f
|
||||||
|
DLT_WATTSTOPPER_DLM = 0x107
|
||||||
DLT_WIHART = 0xdf
|
DLT_WIHART = 0xdf
|
||||||
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
||||||
DLT_X2E_SERIAL = 0xd5
|
DLT_X2E_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
|
DLT_ZWAVE_R1_R2 = 0x105
|
||||||
|
DLT_ZWAVE_R3 = 0x106
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -548,6 +581,7 @@ const (
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_EMPTY = -0xd
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_LIO = -0xa
|
EVFILT_LIO = -0xa
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
|
@ -555,11 +589,12 @@ const (
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SENDFILE = -0xc
|
EVFILT_SENDFILE = -0xc
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xc
|
EVFILT_SYSCOUNT = 0xd
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xb
|
EVFILT_USER = -0xb
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
|
EVNAMEMAP_NAME_SIZE = 0x40
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
|
@ -576,6 +611,7 @@ const (
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
|
EXTATTR_MAXNAMELEN = 0xff
|
||||||
EXTATTR_NAMESPACE_EMPTY = 0x0
|
EXTATTR_NAMESPACE_EMPTY = 0x0
|
||||||
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
||||||
EXTATTR_NAMESPACE_USER = 0x1
|
EXTATTR_NAMESPACE_USER = 0x1
|
||||||
|
@ -617,6 +653,7 @@ const (
|
||||||
IEXTEN = 0x400
|
IEXTEN = 0x400
|
||||||
IFAN_ARRIVAL = 0x0
|
IFAN_ARRIVAL = 0x0
|
||||||
IFAN_DEPARTURE = 0x1
|
IFAN_DEPARTURE = 0x1
|
||||||
|
IFCAP_WOL_MAGIC = 0x2000
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
|
@ -633,6 +670,7 @@ const (
|
||||||
IFF_MONITOR = 0x40000
|
IFF_MONITOR = 0x40000
|
||||||
IFF_MULTICAST = 0x8000
|
IFF_MULTICAST = 0x8000
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
|
IFF_NOGROUP = 0x800000
|
||||||
IFF_OACTIVE = 0x400
|
IFF_OACTIVE = 0x400
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PPROMISC = 0x20000
|
IFF_PPROMISC = 0x20000
|
||||||
|
@ -807,6 +845,7 @@ const (
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FLOWID = 0x43
|
IPV6_FLOWID = 0x43
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
|
IPV6_FLOWLABEL_LEN = 0x14
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
IPV6_FLOWTYPE = 0x44
|
IPV6_FLOWTYPE = 0x44
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
|
@ -827,13 +866,13 @@ const (
|
||||||
IPV6_MAX_GROUP_SRC_FILTER = 0x200
|
IPV6_MAX_GROUP_SRC_FILTER = 0x200
|
||||||
IPV6_MAX_MEMBERSHIPS = 0xfff
|
IPV6_MAX_MEMBERSHIPS = 0xfff
|
||||||
IPV6_MAX_SOCK_SRC_FILTER = 0x80
|
IPV6_MAX_SOCK_SRC_FILTER = 0x80
|
||||||
IPV6_MIN_MEMBERSHIPS = 0x1f
|
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MSFILTER = 0x4a
|
IPV6_MSFILTER = 0x4a
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
IPV6_MULTICAST_IF = 0x9
|
IPV6_MULTICAST_IF = 0x9
|
||||||
IPV6_MULTICAST_LOOP = 0xb
|
IPV6_MULTICAST_LOOP = 0xb
|
||||||
IPV6_NEXTHOP = 0x30
|
IPV6_NEXTHOP = 0x30
|
||||||
|
IPV6_ORIGDSTADDR = 0x48
|
||||||
IPV6_PATHMTU = 0x2c
|
IPV6_PATHMTU = 0x2c
|
||||||
IPV6_PKTINFO = 0x2e
|
IPV6_PKTINFO = 0x2e
|
||||||
IPV6_PORTRANGE = 0xe
|
IPV6_PORTRANGE = 0xe
|
||||||
|
@ -845,6 +884,7 @@ const (
|
||||||
IPV6_RECVFLOWID = 0x46
|
IPV6_RECVFLOWID = 0x46
|
||||||
IPV6_RECVHOPLIMIT = 0x25
|
IPV6_RECVHOPLIMIT = 0x25
|
||||||
IPV6_RECVHOPOPTS = 0x27
|
IPV6_RECVHOPOPTS = 0x27
|
||||||
|
IPV6_RECVORIGDSTADDR = 0x48
|
||||||
IPV6_RECVPATHMTU = 0x2b
|
IPV6_RECVPATHMTU = 0x2b
|
||||||
IPV6_RECVPKTINFO = 0x24
|
IPV6_RECVPKTINFO = 0x24
|
||||||
IPV6_RECVRSSBUCKETID = 0x47
|
IPV6_RECVRSSBUCKETID = 0x47
|
||||||
|
@ -905,10 +945,8 @@ const (
|
||||||
IP_MAX_MEMBERSHIPS = 0xfff
|
IP_MAX_MEMBERSHIPS = 0xfff
|
||||||
IP_MAX_SOCK_MUTE_FILTER = 0x80
|
IP_MAX_SOCK_MUTE_FILTER = 0x80
|
||||||
IP_MAX_SOCK_SRC_FILTER = 0x80
|
IP_MAX_SOCK_SRC_FILTER = 0x80
|
||||||
IP_MAX_SOURCE_FILTER = 0x400
|
|
||||||
IP_MF = 0x2000
|
IP_MF = 0x2000
|
||||||
IP_MINTTL = 0x42
|
IP_MINTTL = 0x42
|
||||||
IP_MIN_MEMBERSHIPS = 0x1f
|
|
||||||
IP_MSFILTER = 0x4a
|
IP_MSFILTER = 0x4a
|
||||||
IP_MSS = 0x240
|
IP_MSS = 0x240
|
||||||
IP_MULTICAST_IF = 0x9
|
IP_MULTICAST_IF = 0x9
|
||||||
|
@ -918,6 +956,7 @@ const (
|
||||||
IP_OFFMASK = 0x1fff
|
IP_OFFMASK = 0x1fff
|
||||||
IP_ONESBCAST = 0x17
|
IP_ONESBCAST = 0x17
|
||||||
IP_OPTIONS = 0x1
|
IP_OPTIONS = 0x1
|
||||||
|
IP_ORIGDSTADDR = 0x1b
|
||||||
IP_PORTRANGE = 0x13
|
IP_PORTRANGE = 0x13
|
||||||
IP_PORTRANGE_DEFAULT = 0x0
|
IP_PORTRANGE_DEFAULT = 0x0
|
||||||
IP_PORTRANGE_HIGH = 0x1
|
IP_PORTRANGE_HIGH = 0x1
|
||||||
|
@ -926,6 +965,7 @@ const (
|
||||||
IP_RECVFLOWID = 0x5d
|
IP_RECVFLOWID = 0x5d
|
||||||
IP_RECVIF = 0x14
|
IP_RECVIF = 0x14
|
||||||
IP_RECVOPTS = 0x5
|
IP_RECVOPTS = 0x5
|
||||||
|
IP_RECVORIGDSTADDR = 0x1b
|
||||||
IP_RECVRETOPTS = 0x6
|
IP_RECVRETOPTS = 0x6
|
||||||
IP_RECVRSSBUCKETID = 0x5e
|
IP_RECVRSSBUCKETID = 0x5e
|
||||||
IP_RECVTOS = 0x44
|
IP_RECVTOS = 0x44
|
||||||
|
@ -976,6 +1016,7 @@ const (
|
||||||
MAP_EXCL = 0x4000
|
MAP_EXCL = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_GUARD = 0x2000
|
||||||
MAP_HASSEMAPHORE = 0x200
|
MAP_HASSEMAPHORE = 0x200
|
||||||
MAP_NOCORE = 0x20000
|
MAP_NOCORE = 0x20000
|
||||||
MAP_NOSYNC = 0x800
|
MAP_NOSYNC = 0x800
|
||||||
|
@ -987,6 +1028,15 @@ const (
|
||||||
MAP_RESERVED0100 = 0x100
|
MAP_RESERVED0100 = 0x100
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MAP_STACK = 0x400
|
MAP_STACK = 0x400
|
||||||
|
MCAST_BLOCK_SOURCE = 0x54
|
||||||
|
MCAST_EXCLUDE = 0x2
|
||||||
|
MCAST_INCLUDE = 0x1
|
||||||
|
MCAST_JOIN_GROUP = 0x50
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 0x52
|
||||||
|
MCAST_LEAVE_GROUP = 0x51
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 0x53
|
||||||
|
MCAST_UNBLOCK_SOURCE = 0x55
|
||||||
|
MCAST_UNDEFINED = 0x0
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MNT_ACLS = 0x8000000
|
MNT_ACLS = 0x8000000
|
||||||
|
@ -1027,10 +1077,12 @@ const (
|
||||||
MNT_SUSPEND = 0x4
|
MNT_SUSPEND = 0x4
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UNION = 0x20
|
MNT_UNION = 0x20
|
||||||
|
MNT_UNTRUSTED = 0x800000000
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_UPDATEMASK = 0x2d8d0807e
|
MNT_UPDATEMASK = 0xad8d0807e
|
||||||
MNT_USER = 0x8000
|
MNT_USER = 0x8000
|
||||||
MNT_VISFLAGMASK = 0x3fef0ffff
|
MNT_VERIFIED = 0x400000000
|
||||||
|
MNT_VISFLAGMASK = 0xffef0ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MSG_CMSG_CLOEXEC = 0x40000
|
MSG_CMSG_CLOEXEC = 0x40000
|
||||||
MSG_COMPAT = 0x8000
|
MSG_COMPAT = 0x8000
|
||||||
|
@ -1059,6 +1111,7 @@ const (
|
||||||
NFDBITS = 0x40
|
NFDBITS = 0x40
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
NOKERNINFO = 0x2000000
|
NOKERNINFO = 0x2000000
|
||||||
|
NOTE_ABSTIME = 0x10
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_CLOSE = 0x100
|
NOTE_CLOSE = 0x100
|
||||||
|
@ -1213,7 +1266,6 @@ const (
|
||||||
RTV_WEIGHT = 0x100
|
RTV_WEIGHT = 0x100
|
||||||
RT_ALL_FIBS = -0x1
|
RT_ALL_FIBS = -0x1
|
||||||
RT_BLACKHOLE = 0x40
|
RT_BLACKHOLE = 0x40
|
||||||
RT_CACHING_CONTEXT = 0x1
|
|
||||||
RT_DEFAULT_FIB = 0x0
|
RT_DEFAULT_FIB = 0x0
|
||||||
RT_HAS_GW = 0x80
|
RT_HAS_GW = 0x80
|
||||||
RT_HAS_HEADER = 0x10
|
RT_HAS_HEADER = 0x10
|
||||||
|
@ -1223,15 +1275,17 @@ const (
|
||||||
RT_LLE_CACHE = 0x100
|
RT_LLE_CACHE = 0x100
|
||||||
RT_MAY_LOOP = 0x8
|
RT_MAY_LOOP = 0x8
|
||||||
RT_MAY_LOOP_BIT = 0x3
|
RT_MAY_LOOP_BIT = 0x3
|
||||||
RT_NORTREF = 0x2
|
|
||||||
RT_REJECT = 0x20
|
RT_REJECT = 0x20
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_BINTIME = 0x4
|
SCM_BINTIME = 0x4
|
||||||
SCM_CREDS = 0x3
|
SCM_CREDS = 0x3
|
||||||
|
SCM_MONOTONIC = 0x6
|
||||||
|
SCM_REALTIME = 0x5
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x2
|
SCM_TIMESTAMP = 0x2
|
||||||
|
SCM_TIME_INFO = 0x7
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1247,6 +1301,7 @@ const (
|
||||||
SIOCGETSGCNT = 0xc0207210
|
SIOCGETSGCNT = 0xc0207210
|
||||||
SIOCGETVIFCNT = 0xc028720f
|
SIOCGETVIFCNT = 0xc028720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
|
SIOCGHWADDR = 0xc020693e
|
||||||
SIOCGI2C = 0xc020693d
|
SIOCGI2C = 0xc020693d
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
|
@ -1268,8 +1323,11 @@ const (
|
||||||
SIOCGIFPDSTADDR = 0xc0206948
|
SIOCGIFPDSTADDR = 0xc0206948
|
||||||
SIOCGIFPHYS = 0xc0206935
|
SIOCGIFPHYS = 0xc0206935
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
SIOCGIFPSRCADDR = 0xc0206947
|
||||||
|
SIOCGIFRSSHASH = 0xc0186997
|
||||||
|
SIOCGIFRSSKEY = 0xc0946996
|
||||||
SIOCGIFSTATUS = 0xc331693b
|
SIOCGIFSTATUS = 0xc331693b
|
||||||
SIOCGIFXMEDIA = 0xc030698b
|
SIOCGIFXMEDIA = 0xc030698b
|
||||||
|
SIOCGLANPCP = 0xc0206998
|
||||||
SIOCGLOWAT = 0x40047303
|
SIOCGLOWAT = 0x40047303
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGPRIVATE_0 = 0xc0206950
|
SIOCGPRIVATE_0 = 0xc0206950
|
||||||
|
@ -1300,6 +1358,7 @@ const (
|
||||||
SIOCSIFPHYS = 0x80206936
|
SIOCSIFPHYS = 0x80206936
|
||||||
SIOCSIFRVNET = 0xc020695b
|
SIOCSIFRVNET = 0xc020695b
|
||||||
SIOCSIFVNET = 0xc020695a
|
SIOCSIFVNET = 0xc020695a
|
||||||
|
SIOCSLANPCP = 0x80206999
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSTUNFIB = 0x8020695f
|
SIOCSTUNFIB = 0x8020695f
|
||||||
|
@ -1318,6 +1377,7 @@ const (
|
||||||
SO_BINTIME = 0x2000
|
SO_BINTIME = 0x2000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1019
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
|
@ -1326,6 +1386,7 @@ const (
|
||||||
SO_LISTENINCQLEN = 0x1013
|
SO_LISTENINCQLEN = 0x1013
|
||||||
SO_LISTENQLEN = 0x1012
|
SO_LISTENQLEN = 0x1012
|
||||||
SO_LISTENQLIMIT = 0x1011
|
SO_LISTENQLIMIT = 0x1011
|
||||||
|
SO_MAX_PACING_RATE = 0x1018
|
||||||
SO_NOSIGPIPE = 0x800
|
SO_NOSIGPIPE = 0x800
|
||||||
SO_NO_DDP = 0x8000
|
SO_NO_DDP = 0x8000
|
||||||
SO_NO_OFFLOAD = 0x4000
|
SO_NO_OFFLOAD = 0x4000
|
||||||
|
@ -1338,11 +1399,19 @@ const (
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
|
SO_REUSEPORT_LB = 0x10000
|
||||||
SO_SETFIB = 0x1014
|
SO_SETFIB = 0x1014
|
||||||
SO_SNDBUF = 0x1001
|
SO_SNDBUF = 0x1001
|
||||||
SO_SNDLOWAT = 0x1003
|
SO_SNDLOWAT = 0x1003
|
||||||
SO_SNDTIMEO = 0x1005
|
SO_SNDTIMEO = 0x1005
|
||||||
SO_TIMESTAMP = 0x400
|
SO_TIMESTAMP = 0x400
|
||||||
|
SO_TS_BINTIME = 0x1
|
||||||
|
SO_TS_CLOCK = 0x1017
|
||||||
|
SO_TS_CLOCK_MAX = 0x3
|
||||||
|
SO_TS_DEFAULT = 0x0
|
||||||
|
SO_TS_MONOTONIC = 0x3
|
||||||
|
SO_TS_REALTIME = 0x2
|
||||||
|
SO_TS_REALTIME_MICRO = 0x0
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
|
@ -1386,10 +1455,45 @@ const (
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
|
TCP_BBR_ACK_COMP_ALG = 0x448
|
||||||
|
TCP_BBR_DRAIN_INC_EXTRA = 0x43c
|
||||||
|
TCP_BBR_DRAIN_PG = 0x42e
|
||||||
|
TCP_BBR_EXTRA_GAIN = 0x449
|
||||||
|
TCP_BBR_IWINTSO = 0x42b
|
||||||
|
TCP_BBR_LOWGAIN_FD = 0x436
|
||||||
|
TCP_BBR_LOWGAIN_HALF = 0x435
|
||||||
|
TCP_BBR_LOWGAIN_THRESH = 0x434
|
||||||
|
TCP_BBR_MAX_RTO = 0x439
|
||||||
|
TCP_BBR_MIN_RTO = 0x438
|
||||||
|
TCP_BBR_ONE_RETRAN = 0x431
|
||||||
|
TCP_BBR_PACE_CROSS = 0x442
|
||||||
|
TCP_BBR_PACE_DEL_TAR = 0x43f
|
||||||
|
TCP_BBR_PACE_PER_SEC = 0x43e
|
||||||
|
TCP_BBR_PACE_SEG_MAX = 0x440
|
||||||
|
TCP_BBR_PACE_SEG_MIN = 0x441
|
||||||
|
TCP_BBR_PROBE_RTT_GAIN = 0x44d
|
||||||
|
TCP_BBR_PROBE_RTT_INT = 0x430
|
||||||
|
TCP_BBR_PROBE_RTT_LEN = 0x44e
|
||||||
|
TCP_BBR_RACK_RTT_USE = 0x44a
|
||||||
|
TCP_BBR_RECFORCE = 0x42c
|
||||||
|
TCP_BBR_REC_OVER_HPTS = 0x43a
|
||||||
|
TCP_BBR_RETRAN_WTSO = 0x44b
|
||||||
|
TCP_BBR_RWND_IS_APP = 0x42f
|
||||||
|
TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d
|
||||||
|
TCP_BBR_STARTUP_LOSS_EXIT = 0x432
|
||||||
|
TCP_BBR_STARTUP_PG = 0x42d
|
||||||
|
TCP_BBR_UNLIMITED = 0x43b
|
||||||
|
TCP_BBR_USEDEL_RATE = 0x437
|
||||||
|
TCP_BBR_USE_LOWGAIN = 0x433
|
||||||
TCP_CA_NAME_MAX = 0x10
|
TCP_CA_NAME_MAX = 0x10
|
||||||
TCP_CCALGOOPT = 0x41
|
TCP_CCALGOOPT = 0x41
|
||||||
TCP_CONGESTION = 0x40
|
TCP_CONGESTION = 0x40
|
||||||
|
TCP_DATA_AFTER_CLOSE = 0x44c
|
||||||
|
TCP_DELACK = 0x48
|
||||||
TCP_FASTOPEN = 0x401
|
TCP_FASTOPEN = 0x401
|
||||||
|
TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10
|
||||||
|
TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4
|
||||||
|
TCP_FASTOPEN_PSK_LEN = 0x10
|
||||||
TCP_FUNCTION_BLK = 0x2000
|
TCP_FUNCTION_BLK = 0x2000
|
||||||
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
||||||
TCP_INFO = 0x20
|
TCP_INFO = 0x20
|
||||||
|
@ -1397,6 +1501,12 @@ const (
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
TCP_KEEPINIT = 0x80
|
TCP_KEEPINIT = 0x80
|
||||||
TCP_KEEPINTVL = 0x200
|
TCP_KEEPINTVL = 0x200
|
||||||
|
TCP_LOG = 0x22
|
||||||
|
TCP_LOGBUF = 0x23
|
||||||
|
TCP_LOGDUMP = 0x25
|
||||||
|
TCP_LOGDUMPID = 0x26
|
||||||
|
TCP_LOGID = 0x24
|
||||||
|
TCP_LOG_ID_LEN = 0x40
|
||||||
TCP_MAXBURST = 0x4
|
TCP_MAXBURST = 0x4
|
||||||
TCP_MAXHLEN = 0x3c
|
TCP_MAXHLEN = 0x3c
|
||||||
TCP_MAXOLEN = 0x28
|
TCP_MAXOLEN = 0x28
|
||||||
|
@ -1412,8 +1522,30 @@ const (
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
TCP_PCAP_IN = 0x1000
|
TCP_PCAP_IN = 0x1000
|
||||||
TCP_PCAP_OUT = 0x800
|
TCP_PCAP_OUT = 0x800
|
||||||
|
TCP_RACK_EARLY_RECOV = 0x423
|
||||||
|
TCP_RACK_EARLY_SEG = 0x424
|
||||||
|
TCP_RACK_IDLE_REDUCE_HIGH = 0x444
|
||||||
|
TCP_RACK_MIN_PACE = 0x445
|
||||||
|
TCP_RACK_MIN_PACE_SEG = 0x446
|
||||||
|
TCP_RACK_MIN_TO = 0x422
|
||||||
|
TCP_RACK_PACE_ALWAYS = 0x41f
|
||||||
|
TCP_RACK_PACE_MAX_SEG = 0x41e
|
||||||
|
TCP_RACK_PACE_REDUCE = 0x41d
|
||||||
|
TCP_RACK_PKT_DELAY = 0x428
|
||||||
|
TCP_RACK_PROP = 0x41b
|
||||||
|
TCP_RACK_PROP_RATE = 0x420
|
||||||
|
TCP_RACK_PRR_SENDALOT = 0x421
|
||||||
|
TCP_RACK_REORD_FADE = 0x426
|
||||||
|
TCP_RACK_REORD_THRESH = 0x425
|
||||||
|
TCP_RACK_SESS_CWV = 0x42a
|
||||||
|
TCP_RACK_TLP_INC_VAR = 0x429
|
||||||
|
TCP_RACK_TLP_REDUCE = 0x41c
|
||||||
|
TCP_RACK_TLP_THRESH = 0x427
|
||||||
|
TCP_RACK_TLP_USE = 0x447
|
||||||
TCP_VENDOR = 0x80000000
|
TCP_VENDOR = 0x80000000
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
|
@ -1477,6 +1609,8 @@ const (
|
||||||
TIOCTIMESTAMP = 0x40107459
|
TIOCTIMESTAMP = 0x40107459
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x1
|
||||||
|
UTIME_OMIT = -0x2
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
|
@ -1488,6 +1622,7 @@ const (
|
||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_BCACHE_SIZE_MAX = 0x19000000
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(mib) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&mib[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func utimes(path string, timeval *[2]Timeval) (err error) {
|
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -376,16 +360,6 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Getcwd(buf []byte) (n int, err error) {
|
func Getcwd(buf []byte) (n int, err error) {
|
||||||
var _p0 unsafe.Pointer
|
var _p0 unsafe.Pointer
|
||||||
if len(buf) > 0 {
|
if len(buf) > 0 {
|
||||||
|
@ -413,6 +387,32 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(mib) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&mib[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1352,7 +1352,7 @@ func mknodat_freebsd12(fd int, path string, mode uint32, dev uint64) (err error)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
_, _, e1 := Syscall6(SYS_MKNODAT_FREEBSD12, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), uintptr(dev>>32), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
|
|
@ -350,22 +350,6 @@ func Munlockall() (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(mib) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&mib[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func pipe2(p *[2]_C_int, flags int) (err error) {
|
func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -403,6 +387,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(mib) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&mib[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// go run mksyscall.go -tags freebsd,arm64 -- syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go
|
// go run mksyscall.go -tags freebsd,arm64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build freebsd,arm64
|
// +build freebsd,arm64
|
||||||
|
@ -350,22 +350,6 @@ func Munlockall() (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(mib) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&mib[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func pipe2(p *[2]_C_int, flags int) (err error) {
|
func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
_, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -403,6 +387,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(mib) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&mib[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data int) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -0,0 +1,87 @@
|
||||||
|
// go run mksyscall_solaris.go -illumos -tags illumos,amd64 syscall_illumos.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build illumos,amd64
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_readv readv "libc.so"
|
||||||
|
//go:cgo_import_dynamic libc_preadv preadv "libc.so"
|
||||||
|
//go:cgo_import_dynamic libc_writev writev "libc.so"
|
||||||
|
//go:cgo_import_dynamic libc_pwritev pwritev "libc.so"
|
||||||
|
|
||||||
|
//go:linkname procreadv libc_readv
|
||||||
|
//go:linkname procpreadv libc_preadv
|
||||||
|
//go:linkname procwritev libc_writev
|
||||||
|
//go:linkname procpwritev libc_pwritev
|
||||||
|
|
||||||
|
var (
|
||||||
|
procreadv,
|
||||||
|
procpreadv,
|
||||||
|
procwritev,
|
||||||
|
procpwritev syscallFunc
|
||||||
|
)
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func readv(fd int, iovs []Iovec) (n int, err error) {
|
||||||
|
var _p0 *Iovec
|
||||||
|
if len(iovs) > 0 {
|
||||||
|
_p0 = &iovs[0]
|
||||||
|
}
|
||||||
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = e1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
|
||||||
|
var _p0 *Iovec
|
||||||
|
if len(iovs) > 0 {
|
||||||
|
_p0 = &iovs[0]
|
||||||
|
}
|
||||||
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = e1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func writev(fd int, iovs []Iovec) (n int, err error) {
|
||||||
|
var _p0 *Iovec
|
||||||
|
if len(iovs) > 0 {
|
||||||
|
_p0 = &iovs[0]
|
||||||
|
}
|
||||||
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = e1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) {
|
||||||
|
var _p0 *Iovec
|
||||||
|
if len(iovs) > 0 {
|
||||||
|
_p0 = &iovs[0]
|
||||||
|
}
|
||||||
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = e1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -128,9 +128,9 @@ type Statfs_t struct {
|
||||||
Owner uint32
|
Owner uint32
|
||||||
Fsid Fsid
|
Fsid Fsid
|
||||||
Charspare [80]int8
|
Charspare [80]int8
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntfromname [1024]int8
|
Mntfromname [1024]byte
|
||||||
Mntonname [1024]int8
|
Mntonname [1024]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type statfs_freebsd11_t struct {
|
type statfs_freebsd11_t struct {
|
||||||
|
@ -153,9 +153,9 @@ type statfs_freebsd11_t struct {
|
||||||
Owner uint32
|
Owner uint32
|
||||||
Fsid Fsid
|
Fsid Fsid
|
||||||
Charspare [80]int8
|
Charspare [80]int8
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntfromname [88]int8
|
Mntfromname [88]byte
|
||||||
Mntonname [88]int8
|
Mntonname [88]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Flock_t struct {
|
type Flock_t struct {
|
||||||
|
@ -375,15 +375,15 @@ type PtraceLwpInfoStruct struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type __Siginfo struct {
|
type __Siginfo struct {
|
||||||
Signo int32
|
Signo int32
|
||||||
Errno int32
|
Errno int32
|
||||||
Code int32
|
Code int32
|
||||||
Pid int32
|
Pid int32
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Status int32
|
Status int32
|
||||||
Addr *byte
|
Addr *byte
|
||||||
Value [4]byte
|
Value [4]byte
|
||||||
X_reason [32]byte
|
_ [32]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Sigset_t struct {
|
type Sigset_t struct {
|
||||||
|
@ -458,7 +458,7 @@ type ifMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Data ifData
|
Data ifData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -469,7 +469,6 @@ type IfMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +535,7 @@ type IfaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,7 +546,7 @@ type IfmaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfAnnounceMsghdr struct {
|
type IfAnnounceMsghdr struct {
|
||||||
|
@ -564,7 +563,7 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
|
|
@ -123,9 +123,9 @@ type Statfs_t struct {
|
||||||
Owner uint32
|
Owner uint32
|
||||||
Fsid Fsid
|
Fsid Fsid
|
||||||
Charspare [80]int8
|
Charspare [80]int8
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntfromname [1024]int8
|
Mntfromname [1024]byte
|
||||||
Mntonname [1024]int8
|
Mntonname [1024]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type statfs_freebsd11_t struct {
|
type statfs_freebsd11_t struct {
|
||||||
|
@ -148,9 +148,9 @@ type statfs_freebsd11_t struct {
|
||||||
Owner uint32
|
Owner uint32
|
||||||
Fsid Fsid
|
Fsid Fsid
|
||||||
Charspare [80]int8
|
Charspare [80]int8
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntfromname [88]int8
|
Mntfromname [88]byte
|
||||||
Mntonname [88]int8
|
Mntonname [88]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Flock_t struct {
|
type Flock_t struct {
|
||||||
|
@ -275,10 +275,8 @@ type IPv6Mreq struct {
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
_ [4]byte
|
|
||||||
Iov *Iovec
|
Iov *Iovec
|
||||||
Iovlen int32
|
Iovlen int32
|
||||||
_ [4]byte
|
|
||||||
Control *byte
|
Control *byte
|
||||||
Controllen uint32
|
Controllen uint32
|
||||||
Flags int32
|
Flags int32
|
||||||
|
@ -463,7 +461,7 @@ type ifMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Data ifData
|
Data ifData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -474,7 +472,6 @@ type IfMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,7 +538,7 @@ type IfaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -552,7 +549,7 @@ type IfmaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfAnnounceMsghdr struct {
|
type IfAnnounceMsghdr struct {
|
||||||
|
@ -569,7 +566,7 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
@ -623,7 +620,6 @@ type BpfZbuf struct {
|
||||||
|
|
||||||
type BpfProgram struct {
|
type BpfProgram struct {
|
||||||
Len uint32
|
Len uint32
|
||||||
_ [4]byte
|
|
||||||
Insns *BpfInsn
|
Insns *BpfInsn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// cgo -godefs types_freebsd.go | go run mkpost.go
|
// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm64,freebsd
|
// +build arm64,freebsd
|
||||||
|
@ -123,9 +123,9 @@ type Statfs_t struct {
|
||||||
Owner uint32
|
Owner uint32
|
||||||
Fsid Fsid
|
Fsid Fsid
|
||||||
Charspare [80]int8
|
Charspare [80]int8
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntfromname [1024]int8
|
Mntfromname [1024]byte
|
||||||
Mntonname [1024]int8
|
Mntonname [1024]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type statfs_freebsd11_t struct {
|
type statfs_freebsd11_t struct {
|
||||||
|
@ -148,9 +148,9 @@ type statfs_freebsd11_t struct {
|
||||||
Owner uint32
|
Owner uint32
|
||||||
Fsid Fsid
|
Fsid Fsid
|
||||||
Charspare [80]int8
|
Charspare [80]int8
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntfromname [88]int8
|
Mntfromname [88]byte
|
||||||
Mntonname [88]int8
|
Mntonname [88]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Flock_t struct {
|
type Flock_t struct {
|
||||||
|
@ -275,10 +275,8 @@ type IPv6Mreq struct {
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
_ [4]byte
|
|
||||||
Iov *Iovec
|
Iov *Iovec
|
||||||
Iovlen int32
|
Iovlen int32
|
||||||
_ [4]byte
|
|
||||||
Control *byte
|
Control *byte
|
||||||
Controllen uint32
|
Controllen uint32
|
||||||
Flags int32
|
Flags int32
|
||||||
|
@ -326,11 +324,9 @@ const (
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0xb
|
PTRACE_DETACH = 0xb
|
||||||
PTRACE_GETFPREGS = 0x23
|
PTRACE_GETFPREGS = 0x23
|
||||||
PTRACE_GETFSBASE = 0x47
|
|
||||||
PTRACE_GETLWPLIST = 0xf
|
PTRACE_GETLWPLIST = 0xf
|
||||||
PTRACE_GETNUMLWPS = 0xe
|
PTRACE_GETNUMLWPS = 0xe
|
||||||
PTRACE_GETREGS = 0x21
|
PTRACE_GETREGS = 0x21
|
||||||
PTRACE_GETXSTATE = 0x45
|
|
||||||
PTRACE_IO = 0xc
|
PTRACE_IO = 0xc
|
||||||
PTRACE_KILL = 0x8
|
PTRACE_KILL = 0x8
|
||||||
PTRACE_LWPEVENTS = 0x18
|
PTRACE_LWPEVENTS = 0x18
|
||||||
|
@ -373,15 +369,15 @@ type PtraceLwpInfoStruct struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type __Siginfo struct {
|
type __Siginfo struct {
|
||||||
Signo int32
|
Signo int32
|
||||||
Errno int32
|
Errno int32
|
||||||
Code int32
|
Code int32
|
||||||
Pid int32
|
Pid int32
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Status int32
|
Status int32
|
||||||
Addr *byte
|
Addr *byte
|
||||||
Value [8]byte
|
Value [8]byte
|
||||||
X_reason [40]byte
|
_ [40]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Sigset_t struct {
|
type Sigset_t struct {
|
||||||
|
@ -394,12 +390,14 @@ type Reg struct {
|
||||||
Sp uint64
|
Sp uint64
|
||||||
Elr uint64
|
Elr uint64
|
||||||
Spsr uint32
|
Spsr uint32
|
||||||
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type FpReg struct {
|
type FpReg struct {
|
||||||
Fp_q [512]uint8
|
Q [32][16]uint8
|
||||||
Fp_sr uint32
|
Sr uint32
|
||||||
Fp_cr uint32
|
Cr uint32
|
||||||
|
_ [8]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type PtraceIoDesc struct {
|
type PtraceIoDesc struct {
|
||||||
|
@ -441,7 +439,7 @@ type ifMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Data ifData
|
Data ifData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -452,7 +450,6 @@ type IfMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -519,7 +516,7 @@ type IfaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -530,7 +527,7 @@ type IfmaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfAnnounceMsghdr struct {
|
type IfAnnounceMsghdr struct {
|
||||||
|
@ -547,7 +544,7 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
_ uint16
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
@ -601,7 +598,6 @@ type BpfZbuf struct {
|
||||||
|
|
||||||
type BpfProgram struct {
|
type BpfProgram struct {
|
||||||
Len uint32
|
Len uint32
|
||||||
_ [4]byte
|
|
||||||
Insns *BpfInsn
|
Insns *BpfInsn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue