1
0
mirror of https://github.com/golang/go synced 2024-11-25 07:17:56 -07:00

syscall: regenerate z-files for freebsd, openbsd

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5375057
This commit is contained in:
Mikio Hara 2011-11-12 00:22:22 +09:00
parent 0a61c846ef
commit ca4708fa79
8 changed files with 739 additions and 680 deletions

View File

@ -1,13 +1,11 @@
// mkerrors.sh -f -m32 // mkerrors.sh -m32
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// godefs -c gcc -f -m32 -gsyscall -f -m32 _const.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs -- -m32 _const.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
AF_APPLETALK = 0x10 AF_APPLETALK = 0x10
AF_ARP = 0x23 AF_ARP = 0x23
@ -45,7 +43,7 @@ const (
AF_SLOW = 0x21 AF_SLOW = 0x21
AF_SNA = 0xb AF_SNA = 0xb
AF_UNIX = 0x1 AF_UNIX = 0x1
AF_UNSPEC = 0 AF_UNSPEC = 0x0
AF_VENDOR00 = 0x27 AF_VENDOR00 = 0x27
AF_VENDOR01 = 0x29 AF_VENDOR01 = 0x29
AF_VENDOR02 = 0x2b AF_VENDOR02 = 0x2b
@ -128,7 +126,7 @@ const (
BIOCVERSION = 0x40044271 BIOCVERSION = 0x40044271
BPF_A = 0x10 BPF_A = 0x10
BPF_ABS = 0x20 BPF_ABS = 0x20
BPF_ADD = 0 BPF_ADD = 0x0
BPF_ALIGNMENT = 0x4 BPF_ALIGNMENT = 0x4
BPF_ALU = 0x4 BPF_ALU = 0x4
BPF_AND = 0x50 BPF_AND = 0x50
@ -137,16 +135,16 @@ const (
BPF_BUFMODE_ZBUF = 0x2 BPF_BUFMODE_ZBUF = 0x2
BPF_DIV = 0x30 BPF_DIV = 0x30
BPF_H = 0x8 BPF_H = 0x8
BPF_IMM = 0 BPF_IMM = 0x0
BPF_IND = 0x40 BPF_IND = 0x40
BPF_JA = 0 BPF_JA = 0x0
BPF_JEQ = 0x10 BPF_JEQ = 0x10
BPF_JGE = 0x30 BPF_JGE = 0x30
BPF_JGT = 0x20 BPF_JGT = 0x20
BPF_JMP = 0x5 BPF_JMP = 0x5
BPF_JSET = 0x40 BPF_JSET = 0x40
BPF_K = 0 BPF_K = 0x0
BPF_LD = 0 BPF_LD = 0x0
BPF_LDX = 0x1 BPF_LDX = 0x1
BPF_LEN = 0x80 BPF_LEN = 0x80
BPF_LSH = 0x60 BPF_LSH = 0x60
@ -168,9 +166,9 @@ const (
BPF_ST = 0x2 BPF_ST = 0x2
BPF_STX = 0x3 BPF_STX = 0x3
BPF_SUB = 0x10 BPF_SUB = 0x10
BPF_TAX = 0 BPF_TAX = 0x0
BPF_TXA = 0x80 BPF_TXA = 0x80
BPF_W = 0 BPF_W = 0x0
BPF_X = 0x8 BPF_X = 0x8
CTL_MAXNAME = 0x18 CTL_MAXNAME = 0x18
CTL_NET = 0x4 CTL_NET = 0x4
@ -260,7 +258,7 @@ const (
DLT_MTP2 = 0x8c DLT_MTP2 = 0x8c
DLT_MTP2_WITH_PHDR = 0x8b DLT_MTP2_WITH_PHDR = 0x8b
DLT_MTP3 = 0x8d DLT_MTP3 = 0x8d
DLT_NULL = 0 DLT_NULL = 0x0
DLT_PCI_EXP = 0x7d DLT_PCI_EXP = 0x7d
DLT_PFLOG = 0x75 DLT_PFLOG = 0x75
DLT_PFSYNC = 0x79 DLT_PFSYNC = 0x79
@ -311,7 +309,7 @@ const (
DT_LNK = 0xa DT_LNK = 0xa
DT_REG = 0x8 DT_REG = 0x8
DT_SOCK = 0xc DT_SOCK = 0xc
DT_UNKNOWN = 0 DT_UNKNOWN = 0x0
DT_WHT = 0xe DT_WHT = 0xe
E2BIG = 0x7 E2BIG = 0x7
EACCES = 0xd EACCES = 0xd
@ -446,7 +444,7 @@ const (
FD_SETSIZE = 0x400 FD_SETSIZE = 0x400
F_CANCEL = 0x5 F_CANCEL = 0x5
F_DUP2FD = 0xa F_DUP2FD = 0xa
F_DUPFD = 0 F_DUPFD = 0x0
F_GETFD = 0x1 F_GETFD = 0x1
F_GETFL = 0x3 F_GETFL = 0x3
F_GETLK = 0xb F_GETLK = 0xb
@ -746,7 +744,7 @@ const (
IPPROTO_GRE = 0x2f IPPROTO_GRE = 0x2f
IPPROTO_HELLO = 0x3f IPPROTO_HELLO = 0x3f
IPPROTO_HMP = 0x14 IPPROTO_HMP = 0x14
IPPROTO_HOPOPTS = 0 IPPROTO_HOPOPTS = 0x0
IPPROTO_ICMP = 0x1 IPPROTO_ICMP = 0x1
IPPROTO_ICMPV6 = 0x3a IPPROTO_ICMPV6 = 0x3a
IPPROTO_IDP = 0x16 IPPROTO_IDP = 0x16
@ -758,7 +756,7 @@ const (
IPPROTO_IL = 0x28 IPPROTO_IL = 0x28
IPPROTO_INLSP = 0x34 IPPROTO_INLSP = 0x34
IPPROTO_INP = 0x20 IPPROTO_INP = 0x20
IPPROTO_IP = 0 IPPROTO_IP = 0x0
IPPROTO_IPCOMP = 0x6c IPPROTO_IPCOMP = 0x6c
IPPROTO_IPCV = 0x47 IPPROTO_IPCV = 0x47
IPPROTO_IPEIP = 0x5e IPPROTO_IPEIP = 0x5e
@ -868,7 +866,7 @@ const (
IPV6_PATHMTU = 0x2c IPV6_PATHMTU = 0x2c
IPV6_PKTINFO = 0x2e IPV6_PKTINFO = 0x2e
IPV6_PORTRANGE = 0xe IPV6_PORTRANGE = 0xe
IPV6_PORTRANGE_DEFAULT = 0 IPV6_PORTRANGE_DEFAULT = 0x0
IPV6_PORTRANGE_HIGH = 0x1 IPV6_PORTRANGE_HIGH = 0x1
IPV6_PORTRANGE_LOW = 0x2 IPV6_PORTRANGE_LOW = 0x2
IPV6_PREFER_TEMPADDR = 0x3f IPV6_PREFER_TEMPADDR = 0x3f
@ -881,9 +879,9 @@ const (
IPV6_RECVTCLASS = 0x39 IPV6_RECVTCLASS = 0x39
IPV6_RTHDR = 0x33 IPV6_RTHDR = 0x33
IPV6_RTHDRDSTOPTS = 0x23 IPV6_RTHDRDSTOPTS = 0x23
IPV6_RTHDR_LOOSE = 0 IPV6_RTHDR_LOOSE = 0x0
IPV6_RTHDR_STRICT = 0x1 IPV6_RTHDR_STRICT = 0x1
IPV6_RTHDR_TYPE_0 = 0 IPV6_RTHDR_TYPE_0 = 0x0
IPV6_SOCKOPT_RESERVED1 = 0x3 IPV6_SOCKOPT_RESERVED1 = 0x3
IPV6_TCLASS = 0x3d IPV6_TCLASS = 0x3d
IPV6_UNICAST_HOPS = 0x4 IPV6_UNICAST_HOPS = 0x4
@ -944,7 +942,7 @@ const (
IP_ONESBCAST = 0x17 IP_ONESBCAST = 0x17
IP_OPTIONS = 0x1 IP_OPTIONS = 0x1
IP_PORTRANGE = 0x13 IP_PORTRANGE = 0x13
IP_PORTRANGE_DEFAULT = 0 IP_PORTRANGE_DEFAULT = 0x0
IP_PORTRANGE_HIGH = 0x1 IP_PORTRANGE_HIGH = 0x1
IP_PORTRANGE_LOW = 0x2 IP_PORTRANGE_LOW = 0x2
IP_RECVDSTADDR = 0x7 IP_RECVDSTADDR = 0x7
@ -994,7 +992,7 @@ const (
O_NOCTTY = 0x8000 O_NOCTTY = 0x8000
O_NOFOLLOW = 0x100 O_NOFOLLOW = 0x100
O_NONBLOCK = 0x4 O_NONBLOCK = 0x4
O_RDONLY = 0 O_RDONLY = 0x0
O_RDWR = 0x2 O_RDWR = 0x2
O_SHLOCK = 0x10 O_SHLOCK = 0x10
O_SYNC = 0x80 O_SYNC = 0x80
@ -1003,7 +1001,7 @@ const (
O_WRONLY = 0x1 O_WRONLY = 0x1
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6
RTAX_BRD = 0x7 RTAX_BRD = 0x7
RTAX_DST = 0 RTAX_DST = 0x0
RTAX_GATEWAY = 0x1 RTAX_GATEWAY = 0x1
RTAX_GENMASK = 0x3 RTAX_GENMASK = 0x3
RTAX_IFA = 0x5 RTAX_IFA = 0x5
@ -1074,7 +1072,7 @@ const (
SCM_CREDS = 0x3 SCM_CREDS = 0x3
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SHUT_RD = 0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1
SIGABRT = 0x6 SIGABRT = 0x6
@ -1270,7 +1268,7 @@ const (
TIOCNXCL = 0x2000740e TIOCNXCL = 0x2000740e
TIOCOUTQ = 0x40047473 TIOCOUTQ = 0x40047473
TIOCPKT = 0x80047470 TIOCPKT = 0x80047470
TIOCPKT_DATA = 0 TIOCPKT_DATA = 0x0
TIOCPKT_DOSTOP = 0x20 TIOCPKT_DOSTOP = 0x20
TIOCPKT_FLUSHREAD = 0x1 TIOCPKT_FLUSHREAD = 0x1
TIOCPKT_FLUSHWRITE = 0x2 TIOCPKT_FLUSHWRITE = 0x2
@ -1305,8 +1303,6 @@ const (
WUNTRACED = 0x2 WUNTRACED = 0x2
) )
// Types
// Error table // Error table
var errors = [...]string{ var errors = [...]string{
1: "operation not permitted", 1: "operation not permitted",

View File

@ -1,13 +1,11 @@
// mkerrors.sh -f -m64 // mkerrors.sh -m64
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// godefs -c gcc -f -m64 -gsyscall -f -m64 _const.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs -- -m64 _const.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
AF_APPLETALK = 0x10 AF_APPLETALK = 0x10
AF_ARP = 0x23 AF_ARP = 0x23
@ -45,7 +43,7 @@ const (
AF_SLOW = 0x21 AF_SLOW = 0x21
AF_SNA = 0xb AF_SNA = 0xb
AF_UNIX = 0x1 AF_UNIX = 0x1
AF_UNSPEC = 0 AF_UNSPEC = 0x0
AF_VENDOR00 = 0x27 AF_VENDOR00 = 0x27
AF_VENDOR01 = 0x29 AF_VENDOR01 = 0x29
AF_VENDOR02 = 0x2b AF_VENDOR02 = 0x2b
@ -128,7 +126,7 @@ const (
BIOCVERSION = 0x40044271 BIOCVERSION = 0x40044271
BPF_A = 0x10 BPF_A = 0x10
BPF_ABS = 0x20 BPF_ABS = 0x20
BPF_ADD = 0 BPF_ADD = 0x0
BPF_ALIGNMENT = 0x8 BPF_ALIGNMENT = 0x8
BPF_ALU = 0x4 BPF_ALU = 0x4
BPF_AND = 0x50 BPF_AND = 0x50
@ -137,16 +135,16 @@ const (
BPF_BUFMODE_ZBUF = 0x2 BPF_BUFMODE_ZBUF = 0x2
BPF_DIV = 0x30 BPF_DIV = 0x30
BPF_H = 0x8 BPF_H = 0x8
BPF_IMM = 0 BPF_IMM = 0x0
BPF_IND = 0x40 BPF_IND = 0x40
BPF_JA = 0 BPF_JA = 0x0
BPF_JEQ = 0x10 BPF_JEQ = 0x10
BPF_JGE = 0x30 BPF_JGE = 0x30
BPF_JGT = 0x20 BPF_JGT = 0x20
BPF_JMP = 0x5 BPF_JMP = 0x5
BPF_JSET = 0x40 BPF_JSET = 0x40
BPF_K = 0 BPF_K = 0x0
BPF_LD = 0 BPF_LD = 0x0
BPF_LDX = 0x1 BPF_LDX = 0x1
BPF_LEN = 0x80 BPF_LEN = 0x80
BPF_LSH = 0x60 BPF_LSH = 0x60
@ -168,9 +166,9 @@ const (
BPF_ST = 0x2 BPF_ST = 0x2
BPF_STX = 0x3 BPF_STX = 0x3
BPF_SUB = 0x10 BPF_SUB = 0x10
BPF_TAX = 0 BPF_TAX = 0x0
BPF_TXA = 0x80 BPF_TXA = 0x80
BPF_W = 0 BPF_W = 0x0
BPF_X = 0x8 BPF_X = 0x8
CTL_MAXNAME = 0x18 CTL_MAXNAME = 0x18
CTL_NET = 0x4 CTL_NET = 0x4
@ -260,7 +258,7 @@ const (
DLT_MTP2 = 0x8c DLT_MTP2 = 0x8c
DLT_MTP2_WITH_PHDR = 0x8b DLT_MTP2_WITH_PHDR = 0x8b
DLT_MTP3 = 0x8d DLT_MTP3 = 0x8d
DLT_NULL = 0 DLT_NULL = 0x0
DLT_PCI_EXP = 0x7d DLT_PCI_EXP = 0x7d
DLT_PFLOG = 0x75 DLT_PFLOG = 0x75
DLT_PFSYNC = 0x79 DLT_PFSYNC = 0x79
@ -311,7 +309,7 @@ const (
DT_LNK = 0xa DT_LNK = 0xa
DT_REG = 0x8 DT_REG = 0x8
DT_SOCK = 0xc DT_SOCK = 0xc
DT_UNKNOWN = 0 DT_UNKNOWN = 0x0
DT_WHT = 0xe DT_WHT = 0xe
E2BIG = 0x7 E2BIG = 0x7
EACCES = 0xd EACCES = 0xd
@ -446,7 +444,7 @@ const (
FD_SETSIZE = 0x400 FD_SETSIZE = 0x400
F_CANCEL = 0x5 F_CANCEL = 0x5
F_DUP2FD = 0xa F_DUP2FD = 0xa
F_DUPFD = 0 F_DUPFD = 0x0
F_GETFD = 0x1 F_GETFD = 0x1
F_GETFL = 0x3 F_GETFL = 0x3
F_GETLK = 0xb F_GETLK = 0xb
@ -746,7 +744,7 @@ const (
IPPROTO_GRE = 0x2f IPPROTO_GRE = 0x2f
IPPROTO_HELLO = 0x3f IPPROTO_HELLO = 0x3f
IPPROTO_HMP = 0x14 IPPROTO_HMP = 0x14
IPPROTO_HOPOPTS = 0 IPPROTO_HOPOPTS = 0x0
IPPROTO_ICMP = 0x1 IPPROTO_ICMP = 0x1
IPPROTO_ICMPV6 = 0x3a IPPROTO_ICMPV6 = 0x3a
IPPROTO_IDP = 0x16 IPPROTO_IDP = 0x16
@ -758,7 +756,7 @@ const (
IPPROTO_IL = 0x28 IPPROTO_IL = 0x28
IPPROTO_INLSP = 0x34 IPPROTO_INLSP = 0x34
IPPROTO_INP = 0x20 IPPROTO_INP = 0x20
IPPROTO_IP = 0 IPPROTO_IP = 0x0
IPPROTO_IPCOMP = 0x6c IPPROTO_IPCOMP = 0x6c
IPPROTO_IPCV = 0x47 IPPROTO_IPCV = 0x47
IPPROTO_IPEIP = 0x5e IPPROTO_IPEIP = 0x5e
@ -868,7 +866,7 @@ const (
IPV6_PATHMTU = 0x2c IPV6_PATHMTU = 0x2c
IPV6_PKTINFO = 0x2e IPV6_PKTINFO = 0x2e
IPV6_PORTRANGE = 0xe IPV6_PORTRANGE = 0xe
IPV6_PORTRANGE_DEFAULT = 0 IPV6_PORTRANGE_DEFAULT = 0x0
IPV6_PORTRANGE_HIGH = 0x1 IPV6_PORTRANGE_HIGH = 0x1
IPV6_PORTRANGE_LOW = 0x2 IPV6_PORTRANGE_LOW = 0x2
IPV6_PREFER_TEMPADDR = 0x3f IPV6_PREFER_TEMPADDR = 0x3f
@ -881,9 +879,9 @@ const (
IPV6_RECVTCLASS = 0x39 IPV6_RECVTCLASS = 0x39
IPV6_RTHDR = 0x33 IPV6_RTHDR = 0x33
IPV6_RTHDRDSTOPTS = 0x23 IPV6_RTHDRDSTOPTS = 0x23
IPV6_RTHDR_LOOSE = 0 IPV6_RTHDR_LOOSE = 0x0
IPV6_RTHDR_STRICT = 0x1 IPV6_RTHDR_STRICT = 0x1
IPV6_RTHDR_TYPE_0 = 0 IPV6_RTHDR_TYPE_0 = 0x0
IPV6_SOCKOPT_RESERVED1 = 0x3 IPV6_SOCKOPT_RESERVED1 = 0x3
IPV6_TCLASS = 0x3d IPV6_TCLASS = 0x3d
IPV6_UNICAST_HOPS = 0x4 IPV6_UNICAST_HOPS = 0x4
@ -944,7 +942,7 @@ const (
IP_ONESBCAST = 0x17 IP_ONESBCAST = 0x17
IP_OPTIONS = 0x1 IP_OPTIONS = 0x1
IP_PORTRANGE = 0x13 IP_PORTRANGE = 0x13
IP_PORTRANGE_DEFAULT = 0 IP_PORTRANGE_DEFAULT = 0x0
IP_PORTRANGE_HIGH = 0x1 IP_PORTRANGE_HIGH = 0x1
IP_PORTRANGE_LOW = 0x2 IP_PORTRANGE_LOW = 0x2
IP_RECVDSTADDR = 0x7 IP_RECVDSTADDR = 0x7
@ -994,7 +992,7 @@ const (
O_NOCTTY = 0x8000 O_NOCTTY = 0x8000
O_NOFOLLOW = 0x100 O_NOFOLLOW = 0x100
O_NONBLOCK = 0x4 O_NONBLOCK = 0x4
O_RDONLY = 0 O_RDONLY = 0x0
O_RDWR = 0x2 O_RDWR = 0x2
O_SHLOCK = 0x10 O_SHLOCK = 0x10
O_SYNC = 0x80 O_SYNC = 0x80
@ -1003,7 +1001,7 @@ const (
O_WRONLY = 0x1 O_WRONLY = 0x1
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6
RTAX_BRD = 0x7 RTAX_BRD = 0x7
RTAX_DST = 0 RTAX_DST = 0x0
RTAX_GATEWAY = 0x1 RTAX_GATEWAY = 0x1
RTAX_GENMASK = 0x3 RTAX_GENMASK = 0x3
RTAX_IFA = 0x5 RTAX_IFA = 0x5
@ -1074,7 +1072,7 @@ const (
SCM_CREDS = 0x3 SCM_CREDS = 0x3
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x2 SCM_TIMESTAMP = 0x2
SHUT_RD = 0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1
SIGABRT = 0x6 SIGABRT = 0x6
@ -1270,7 +1268,7 @@ const (
TIOCNXCL = 0x2000740e TIOCNXCL = 0x2000740e
TIOCOUTQ = 0x40047473 TIOCOUTQ = 0x40047473
TIOCPKT = 0x80047470 TIOCPKT = 0x80047470
TIOCPKT_DATA = 0 TIOCPKT_DATA = 0x0
TIOCPKT_DOSTOP = 0x20 TIOCPKT_DOSTOP = 0x20
TIOCPKT_FLUSHREAD = 0x1 TIOCPKT_FLUSHREAD = 0x1
TIOCPKT_FLUSHWRITE = 0x2 TIOCPKT_FLUSHWRITE = 0x2
@ -1305,8 +1303,6 @@ const (
WUNTRACED = 0x2 WUNTRACED = 0x2
) )
// Types
// Error table // Error table
var errors = [...]string{ var errors = [...]string{
1: "operation not permitted", 1: "operation not permitted",

View File

@ -1,13 +1,11 @@
// mkerrors.sh -f -m32 // mkerrors.sh -m32
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// godefs -c gcc -f -m32 -gsyscall -f -m32 _const.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs -- -m32 _const.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
AF_APPLETALK = 0x10 AF_APPLETALK = 0x10
AF_BLUETOOTH = 0x20 AF_BLUETOOTH = 0x20
@ -42,7 +40,7 @@ const (
AF_SIP = 0x1d AF_SIP = 0x1d
AF_SNA = 0xb AF_SNA = 0xb
AF_UNIX = 0x1 AF_UNIX = 0x1
AF_UNSPEC = 0 AF_UNSPEC = 0x0
ARPHRD_ETHER = 0x1 ARPHRD_ETHER = 0x1
ARPHRD_FRELAY = 0xf ARPHRD_FRELAY = 0xf
ARPHRD_IEEE1394 = 0x18 ARPHRD_IEEE1394 = 0x18
@ -51,30 +49,30 @@ const (
BIOCGBLEN = 0x40044266 BIOCGBLEN = 0x40044266
BIOCGDIRFILT = 0x4004427c BIOCGDIRFILT = 0x4004427c
BIOCGDLT = 0x4004426a BIOCGDLT = 0x4004426a
BIOCGDLTLIST = 0xc008427b BIOCGDLTLIST = -0x3ff7bd85
BIOCGETIF = 0x4020426b BIOCGETIF = 0x4020426b
BIOCGFILDROP = 0x40044278 BIOCGFILDROP = 0x40044278
BIOCGHDRCMPLT = 0x40044274 BIOCGHDRCMPLT = 0x40044274
BIOCGRSIG = 0x40044273 BIOCGRSIG = 0x40044273
BIOCGRTIMEOUT = 0x4008426e BIOCGRTIMEOUT = 0x4008426e
BIOCGSTATS = 0x4008426f BIOCGSTATS = 0x4008426f
BIOCIMMEDIATE = 0x80044270 BIOCIMMEDIATE = -0x7ffbbd90
BIOCLOCK = 0x20004276 BIOCLOCK = 0x20004276
BIOCPROMISC = 0x20004269 BIOCPROMISC = 0x20004269
BIOCSBLEN = 0xc0044266 BIOCSBLEN = -0x3ffbbd9a
BIOCSDIRFILT = 0x8004427d BIOCSDIRFILT = -0x7ffbbd83
BIOCSDLT = 0x8004427a BIOCSDLT = -0x7ffbbd86
BIOCSETF = 0x80084267 BIOCSETF = -0x7ff7bd99
BIOCSETIF = 0x8020426c BIOCSETIF = -0x7fdfbd94
BIOCSETWF = 0x80084277 BIOCSETWF = -0x7ff7bd89
BIOCSFILDROP = 0x80044279 BIOCSFILDROP = -0x7ffbbd87
BIOCSHDRCMPLT = 0x80044275 BIOCSHDRCMPLT = -0x7ffbbd8b
BIOCSRSIG = 0x80044272 BIOCSRSIG = -0x7ffbbd8e
BIOCSRTIMEOUT = 0x8008426d BIOCSRTIMEOUT = -0x7ff7bd93
BIOCVERSION = 0x40044271 BIOCVERSION = 0x40044271
BPF_A = 0x10 BPF_A = 0x10
BPF_ABS = 0x20 BPF_ABS = 0x20
BPF_ADD = 0 BPF_ADD = 0x0
BPF_ALIGNMENT = 0x4 BPF_ALIGNMENT = 0x4
BPF_ALU = 0x4 BPF_ALU = 0x4
BPF_AND = 0x50 BPF_AND = 0x50
@ -83,16 +81,16 @@ const (
BPF_DIRECTION_OUT = 0x2 BPF_DIRECTION_OUT = 0x2
BPF_DIV = 0x30 BPF_DIV = 0x30
BPF_H = 0x8 BPF_H = 0x8
BPF_IMM = 0 BPF_IMM = 0x0
BPF_IND = 0x40 BPF_IND = 0x40
BPF_JA = 0 BPF_JA = 0x0
BPF_JEQ = 0x10 BPF_JEQ = 0x10
BPF_JGE = 0x30 BPF_JGE = 0x30
BPF_JGT = 0x20 BPF_JGT = 0x20
BPF_JMP = 0x5 BPF_JMP = 0x5
BPF_JSET = 0x40 BPF_JSET = 0x40
BPF_K = 0 BPF_K = 0x0
BPF_LD = 0 BPF_LD = 0x0
BPF_LDX = 0x1 BPF_LDX = 0x1
BPF_LEN = 0x80 BPF_LEN = 0x80
BPF_LSH = 0x60 BPF_LSH = 0x60
@ -114,9 +112,9 @@ const (
BPF_ST = 0x2 BPF_ST = 0x2
BPF_STX = 0x3 BPF_STX = 0x3
BPF_SUB = 0x10 BPF_SUB = 0x10
BPF_TAX = 0 BPF_TAX = 0x0
BPF_TXA = 0x80 BPF_TXA = 0x80
BPF_W = 0 BPF_W = 0x0
BPF_X = 0x8 BPF_X = 0x8
CTL_MAXNAME = 0xc CTL_MAXNAME = 0xc
CTL_NET = 0x4 CTL_NET = 0x4
@ -133,7 +131,7 @@ const (
DLT_IEEE802_11_RADIO = 0x7f DLT_IEEE802_11_RADIO = 0x7f
DLT_LOOP = 0xc DLT_LOOP = 0xc
DLT_MPLS = 0xdb DLT_MPLS = 0xdb
DLT_NULL = 0 DLT_NULL = 0x0
DLT_PFLOG = 0x75 DLT_PFLOG = 0x75
DLT_PFSYNC = 0x12 DLT_PFSYNC = 0x12
DLT_PPP = 0x9 DLT_PPP = 0x9
@ -150,7 +148,7 @@ const (
DT_LNK = 0xa DT_LNK = 0xa
DT_REG = 0x8 DT_REG = 0x8
DT_SOCK = 0xc DT_SOCK = 0xc
DT_UNKNOWN = 0 DT_UNKNOWN = 0x0
E2BIG = 0x7 E2BIG = 0x7
EACCES = 0xd EACCES = 0xd
EADDRINUSE = 0x30 EADDRINUSE = 0x30
@ -181,10 +179,6 @@ const (
EEXIST = 0x11 EEXIST = 0x11
EFAULT = 0xe EFAULT = 0xe
EFBIG = 0x1b EFBIG = 0x1b
EFER_LMA = 0x400
EFER_LME = 0x100
EFER_NXE = 0x800
EFER_SCE = 0x1
EFTYPE = 0x4f EFTYPE = 0x4f
EHOSTDOWN = 0x40 EHOSTDOWN = 0x40
EHOSTUNREACH = 0x41 EHOSTUNREACH = 0x41
@ -444,7 +438,7 @@ const (
ETHER_ALIGN = 0x2 ETHER_ALIGN = 0x2
ETHER_CRC_LEN = 0x4 ETHER_CRC_LEN = 0x4
ETHER_CRC_POLY_BE = 0x4c11db6 ETHER_CRC_POLY_BE = 0x4c11db6
ETHER_CRC_POLY_LE = 0xedb88320 ETHER_CRC_POLY_LE = -0x12477ce0
ETHER_HDR_LEN = 0xe ETHER_HDR_LEN = 0xe
ETHER_MAX_DIX_LEN = 0x600 ETHER_MAX_DIX_LEN = 0x600
ETHER_MAX_LEN = 0x5ee ETHER_MAX_LEN = 0x5ee
@ -480,7 +474,7 @@ const (
EXTPROC = 0x800 EXTPROC = 0x800
FD_CLOEXEC = 0x1 FD_CLOEXEC = 0x1
FD_SETSIZE = 0x400 FD_SETSIZE = 0x400
F_DUPFD = 0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0xa F_DUPFD_CLOEXEC = 0xa
F_GETFD = 0x1 F_GETFD = 0x1
F_GETFL = 0x3 F_GETFL = 0x3
@ -738,21 +732,21 @@ const (
IFT_XETHER = 0x1a IFT_XETHER = 0x1a
IN_CLASSA_HOST = 0xffffff IN_CLASSA_HOST = 0xffffff
IN_CLASSA_MAX = 0x80 IN_CLASSA_MAX = 0x80
IN_CLASSA_NET = 0xff000000 IN_CLASSA_NET = -0x1000000
IN_CLASSA_NSHIFT = 0x18 IN_CLASSA_NSHIFT = 0x18
IN_CLASSB_HOST = 0xffff IN_CLASSB_HOST = 0xffff
IN_CLASSB_MAX = 0x10000 IN_CLASSB_MAX = 0x10000
IN_CLASSB_NET = 0xffff0000 IN_CLASSB_NET = -0x10000
IN_CLASSB_NSHIFT = 0x10 IN_CLASSB_NSHIFT = 0x10
IN_CLASSC_HOST = 0xff IN_CLASSC_HOST = 0xff
IN_CLASSC_NET = 0xffffff00 IN_CLASSC_NET = -0x100
IN_CLASSC_NSHIFT = 0x8 IN_CLASSC_NSHIFT = 0x8
IN_CLASSD_HOST = 0xfffffff IN_CLASSD_HOST = 0xfffffff
IN_CLASSD_NET = 0xf0000000 IN_CLASSD_NET = -0x10000000
IN_CLASSD_NSHIFT = 0x1c IN_CLASSD_NSHIFT = 0x1c
IN_LOOPBACKNET = 0x7f IN_LOOPBACKNET = 0x7f
IN_RFC3021_HOST = 0x1 IN_RFC3021_HOST = 0x1
IN_RFC3021_NET = 0xfffffffe IN_RFC3021_NET = -0x2
IN_RFC3021_NSHIFT = 0x1f IN_RFC3021_NSHIFT = 0x1f
IPPROTO_AH = 0x33 IPPROTO_AH = 0x33
IPPROTO_CARP = 0x70 IPPROTO_CARP = 0x70
@ -767,12 +761,12 @@ const (
IPPROTO_FRAGMENT = 0x2c IPPROTO_FRAGMENT = 0x2c
IPPROTO_GGP = 0x3 IPPROTO_GGP = 0x3
IPPROTO_GRE = 0x2f IPPROTO_GRE = 0x2f
IPPROTO_HOPOPTS = 0 IPPROTO_HOPOPTS = 0x0
IPPROTO_ICMP = 0x1 IPPROTO_ICMP = 0x1
IPPROTO_ICMPV6 = 0x3a IPPROTO_ICMPV6 = 0x3a
IPPROTO_IDP = 0x16 IPPROTO_IDP = 0x16
IPPROTO_IGMP = 0x2 IPPROTO_IGMP = 0x2
IPPROTO_IP = 0 IPPROTO_IP = 0x0
IPPROTO_IPCOMP = 0x6c IPPROTO_IPCOMP = 0x6c
IPPROTO_IPIP = 0x4 IPPROTO_IPIP = 0x4
IPPROTO_IPV4 = 0x4 IPPROTO_IPV4 = 0x4
@ -802,8 +796,8 @@ const (
IPV6_ESP_NETWORK_LEVEL = 0x37 IPV6_ESP_NETWORK_LEVEL = 0x37
IPV6_ESP_TRANS_LEVEL = 0x36 IPV6_ESP_TRANS_LEVEL = 0x36
IPV6_FAITH = 0x1d IPV6_FAITH = 0x1d
IPV6_FLOWINFO_MASK = 0xffffff0f IPV6_FLOWINFO_MASK = -0xf1
IPV6_FLOWLABEL_MASK = 0xffff0f00 IPV6_FLOWLABEL_MASK = -0xf100
IPV6_FRAGTTL = 0x78 IPV6_FRAGTTL = 0x78
IPV6_HLIMDEC = 0x1 IPV6_HLIMDEC = 0x1
IPV6_HOPLIMIT = 0x2f IPV6_HOPLIMIT = 0x2f
@ -823,7 +817,7 @@ const (
IPV6_PIPEX = 0x3f IPV6_PIPEX = 0x3f
IPV6_PKTINFO = 0x2e IPV6_PKTINFO = 0x2e
IPV6_PORTRANGE = 0xe IPV6_PORTRANGE = 0xe
IPV6_PORTRANGE_DEFAULT = 0 IPV6_PORTRANGE_DEFAULT = 0x0
IPV6_PORTRANGE_HIGH = 0x1 IPV6_PORTRANGE_HIGH = 0x1
IPV6_PORTRANGE_LOW = 0x2 IPV6_PORTRANGE_LOW = 0x2
IPV6_RECVDSTOPTS = 0x28 IPV6_RECVDSTOPTS = 0x28
@ -836,9 +830,9 @@ const (
IPV6_RTABLE = 0x1021 IPV6_RTABLE = 0x1021
IPV6_RTHDR = 0x33 IPV6_RTHDR = 0x33
IPV6_RTHDRDSTOPTS = 0x23 IPV6_RTHDRDSTOPTS = 0x23
IPV6_RTHDR_LOOSE = 0 IPV6_RTHDR_LOOSE = 0x0
IPV6_RTHDR_STRICT = 0x1 IPV6_RTHDR_STRICT = 0x1
IPV6_RTHDR_TYPE_0 = 0 IPV6_RTHDR_TYPE_0 = 0x0
IPV6_SOCKOPT_RESERVED1 = 0x3 IPV6_SOCKOPT_RESERVED1 = 0x3
IPV6_TCLASS = 0x3d IPV6_TCLASS = 0x3d
IPV6_UNICAST_HOPS = 0x4 IPV6_UNICAST_HOPS = 0x4
@ -875,7 +869,7 @@ const (
IP_OPTIONS = 0x1 IP_OPTIONS = 0x1
IP_PIPEX = 0x22 IP_PIPEX = 0x22
IP_PORTRANGE = 0x13 IP_PORTRANGE = 0x13
IP_PORTRANGE_DEFAULT = 0 IP_PORTRANGE_DEFAULT = 0x0
IP_PORTRANGE_HIGH = 0x1 IP_PORTRANGE_HIGH = 0x1
IP_PORTRANGE_LOW = 0x2 IP_PORTRANGE_LOW = 0x2
IP_RECVDSTADDR = 0x7 IP_RECVDSTADDR = 0x7
@ -922,16 +916,17 @@ const (
O_NOCTTY = 0x8000 O_NOCTTY = 0x8000
O_NOFOLLOW = 0x100 O_NOFOLLOW = 0x100
O_NONBLOCK = 0x4 O_NONBLOCK = 0x4
O_RDONLY = 0 O_RDONLY = 0x0
O_RDWR = 0x2 O_RDWR = 0x2
O_RSYNC = 0x80 O_RSYNC = 0x80
O_SHLOCK = 0x10 O_SHLOCK = 0x10
O_SYNC = 0x80 O_SYNC = 0x80
O_TRUNC = 0x400 O_TRUNC = 0x400
O_WRONLY = 0x1 O_WRONLY = 0x1
PT_MASK = 0x3ff000
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6
RTAX_BRD = 0x7 RTAX_BRD = 0x7
RTAX_DST = 0 RTAX_DST = 0x0
RTAX_GATEWAY = 0x1 RTAX_GATEWAY = 0x1
RTAX_GENMASK = 0x3 RTAX_GENMASK = 0x3
RTAX_IFA = 0x5 RTAX_IFA = 0x5
@ -1003,10 +998,11 @@ const (
RTV_RTTVAR = 0x80 RTV_RTTVAR = 0x80
RTV_SPIPE = 0x10 RTV_SPIPE = 0x10
RTV_SSTHRESH = 0x20 RTV_SSTHRESH = 0x20
RT_TABLEID_MAX = 0xff
SCM_CREDS = 0x2 SCM_CREDS = 0x2
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x4 SCM_TIMESTAMP = 0x4
SHUT_RD = 0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1
SIGABRT = 0x6 SIGABRT = 0x6
@ -1042,118 +1038,118 @@ const (
SIGWINCH = 0x1c SIGWINCH = 0x1c
SIGXCPU = 0x18 SIGXCPU = 0x18
SIGXFSZ = 0x19 SIGXFSZ = 0x19
SIOCADDMULTI = 0x80206931 SIOCADDMULTI = -0x7fdf96cf
SIOCAIFADDR = 0x8040691a SIOCAIFADDR = -0x7fbf96e6
SIOCAIFGROUP = 0x80246987 SIOCAIFGROUP = -0x7fdb9679
SIOCALIFADDR = 0x8218691c SIOCALIFADDR = -0x7de796e4
SIOCATMARK = 0x40047307 SIOCATMARK = 0x40047307
SIOCBRDGADD = 0x8054693c SIOCBRDGADD = -0x7fab96c4
SIOCBRDGADDS = 0x80546941 SIOCBRDGADDS = -0x7fab96bf
SIOCBRDGARL = 0x806e694d SIOCBRDGARL = -0x7f9196b3
SIOCBRDGDADDR = 0x80286947 SIOCBRDGDADDR = -0x7fd796b9
SIOCBRDGDEL = 0x8054693d SIOCBRDGDEL = -0x7fab96c3
SIOCBRDGDELS = 0x80546942 SIOCBRDGDELS = -0x7fab96be
SIOCBRDGFLUSH = 0x80546948 SIOCBRDGFLUSH = -0x7fab96b8
SIOCBRDGFRL = 0x806e694e SIOCBRDGFRL = -0x7f9196b2
SIOCBRDGGCACHE = 0xc0146941 SIOCBRDGGCACHE = -0x3feb96bf
SIOCBRDGGFD = 0xc0146952 SIOCBRDGGFD = -0x3feb96ae
SIOCBRDGGHT = 0xc0146951 SIOCBRDGGHT = -0x3feb96af
SIOCBRDGGIFFLGS = 0xc054693e SIOCBRDGGIFFLGS = -0x3fab96c2
SIOCBRDGGMA = 0xc0146953 SIOCBRDGGMA = -0x3feb96ad
SIOCBRDGGPARAM = 0xc0386958 SIOCBRDGGPARAM = -0x3fc796a8
SIOCBRDGGPRI = 0xc0146950 SIOCBRDGGPRI = -0x3feb96b0
SIOCBRDGGRL = 0xc028694f SIOCBRDGGRL = -0x3fd796b1
SIOCBRDGGSIFS = 0xc054693c SIOCBRDGGSIFS = -0x3fab96c4
SIOCBRDGGTO = 0xc0146946 SIOCBRDGGTO = -0x3feb96ba
SIOCBRDGIFS = 0xc0546942 SIOCBRDGIFS = -0x3fab96be
SIOCBRDGRTS = 0xc0186943 SIOCBRDGRTS = -0x3fe796bd
SIOCBRDGSADDR = 0xc0286944 SIOCBRDGSADDR = -0x3fd796bc
SIOCBRDGSCACHE = 0x80146940 SIOCBRDGSCACHE = -0x7feb96c0
SIOCBRDGSFD = 0x80146952 SIOCBRDGSFD = -0x7feb96ae
SIOCBRDGSHT = 0x80146951 SIOCBRDGSHT = -0x7feb96af
SIOCBRDGSIFCOST = 0x80546955 SIOCBRDGSIFCOST = -0x7fab96ab
SIOCBRDGSIFFLGS = 0x8054693f SIOCBRDGSIFFLGS = -0x7fab96c1
SIOCBRDGSIFPRIO = 0x80546954 SIOCBRDGSIFPRIO = -0x7fab96ac
SIOCBRDGSMA = 0x80146953 SIOCBRDGSMA = -0x7feb96ad
SIOCBRDGSPRI = 0x80146950 SIOCBRDGSPRI = -0x7feb96b0
SIOCBRDGSPROTO = 0x8014695a SIOCBRDGSPROTO = -0x7feb96a6
SIOCBRDGSTO = 0x80146945 SIOCBRDGSTO = -0x7feb96bb
SIOCBRDGSTXHC = 0x80146959 SIOCBRDGSTXHC = -0x7feb96a7
SIOCDELMULTI = 0x80206932 SIOCDELMULTI = -0x7fdf96ce
SIOCDIFADDR = 0x80206919 SIOCDIFADDR = -0x7fdf96e7
SIOCDIFGROUP = 0x80246989 SIOCDIFGROUP = -0x7fdb9677
SIOCDIFPHYADDR = 0x80206949 SIOCDIFPHYADDR = -0x7fdf96b7
SIOCDLIFADDR = 0x8218691e SIOCDLIFADDR = -0x7de796e2
SIOCGETKALIVE = 0xc01869a4 SIOCGETKALIVE = -0x3fe7965c
SIOCGETLABEL = 0x8020699a SIOCGETLABEL = -0x7fdf9666
SIOCGETPFLOW = 0xc02069fe SIOCGETPFLOW = -0x3fdf9602
SIOCGETPFSYNC = 0xc02069f8 SIOCGETPFSYNC = -0x3fdf9608
SIOCGETSGCNT = 0xc0147534 SIOCGETSGCNT = -0x3feb8acc
SIOCGETVIFCNT = 0xc0147533 SIOCGETVIFCNT = -0x3feb8acd
SIOCGETVLANPRIO = 0xc0206990 SIOCGETVLANPRIO = -0x3fdf9670
SIOCGHIWAT = 0x40047301 SIOCGHIWAT = 0x40047301
SIOCGIFADDR = 0xc0206921 SIOCGIFADDR = -0x3fdf96df
SIOCGIFASYNCMAP = 0xc020697c SIOCGIFASYNCMAP = -0x3fdf9684
SIOCGIFBRDADDR = 0xc0206923 SIOCGIFBRDADDR = -0x3fdf96dd
SIOCGIFCONF = 0xc0086924 SIOCGIFCONF = -0x3ff796dc
SIOCGIFDATA = 0xc020691b SIOCGIFDATA = -0x3fdf96e5
SIOCGIFDESCR = 0xc0206981 SIOCGIFDESCR = -0x3fdf967f
SIOCGIFDSTADDR = 0xc0206922 SIOCGIFDSTADDR = -0x3fdf96de
SIOCGIFFLAGS = 0xc0206911 SIOCGIFFLAGS = -0x3fdf96ef
SIOCGIFGATTR = 0xc024698b SIOCGIFGATTR = -0x3fdb9675
SIOCGIFGENERIC = 0xc020693a SIOCGIFGENERIC = -0x3fdf96c6
SIOCGIFGMEMB = 0xc024698a SIOCGIFGMEMB = -0x3fdb9676
SIOCGIFGROUP = 0xc0246988 SIOCGIFGROUP = -0x3fdb9678
SIOCGIFMEDIA = 0xc0286936 SIOCGIFMEDIA = -0x3fd796ca
SIOCGIFMETRIC = 0xc0206917 SIOCGIFMETRIC = -0x3fdf96e9
SIOCGIFMTU = 0xc020697e SIOCGIFMTU = -0x3fdf9682
SIOCGIFNETMASK = 0xc0206925 SIOCGIFNETMASK = -0x3fdf96db
SIOCGIFPDSTADDR = 0xc0206948 SIOCGIFPDSTADDR = -0x3fdf96b8
SIOCGIFPRIORITY = 0xc020699c SIOCGIFPRIORITY = -0x3fdf9664
SIOCGIFPSRCADDR = 0xc0206947 SIOCGIFPSRCADDR = -0x3fdf96b9
SIOCGIFRDOMAIN = 0xc02069a0 SIOCGIFRDOMAIN = -0x3fdf9660
SIOCGIFRTLABEL = 0xc0206983 SIOCGIFRTLABEL = -0x3fdf967d
SIOCGIFTIMESLOT = 0xc0206986 SIOCGIFTIMESLOT = -0x3fdf967a
SIOCGIFXFLAGS = 0xc020699e SIOCGIFXFLAGS = -0x3fdf9662
SIOCGLIFADDR = 0xc218691d SIOCGLIFADDR = -0x3de796e3
SIOCGLIFPHYADDR = 0xc218694b SIOCGLIFPHYADDR = -0x3de796b5
SIOCGLIFPHYRTABLE = 0xc02069a2 SIOCGLIFPHYRTABLE = -0x3fdf965e
SIOCGLOWAT = 0x40047303 SIOCGLOWAT = 0x40047303
SIOCGPGRP = 0x40047309 SIOCGPGRP = 0x40047309
SIOCGVH = 0xc02069f6 SIOCGVH = -0x3fdf960a
SIOCIFCREATE = 0x8020697a SIOCIFCREATE = -0x7fdf9686
SIOCIFDESTROY = 0x80206979 SIOCIFDESTROY = -0x7fdf9687
SIOCIFGCLONERS = 0xc00c6978 SIOCIFGCLONERS = -0x3ff39688
SIOCSETKALIVE = 0x801869a3 SIOCSETKALIVE = -0x7fe7965d
SIOCSETLABEL = 0x80206999 SIOCSETLABEL = -0x7fdf9667
SIOCSETPFLOW = 0x802069fd SIOCSETPFLOW = -0x7fdf9603
SIOCSETPFSYNC = 0x802069f7 SIOCSETPFSYNC = -0x7fdf9609
SIOCSETVLANPRIO = 0x8020698f SIOCSETVLANPRIO = -0x7fdf9671
SIOCSHIWAT = 0x80047300 SIOCSHIWAT = -0x7ffb8d00
SIOCSIFADDR = 0x8020690c SIOCSIFADDR = -0x7fdf96f4
SIOCSIFASYNCMAP = 0x8020697d SIOCSIFASYNCMAP = -0x7fdf9683
SIOCSIFBRDADDR = 0x80206913 SIOCSIFBRDADDR = -0x7fdf96ed
SIOCSIFDESCR = 0x80206980 SIOCSIFDESCR = -0x7fdf9680
SIOCSIFDSTADDR = 0x8020690e SIOCSIFDSTADDR = -0x7fdf96f2
SIOCSIFFLAGS = 0x80206910 SIOCSIFFLAGS = -0x7fdf96f0
SIOCSIFGATTR = 0x8024698c SIOCSIFGATTR = -0x7fdb9674
SIOCSIFGENERIC = 0x80206939 SIOCSIFGENERIC = -0x7fdf96c7
SIOCSIFLLADDR = 0x8020691f SIOCSIFLLADDR = -0x7fdf96e1
SIOCSIFMEDIA = 0xc0206935 SIOCSIFMEDIA = -0x3fdf96cb
SIOCSIFMETRIC = 0x80206918 SIOCSIFMETRIC = -0x7fdf96e8
SIOCSIFMTU = 0x8020697f SIOCSIFMTU = -0x7fdf9681
SIOCSIFNETMASK = 0x80206916 SIOCSIFNETMASK = -0x7fdf96ea
SIOCSIFPHYADDR = 0x80406946 SIOCSIFPHYADDR = -0x7fbf96ba
SIOCSIFPRIORITY = 0x8020699b SIOCSIFPRIORITY = -0x7fdf9665
SIOCSIFRDOMAIN = 0x8020699f SIOCSIFRDOMAIN = -0x7fdf9661
SIOCSIFRTLABEL = 0x80206982 SIOCSIFRTLABEL = -0x7fdf967e
SIOCSIFTIMESLOT = 0x80206985 SIOCSIFTIMESLOT = -0x7fdf967b
SIOCSIFXFLAGS = 0x8020699d SIOCSIFXFLAGS = -0x7fdf9663
SIOCSLIFPHYADDR = 0x8218694a SIOCSLIFPHYADDR = -0x7de796b6
SIOCSLIFPHYRTABLE = 0x802069a1 SIOCSLIFPHYRTABLE = -0x7fdf965f
SIOCSLOWAT = 0x80047302 SIOCSLOWAT = -0x7ffb8cfe
SIOCSPGRP = 0x80047308 SIOCSPGRP = -0x7ffb8cf8
SIOCSVH = 0xc02069f5 SIOCSVH = -0x3fdf960b
SOCK_DGRAM = 0x2 SOCK_DGRAM = 0x2
SOCK_RAW = 0x3 SOCK_RAW = 0x3
SOCK_RDM = 0x4 SOCK_RDM = 0x4
@ -1198,28 +1194,28 @@ const (
TCP_SACK_ENABLE = 0x8 TCP_SACK_ENABLE = 0x8
TIOCCBRK = 0x2000747a TIOCCBRK = 0x2000747a
TIOCCDTR = 0x20007478 TIOCCDTR = 0x20007478
TIOCCONS = 0x80047462 TIOCCONS = -0x7ffb8b9e
TIOCDRAIN = 0x2000745e TIOCDRAIN = 0x2000745e
TIOCEXCL = 0x2000740d TIOCEXCL = 0x2000740d
TIOCEXT = 0x80047460 TIOCEXT = -0x7ffb8ba0
TIOCFLAG_CLOCAL = 0x2 TIOCFLAG_CLOCAL = 0x2
TIOCFLAG_CRTSCTS = 0x4 TIOCFLAG_CRTSCTS = 0x4
TIOCFLAG_MDMBUF = 0x8 TIOCFLAG_MDMBUF = 0x8
TIOCFLAG_PPS = 0x10 TIOCFLAG_PPS = 0x10
TIOCFLAG_SOFTCAR = 0x1 TIOCFLAG_SOFTCAR = 0x1
TIOCFLUSH = 0x80047410 TIOCFLUSH = -0x7ffb8bf0
TIOCGETA = 0x402c7413 TIOCGETA = 0x402c7413
TIOCGETD = 0x4004741a TIOCGETD = 0x4004741a
TIOCGFLAGS = 0x4004745d TIOCGFLAGS = 0x4004745d
TIOCGPGRP = 0x40047477 TIOCGPGRP = 0x40047477
TIOCGTSTAMP = 0x4008745b TIOCGTSTAMP = 0x4008745b
TIOCGWINSZ = 0x40087468 TIOCGWINSZ = 0x40087468
TIOCMBIC = 0x8004746b TIOCMBIC = -0x7ffb8b95
TIOCMBIS = 0x8004746c TIOCMBIS = -0x7ffb8b94
TIOCMGET = 0x4004746a TIOCMGET = 0x4004746a
TIOCMODG = 0x4004746a TIOCMODG = 0x4004746a
TIOCMODS = 0x8004746d TIOCMODS = -0x7ffb8b93
TIOCMSET = 0x8004746d TIOCMSET = -0x7ffb8b93
TIOCM_CAR = 0x40 TIOCM_CAR = 0x40
TIOCM_CD = 0x40 TIOCM_CD = 0x40
TIOCM_CTS = 0x20 TIOCM_CTS = 0x20
@ -1234,8 +1230,8 @@ const (
TIOCNOTTY = 0x20007471 TIOCNOTTY = 0x20007471
TIOCNXCL = 0x2000740e TIOCNXCL = 0x2000740e
TIOCOUTQ = 0x40047473 TIOCOUTQ = 0x40047473
TIOCPKT = 0x80047470 TIOCPKT = -0x7ffb8b90
TIOCPKT_DATA = 0 TIOCPKT_DATA = 0x0
TIOCPKT_DOSTOP = 0x20 TIOCPKT_DOSTOP = 0x20
TIOCPKT_FLUSHREAD = 0x1 TIOCPKT_FLUSHREAD = 0x1
TIOCPKT_FLUSHWRITE = 0x2 TIOCPKT_FLUSHWRITE = 0x2
@ -1243,24 +1239,24 @@ const (
TIOCPKT_NOSTOP = 0x10 TIOCPKT_NOSTOP = 0x10
TIOCPKT_START = 0x8 TIOCPKT_START = 0x8
TIOCPKT_STOP = 0x4 TIOCPKT_STOP = 0x4
TIOCREMOTE = 0x80047469 TIOCREMOTE = -0x7ffb8b97
TIOCSBRK = 0x2000747b TIOCSBRK = 0x2000747b
TIOCSCTTY = 0x20007461 TIOCSCTTY = 0x20007461
TIOCSDTR = 0x20007479 TIOCSDTR = 0x20007479
TIOCSETA = 0x802c7414 TIOCSETA = -0x7fd38bec
TIOCSETAF = 0x802c7416 TIOCSETAF = -0x7fd38bea
TIOCSETAW = 0x802c7415 TIOCSETAW = -0x7fd38beb
TIOCSETD = 0x8004741b TIOCSETD = -0x7ffb8be5
TIOCSFLAGS = 0x8004745c TIOCSFLAGS = -0x7ffb8ba4
TIOCSIG = 0x8004745f TIOCSIG = -0x7ffb8ba1
TIOCSPGRP = 0x80047476 TIOCSPGRP = -0x7ffb8b8a
TIOCSTART = 0x2000746e TIOCSTART = 0x2000746e
TIOCSTAT = 0x80047465 TIOCSTAT = -0x7ffb8b9b
TIOCSTI = 0x80017472 TIOCSTI = -0x7ffe8b8e
TIOCSTOP = 0x2000746f TIOCSTOP = 0x2000746f
TIOCSTSTAMP = 0x8008745a TIOCSTSTAMP = -0x7ff78ba6
TIOCSWINSZ = 0x80087467 TIOCSWINSZ = -0x7ff78b99
TIOCUCNTL = 0x80047466 TIOCUCNTL = -0x7ffb8b9a
WALTSIG = 0x4 WALTSIG = 0x4
WCONTINUED = 0x8 WCONTINUED = 0x8
WCOREFLAG = 0x80 WCOREFLAG = 0x80
@ -1269,8 +1265,6 @@ const (
WUNTRACED = 0x2 WUNTRACED = 0x2
) )
// Types
// Error table // Error table
var errors = [...]string{ var errors = [...]string{
1: "operation not permitted", 1: "operation not permitted",

View File

@ -1,13 +1,11 @@
// mkerrors.sh -f -m64 // mkerrors.sh -m64
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// godefs -c gcc -f -m64 -gsyscall -f -m64 _const.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs -- -m64 _const.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
AF_APPLETALK = 0x10 AF_APPLETALK = 0x10
AF_BLUETOOTH = 0x20 AF_BLUETOOTH = 0x20
@ -42,7 +40,7 @@ const (
AF_SIP = 0x1d AF_SIP = 0x1d
AF_SNA = 0xb AF_SNA = 0xb
AF_UNIX = 0x1 AF_UNIX = 0x1
AF_UNSPEC = 0 AF_UNSPEC = 0x0
ARPHRD_ETHER = 0x1 ARPHRD_ETHER = 0x1
ARPHRD_FRELAY = 0xf ARPHRD_FRELAY = 0xf
ARPHRD_IEEE1394 = 0x18 ARPHRD_IEEE1394 = 0x18
@ -74,7 +72,7 @@ const (
BIOCVERSION = 0x40044271 BIOCVERSION = 0x40044271
BPF_A = 0x10 BPF_A = 0x10
BPF_ABS = 0x20 BPF_ABS = 0x20
BPF_ADD = 0 BPF_ADD = 0x0
BPF_ALIGNMENT = 0x4 BPF_ALIGNMENT = 0x4
BPF_ALU = 0x4 BPF_ALU = 0x4
BPF_AND = 0x50 BPF_AND = 0x50
@ -83,16 +81,16 @@ const (
BPF_DIRECTION_OUT = 0x2 BPF_DIRECTION_OUT = 0x2
BPF_DIV = 0x30 BPF_DIV = 0x30
BPF_H = 0x8 BPF_H = 0x8
BPF_IMM = 0 BPF_IMM = 0x0
BPF_IND = 0x40 BPF_IND = 0x40
BPF_JA = 0 BPF_JA = 0x0
BPF_JEQ = 0x10 BPF_JEQ = 0x10
BPF_JGE = 0x30 BPF_JGE = 0x30
BPF_JGT = 0x20 BPF_JGT = 0x20
BPF_JMP = 0x5 BPF_JMP = 0x5
BPF_JSET = 0x40 BPF_JSET = 0x40
BPF_K = 0 BPF_K = 0x0
BPF_LD = 0 BPF_LD = 0x0
BPF_LDX = 0x1 BPF_LDX = 0x1
BPF_LEN = 0x80 BPF_LEN = 0x80
BPF_LSH = 0x60 BPF_LSH = 0x60
@ -114,9 +112,9 @@ const (
BPF_ST = 0x2 BPF_ST = 0x2
BPF_STX = 0x3 BPF_STX = 0x3
BPF_SUB = 0x10 BPF_SUB = 0x10
BPF_TAX = 0 BPF_TAX = 0x0
BPF_TXA = 0x80 BPF_TXA = 0x80
BPF_W = 0 BPF_W = 0x0
BPF_X = 0x8 BPF_X = 0x8
CTL_MAXNAME = 0xc CTL_MAXNAME = 0xc
CTL_NET = 0x4 CTL_NET = 0x4
@ -133,7 +131,7 @@ const (
DLT_IEEE802_11_RADIO = 0x7f DLT_IEEE802_11_RADIO = 0x7f
DLT_LOOP = 0xc DLT_LOOP = 0xc
DLT_MPLS = 0xdb DLT_MPLS = 0xdb
DLT_NULL = 0 DLT_NULL = 0x0
DLT_PFLOG = 0x75 DLT_PFLOG = 0x75
DLT_PFSYNC = 0x12 DLT_PFSYNC = 0x12
DLT_PPP = 0x9 DLT_PPP = 0x9
@ -150,7 +148,7 @@ const (
DT_LNK = 0xa DT_LNK = 0xa
DT_REG = 0x8 DT_REG = 0x8
DT_SOCK = 0xc DT_SOCK = 0xc
DT_UNKNOWN = 0 DT_UNKNOWN = 0x0
E2BIG = 0x7 E2BIG = 0x7
EACCES = 0xd EACCES = 0xd
EADDRINUSE = 0x30 EADDRINUSE = 0x30
@ -480,7 +478,7 @@ const (
EXTPROC = 0x800 EXTPROC = 0x800
FD_CLOEXEC = 0x1 FD_CLOEXEC = 0x1
FD_SETSIZE = 0x400 FD_SETSIZE = 0x400
F_DUPFD = 0 F_DUPFD = 0x0
F_DUPFD_CLOEXEC = 0xa F_DUPFD_CLOEXEC = 0xa
F_GETFD = 0x1 F_GETFD = 0x1
F_GETFL = 0x3 F_GETFL = 0x3
@ -767,12 +765,12 @@ const (
IPPROTO_FRAGMENT = 0x2c IPPROTO_FRAGMENT = 0x2c
IPPROTO_GGP = 0x3 IPPROTO_GGP = 0x3
IPPROTO_GRE = 0x2f IPPROTO_GRE = 0x2f
IPPROTO_HOPOPTS = 0 IPPROTO_HOPOPTS = 0x0
IPPROTO_ICMP = 0x1 IPPROTO_ICMP = 0x1
IPPROTO_ICMPV6 = 0x3a IPPROTO_ICMPV6 = 0x3a
IPPROTO_IDP = 0x16 IPPROTO_IDP = 0x16
IPPROTO_IGMP = 0x2 IPPROTO_IGMP = 0x2
IPPROTO_IP = 0 IPPROTO_IP = 0x0
IPPROTO_IPCOMP = 0x6c IPPROTO_IPCOMP = 0x6c
IPPROTO_IPIP = 0x4 IPPROTO_IPIP = 0x4
IPPROTO_IPV4 = 0x4 IPPROTO_IPV4 = 0x4
@ -823,7 +821,7 @@ const (
IPV6_PIPEX = 0x3f IPV6_PIPEX = 0x3f
IPV6_PKTINFO = 0x2e IPV6_PKTINFO = 0x2e
IPV6_PORTRANGE = 0xe IPV6_PORTRANGE = 0xe
IPV6_PORTRANGE_DEFAULT = 0 IPV6_PORTRANGE_DEFAULT = 0x0
IPV6_PORTRANGE_HIGH = 0x1 IPV6_PORTRANGE_HIGH = 0x1
IPV6_PORTRANGE_LOW = 0x2 IPV6_PORTRANGE_LOW = 0x2
IPV6_RECVDSTOPTS = 0x28 IPV6_RECVDSTOPTS = 0x28
@ -836,9 +834,9 @@ const (
IPV6_RTABLE = 0x1021 IPV6_RTABLE = 0x1021
IPV6_RTHDR = 0x33 IPV6_RTHDR = 0x33
IPV6_RTHDRDSTOPTS = 0x23 IPV6_RTHDRDSTOPTS = 0x23
IPV6_RTHDR_LOOSE = 0 IPV6_RTHDR_LOOSE = 0x0
IPV6_RTHDR_STRICT = 0x1 IPV6_RTHDR_STRICT = 0x1
IPV6_RTHDR_TYPE_0 = 0 IPV6_RTHDR_TYPE_0 = 0x0
IPV6_SOCKOPT_RESERVED1 = 0x3 IPV6_SOCKOPT_RESERVED1 = 0x3
IPV6_TCLASS = 0x3d IPV6_TCLASS = 0x3d
IPV6_UNICAST_HOPS = 0x4 IPV6_UNICAST_HOPS = 0x4
@ -875,7 +873,7 @@ const (
IP_OPTIONS = 0x1 IP_OPTIONS = 0x1
IP_PIPEX = 0x22 IP_PIPEX = 0x22
IP_PORTRANGE = 0x13 IP_PORTRANGE = 0x13
IP_PORTRANGE_DEFAULT = 0 IP_PORTRANGE_DEFAULT = 0x0
IP_PORTRANGE_HIGH = 0x1 IP_PORTRANGE_HIGH = 0x1
IP_PORTRANGE_LOW = 0x2 IP_PORTRANGE_LOW = 0x2
IP_RECVDSTADDR = 0x7 IP_RECVDSTADDR = 0x7
@ -922,7 +920,7 @@ const (
O_NOCTTY = 0x8000 O_NOCTTY = 0x8000
O_NOFOLLOW = 0x100 O_NOFOLLOW = 0x100
O_NONBLOCK = 0x4 O_NONBLOCK = 0x4
O_RDONLY = 0 O_RDONLY = 0x0
O_RDWR = 0x2 O_RDWR = 0x2
O_RSYNC = 0x80 O_RSYNC = 0x80
O_SHLOCK = 0x10 O_SHLOCK = 0x10
@ -931,7 +929,7 @@ const (
O_WRONLY = 0x1 O_WRONLY = 0x1
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6
RTAX_BRD = 0x7 RTAX_BRD = 0x7
RTAX_DST = 0 RTAX_DST = 0x0
RTAX_GATEWAY = 0x1 RTAX_GATEWAY = 0x1
RTAX_GENMASK = 0x3 RTAX_GENMASK = 0x3
RTAX_IFA = 0x5 RTAX_IFA = 0x5
@ -1003,10 +1001,11 @@ const (
RTV_RTTVAR = 0x80 RTV_RTTVAR = 0x80
RTV_SPIPE = 0x10 RTV_SPIPE = 0x10
RTV_SSTHRESH = 0x20 RTV_SSTHRESH = 0x20
RT_TABLEID_MAX = 0xff
SCM_CREDS = 0x2 SCM_CREDS = 0x2
SCM_RIGHTS = 0x1 SCM_RIGHTS = 0x1
SCM_TIMESTAMP = 0x4 SCM_TIMESTAMP = 0x4
SHUT_RD = 0 SHUT_RD = 0x0
SHUT_RDWR = 0x2 SHUT_RDWR = 0x2
SHUT_WR = 0x1 SHUT_WR = 0x1
SIGABRT = 0x6 SIGABRT = 0x6
@ -1235,7 +1234,7 @@ const (
TIOCNXCL = 0x2000740e TIOCNXCL = 0x2000740e
TIOCOUTQ = 0x40047473 TIOCOUTQ = 0x40047473
TIOCPKT = 0x80047470 TIOCPKT = 0x80047470
TIOCPKT_DATA = 0 TIOCPKT_DATA = 0x0
TIOCPKT_DOSTOP = 0x20 TIOCPKT_DOSTOP = 0x20
TIOCPKT_FLUSHREAD = 0x1 TIOCPKT_FLUSHREAD = 0x1
TIOCPKT_FLUSHWRITE = 0x2 TIOCPKT_FLUSHWRITE = 0x2
@ -1269,8 +1268,6 @@ const (
WUNTRACED = 0x2 WUNTRACED = 0x2
) )
// Types
// Error table // Error table
var errors = [...]string{ var errors = [...]string{
1: "operation not permitted", 1: "operation not permitted",

View File

@ -1,70 +1,22 @@
// godefs -gsyscall -f-m32 types_freebsd.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_freebsd.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
sizeofPtr = 0x4 sizeofPtr = 0x4
sizeofShort = 0x2 sizeofShort = 0x2
sizeofInt = 0x4 sizeofInt = 0x4
sizeofLong = 0x4 sizeofLong = 0x4
sizeofLongLong = 0x8 sizeofLongLong = 0x8
O_CLOEXEC = 0
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x36
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPMreqn = 0xc
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x1c
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
PTRACE_TRACEME = 0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
SizeofIfMsghdr = 0x60
SizeofIfData = 0x50
SizeofIfaMsghdr = 0x14
SizeofIfmaMsghdr = 0x10
SizeofRtMsghdr = 0x5c
SizeofRtMetrics = 0x38
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfZbuf = 0xc
SizeofBpfProgram = 0x8
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x14
SizeofBpfZbufHeader = 0x20
) )
// Types type (
_C_short int16
type _C_short int16 _C_int int32
_C_long int32
type _C_int int32 _C_long_long int64
)
type _C_long int32
type _C_long_long int64
type Timespec struct { type Timespec struct {
Sec int32 Sec int32
@ -102,6 +54,27 @@ type Rlimit struct {
type _Gid_t uint32 type _Gid_t uint32
const (
O_CLOEXEC = 0
)
const (
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
)
type Stat_t struct { type Stat_t struct {
Dev uint32 Dev uint32
Ino uint32 Ino uint32
@ -120,8 +93,7 @@ type Stat_t struct {
Gen uint32 Gen uint32
Lspare int32 Lspare int32
Birthtimespec Timespec Birthtimespec Timespec
Pad_godefs_0 uint32 Pad_cgo_0 [8]byte
Pad_godefs_1 uint32
} }
type Statfs_t struct { type Statfs_t struct {
@ -142,7 +114,7 @@ type Statfs_t struct {
Spare [10]uint64 Spare [10]uint64
Namemax uint32 Namemax uint32
Owner uint32 Owner uint32
Fsid [8]byte /* fsid */ Fsid Fsid
Charspare [80]int8 Charspare [80]int8
Fstypename [16]int8 Fstypename [16]int8
Mntfromname [88]int8 Mntfromname [88]int8
@ -166,6 +138,10 @@ type Dirent struct {
Name [256]int8 Name [256]int8
} }
type Fsid struct {
Val [2]int32
}
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -260,6 +236,27 @@ type Inet6Pktinfo struct {
Ifindex uint32 Ifindex uint32
} }
const (
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x36
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPMreqn = 0xc
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x1c
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
)
const (
PTRACE_TRACEME = 0x0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
)
type Kevent_t struct { type Kevent_t struct {
Ident uint32 Ident uint32
Filter int16 Filter int16
@ -273,15 +270,24 @@ type FdSet struct {
X__fds_bits [32]uint32 X__fds_bits [32]uint32
} }
const (
SizeofIfMsghdr = 0x60
SizeofIfData = 0x50
SizeofIfaMsghdr = 0x14
SizeofIfmaMsghdr = 0x10
SizeofRtMsghdr = 0x5c
SizeofRtMetrics = 0x38
)
type IfMsghdr struct { type IfMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
Data IfData Data IfData
} }
type IfData struct { type IfData struct {
@ -313,40 +319,40 @@ type IfData struct {
} }
type IfaMsghdr struct { type IfaMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
Metric int32 Metric int32
} }
type IfmaMsghdr struct { type IfmaMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
} }
type RtMsghdr struct { type RtMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
Seq int32 Seq int32
Errno int32 Errno int32
Fmask int32 Fmask int32
Inits uint32 Inits uint32
Rmx RtMetrics Rmx RtMetrics
} }
type RtMetrics struct { type RtMetrics struct {
@ -364,6 +370,16 @@ type RtMetrics struct {
Filler [3]uint32 Filler [3]uint32
} }
const (
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfZbuf = 0xc
SizeofBpfProgram = 0x8
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x14
SizeofBpfZbufHeader = 0x20
)
type BpfVersion struct { type BpfVersion struct {
Major uint16 Major uint16
Minor uint16 Minor uint16
@ -393,11 +409,11 @@ type BpfInsn struct {
} }
type BpfHdr struct { type BpfHdr struct {
Tstamp Timeval Tstamp Timeval
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
} }
type BpfZbufHeader struct { type BpfZbufHeader struct {

View File

@ -1,70 +1,22 @@
// godefs -gsyscall -f-m64 types_freebsd.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_freebsd.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
sizeofPtr = 0x8 sizeofPtr = 0x8
sizeofShort = 0x2 sizeofShort = 0x2
sizeofInt = 0x4 sizeofInt = 0x4
sizeofLong = 0x8 sizeofLong = 0x8
sizeofLongLong = 0x8 sizeofLongLong = 0x8
O_CLOEXEC = 0
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x36
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPMreqn = 0xc
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x30
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
PTRACE_TRACEME = 0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
SizeofIfMsghdr = 0xa8
SizeofIfData = 0x98
SizeofIfaMsghdr = 0x14
SizeofIfmaMsghdr = 0x10
SizeofRtMsghdr = 0x98
SizeofRtMetrics = 0x70
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfZbuf = 0x18
SizeofBpfProgram = 0x10
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x20
SizeofBpfZbufHeader = 0x20
) )
// Types type (
_C_short int16
type _C_short int16 _C_int int32
_C_long int64
type _C_int int32 _C_long_long int64
)
type _C_long int64
type _C_long_long int64
type Timespec struct { type Timespec struct {
Sec int64 Sec int64
@ -102,6 +54,27 @@ type Rlimit struct {
type _Gid_t uint32 type _Gid_t uint32
const (
O_CLOEXEC = 0
)
const (
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
)
type Stat_t struct { type Stat_t struct {
Dev uint32 Dev uint32
Ino uint32 Ino uint32
@ -120,8 +93,6 @@ type Stat_t struct {
Gen uint32 Gen uint32
Lspare int32 Lspare int32
Birthtimespec Timespec Birthtimespec Timespec
Pad_godefs_0 uint8
Pad_godefs_1 uint8
} }
type Statfs_t struct { type Statfs_t struct {
@ -142,7 +113,7 @@ type Statfs_t struct {
Spare [10]uint64 Spare [10]uint64
Namemax uint32 Namemax uint32
Owner uint32 Owner uint32
Fsid [8]byte /* fsid */ Fsid Fsid
Charspare [80]int8 Charspare [80]int8
Fstypename [16]int8 Fstypename [16]int8
Mntfromname [88]int8 Mntfromname [88]int8
@ -150,13 +121,13 @@ type Statfs_t struct {
} }
type Flock_t struct { type Flock_t struct {
Start int64 Start int64
Len int64 Len int64
Pid int32 Pid int32
Type int16 Type int16
Whence int16 Whence int16
Sysid int32 Sysid int32
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
} }
type Dirent struct { type Dirent struct {
@ -167,6 +138,10 @@ type Dirent struct {
Name [256]int8 Name [256]int8
} }
type Fsid struct {
Val [2]int32
}
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -241,15 +216,15 @@ type IPv6Mreq struct {
} }
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
Iov *Iovec Iov *Iovec
Iovlen int32 Iovlen int32
Pad_godefs_1 [4]byte Pad_cgo_1 [4]byte
Control *byte Control *byte
Controllen uint32 Controllen uint32
Flags int32 Flags int32
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -263,6 +238,27 @@ type Inet6Pktinfo struct {
Ifindex uint32 Ifindex uint32
} }
const (
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x36
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPMreqn = 0xc
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x30
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
)
const (
PTRACE_TRACEME = 0x0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
)
type Kevent_t struct { type Kevent_t struct {
Ident uint64 Ident uint64
Filter int16 Filter int16
@ -276,15 +272,24 @@ type FdSet struct {
X__fds_bits [16]uint64 X__fds_bits [16]uint64
} }
const (
SizeofIfMsghdr = 0xa8
SizeofIfData = 0x98
SizeofIfaMsghdr = 0x14
SizeofIfmaMsghdr = 0x10
SizeofRtMsghdr = 0x98
SizeofRtMetrics = 0x70
)
type IfMsghdr struct { type IfMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
Data IfData Data IfData
} }
type IfData struct { type IfData struct {
@ -316,40 +321,40 @@ type IfData struct {
} }
type IfaMsghdr struct { type IfaMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
Metric int32 Metric int32
} }
type IfmaMsghdr struct { type IfmaMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
} }
type RtMsghdr struct { type RtMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
Type uint8 Type uint8
Index uint16 Index uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
Flags int32 Flags int32
Addrs int32 Addrs int32
Pid int32 Pid int32
Seq int32 Seq int32
Errno int32 Errno int32
Fmask int32 Fmask int32
Inits uint64 Inits uint64
Rmx RtMetrics Rmx RtMetrics
} }
type RtMetrics struct { type RtMetrics struct {
@ -367,6 +372,16 @@ type RtMetrics struct {
Filler [3]uint64 Filler [3]uint64
} }
const (
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfZbuf = 0x18
SizeofBpfProgram = 0x10
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x20
SizeofBpfZbufHeader = 0x20
)
type BpfVersion struct { type BpfVersion struct {
Major uint16 Major uint16
Minor uint16 Minor uint16
@ -384,9 +399,9 @@ type BpfZbuf struct {
} }
type BpfProgram struct { type BpfProgram struct {
Len uint32 Len uint32
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
Insns *BpfInsn Insns *BpfInsn
} }
type BpfInsn struct { type BpfInsn struct {
@ -397,11 +412,11 @@ type BpfInsn struct {
} }
type BpfHdr struct { type BpfHdr struct {
Tstamp Timeval Tstamp Timeval
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_godefs_0 [6]byte Pad_cgo_0 [6]byte
} }
type BpfZbufHeader struct { type BpfZbufHeader struct {

View File

@ -1,65 +1,22 @@
// godefs -gsyscall -f-m32 types_openbsd.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_openbsd.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
sizeofPtr = 0x4 sizeofPtr = 0x4
sizeofShort = 0x2 sizeofShort = 0x2
sizeofInt = 0x4 sizeofInt = 0x4
sizeofLong = 0x4 sizeofLong = 0x4
sizeofLongLong = 0x8 sizeofLongLong = 0x8
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x20
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x1c
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
PTRACE_TRACEME = 0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
SizeofIfMsghdr = 0xe4
SizeofIfData = 0xcc
SizeofIfaMsghdr = 0x18
SizeofRtMsghdr = 0x58
SizeofRtMetrics = 0x30
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfProgram = 0x8
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x14
) )
// Types type (
_C_short int16
type _C_short int16 _C_int int32
_C_long int32
type _C_int int32 _C_long_long int64
)
type _C_long int32
type _C_long_long int64
type Timespec struct { type Timespec struct {
Sec int32 Sec int32
@ -97,6 +54,23 @@ type Rlimit struct {
type _Gid_t uint32 type _Gid_t uint32
const (
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
)
type Stat_t struct { type Stat_t struct {
Dev int32 Dev int32
Ino uint32 Ino uint32
@ -133,7 +107,7 @@ type Statfs_t struct {
F_syncreads uint64 F_syncreads uint64
F_asyncwrites uint64 F_asyncwrites uint64
F_asyncreads uint64 F_asyncreads uint64
F_fsid [8]byte /* fsid_t */ F_fsid Fsid
F_namemax uint32 F_namemax uint32
F_owner uint32 F_owner uint32
F_ctime uint32 F_ctime uint32
@ -141,7 +115,7 @@ type Statfs_t struct {
F_fstypename [16]int8 F_fstypename [16]int8
F_mntonname [90]int8 F_mntonname [90]int8
F_mntfromname [90]int8 F_mntfromname [90]int8
Mount_info [160]byte /* mount_info */ Mount_info [160]byte
} }
type Flock_t struct { type Flock_t struct {
@ -160,6 +134,10 @@ type Dirent struct {
Name [256]int8 Name [256]int8
} }
type Fsid struct {
Val [2]int32
}
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -248,6 +226,26 @@ type Inet6Pktinfo struct {
Ifindex uint32 Ifindex uint32
} }
const (
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x20
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x1c
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
)
const (
PTRACE_TRACEME = 0x0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
)
type Kevent_t struct { type Kevent_t struct {
Ident uint32 Ident uint32
Filter int16 Filter int16
@ -261,6 +259,14 @@ type FdSet struct {
Bits [32]int32 Bits [32]int32
} }
const (
SizeofIfMsghdr = 0xe8
SizeofIfData = 0xd0
SizeofIfaMsghdr = 0x18
SizeofRtMsghdr = 0x58
SizeofRtMetrics = 0x30
)
type IfMsghdr struct { type IfMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
@ -277,27 +283,28 @@ type IfMsghdr struct {
} }
type IfData struct { type IfData struct {
Type uint8 Type uint8
Addrlen uint8 Addrlen uint8
Hdrlen uint8 Hdrlen uint8
Link_state uint8 Link_state uint8
Mtu uint32 Mtu uint32
Metric uint32 Metric uint32
Pad uint32 Pad uint32
Baudrate uint64 Baudrate uint64
Ipackets uint64 Ipackets uint64
Ierrors uint64 Ierrors uint64
Opackets uint64 Opackets uint64
Oerrors uint64 Oerrors uint64
Collisions uint64 Collisions uint64
Ibytes uint64 Ibytes uint64
Obytes uint64 Obytes uint64
Imcasts uint64 Imcasts uint64
Omcasts uint64 Omcasts uint64
Iqdrops uint64 Iqdrops uint64
Noproto uint64 Noproto uint64
Lastchange Timeval Capabilities uint32
Mclpool [7][12]byte /* mclpool */ Lastchange Timeval
Mclpool [7]Mclpool
} }
type IfaMsghdr struct { type IfaMsghdr struct {
@ -347,6 +354,22 @@ type RtMetrics struct {
Rttvar uint32 Rttvar uint32
} }
type Mclpool struct {
Grown uint32
Alive uint16
Hwm uint16
Cwm uint16
Lwm uint16
}
const (
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfProgram = 0x8
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x14
)
type BpfVersion struct { type BpfVersion struct {
Major uint16 Major uint16
Minor uint16 Minor uint16
@ -370,11 +393,11 @@ type BpfInsn struct {
} }
type BpfHdr struct { type BpfHdr struct {
Tstamp BpfTimeval Tstamp BpfTimeval
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
} }
type BpfTimeval struct { type BpfTimeval struct {

View File

@ -1,70 +1,27 @@
// godefs -gsyscall -f-m64 types_openbsd.c // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_openbsd.go
// MACHINE GENERATED - DO NOT EDIT.
package syscall package syscall
// Constants
const ( const (
sizeofPtr = 0x8 sizeofPtr = 0x8
sizeofShort = 0x2 sizeofShort = 0x2
sizeofInt = 0x4 sizeofInt = 0x4
sizeofLong = 0x8 sizeofLong = 0x8
sizeofLongLong = 0x8 sizeofLongLong = 0x8
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x20
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x30
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
PTRACE_TRACEME = 0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
SizeofIfMsghdr = 0xf0
SizeofIfData = 0xd8
SizeofIfaMsghdr = 0x18
SizeofRtMsghdr = 0x58
SizeofRtMetrics = 0x30
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfProgram = 0x10
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x14
) )
// Types type (
_C_short int16
type _C_short int16 _C_int int32
_C_long int64
type _C_int int32 _C_long_long int64
)
type _C_long int64
type _C_long_long int64
type Timespec struct { type Timespec struct {
Sec int32 Sec int32
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
Nsec int64 Nsec int64
} }
type Timeval struct { type Timeval struct {
@ -98,6 +55,23 @@ type Rlimit struct {
type _Gid_t uint32 type _Gid_t uint32
const (
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
S_IFDIR = 0x4000
S_IFBLK = 0x6000
S_IFREG = 0x8000
S_IFLNK = 0xa000
S_IFSOCK = 0xc000
S_ISUID = 0x800
S_ISGID = 0x400
S_ISVTX = 0x200
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
)
type Stat_t struct { type Stat_t struct {
Dev int32 Dev int32
Ino uint32 Ino uint32
@ -124,7 +98,7 @@ type Statfs_t struct {
F_flags uint32 F_flags uint32
F_bsize uint32 F_bsize uint32
F_iosize uint32 F_iosize uint32
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
F_blocks uint64 F_blocks uint64
F_bfree uint64 F_bfree uint64
F_bavail int64 F_bavail int64
@ -135,7 +109,7 @@ type Statfs_t struct {
F_syncreads uint64 F_syncreads uint64
F_asyncwrites uint64 F_asyncwrites uint64
F_asyncreads uint64 F_asyncreads uint64
F_fsid [8]byte /* fsid_t */ F_fsid Fsid
F_namemax uint32 F_namemax uint32
F_owner uint32 F_owner uint32
F_ctime uint32 F_ctime uint32
@ -143,8 +117,8 @@ type Statfs_t struct {
F_fstypename [16]int8 F_fstypename [16]int8
F_mntonname [90]int8 F_mntonname [90]int8
F_mntfromname [90]int8 F_mntfromname [90]int8
Pad_godefs_1 [4]byte Pad_cgo_1 [4]byte
Mount_info [160]byte /* mount_info */ Mount_info [160]byte
} }
type Flock_t struct { type Flock_t struct {
@ -163,6 +137,10 @@ type Dirent struct {
Name [256]int8 Name [256]int8
} }
type Fsid struct {
Val [2]int32
}
type RawSockaddrInet4 struct { type RawSockaddrInet4 struct {
Len uint8 Len uint8
Family uint8 Family uint8
@ -231,15 +209,15 @@ type IPv6Mreq struct {
} }
type Msghdr struct { type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
Iov *Iovec Iov *Iovec
Iovlen uint32 Iovlen uint32
Pad_godefs_1 [4]byte Pad_cgo_1 [4]byte
Control *byte Control *byte
Controllen uint32 Controllen uint32
Flags int32 Flags int32
} }
type Cmsghdr struct { type Cmsghdr struct {
@ -253,6 +231,26 @@ type Inet6Pktinfo struct {
Ifindex uint32 Ifindex uint32
} }
const (
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
SizeofSockaddrUnix = 0x6a
SizeofSockaddrDatalink = 0x20
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPv6Mreq = 0x14
SizeofMsghdr = 0x30
SizeofCmsghdr = 0xc
SizeofInet6Pktinfo = 0x14
)
const (
PTRACE_TRACEME = 0x0
PTRACE_CONT = 0x7
PTRACE_KILL = 0x8
)
type Kevent_t struct { type Kevent_t struct {
Ident uint32 Ident uint32
Filter int16 Filter int16
@ -266,6 +264,14 @@ type FdSet struct {
Bits [32]int32 Bits [32]int32
} }
const (
SizeofIfMsghdr = 0xf0
SizeofIfData = 0xd8
SizeofIfaMsghdr = 0x18
SizeofRtMsghdr = 0x58
SizeofRtMetrics = 0x30
)
type IfMsghdr struct { type IfMsghdr struct {
Msglen uint16 Msglen uint16
Version uint8 Version uint8
@ -282,28 +288,28 @@ type IfMsghdr struct {
} }
type IfData struct { type IfData struct {
Type uint8 Type uint8
Addrlen uint8 Addrlen uint8
Hdrlen uint8 Hdrlen uint8
Link_state uint8 Link_state uint8
Mtu uint32 Mtu uint32
Metric uint32 Metric uint32
Pad uint32 Pad uint32
Baudrate uint64 Baudrate uint64
Ipackets uint64 Ipackets uint64
Ierrors uint64 Ierrors uint64
Opackets uint64 Opackets uint64
Oerrors uint64 Oerrors uint64
Collisions uint64 Collisions uint64
Ibytes uint64 Ibytes uint64
Obytes uint64 Obytes uint64
Imcasts uint64 Imcasts uint64
Omcasts uint64 Omcasts uint64
Iqdrops uint64 Iqdrops uint64
Noproto uint64 Noproto uint64
Lastchange Timeval Lastchange Timeval
Mclpool [7][12]byte /* mclpool */ Mclpool [7]Mclpool
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
} }
type IfaMsghdr struct { type IfaMsghdr struct {
@ -353,6 +359,22 @@ type RtMetrics struct {
Rttvar uint32 Rttvar uint32
} }
type Mclpool struct {
Grown uint32
Alive uint16
Hwm uint16
Cwm uint16
Lwm uint16
}
const (
SizeofBpfVersion = 0x4
SizeofBpfStat = 0x8
SizeofBpfProgram = 0x10
SizeofBpfInsn = 0x8
SizeofBpfHdr = 0x14
)
type BpfVersion struct { type BpfVersion struct {
Major uint16 Major uint16
Minor uint16 Minor uint16
@ -364,9 +386,9 @@ type BpfStat struct {
} }
type BpfProgram struct { type BpfProgram struct {
Len uint32 Len uint32
Pad_godefs_0 [4]byte Pad_cgo_0 [4]byte
Insns *BpfInsn Insns *BpfInsn
} }
type BpfInsn struct { type BpfInsn struct {
@ -377,11 +399,11 @@ type BpfInsn struct {
} }
type BpfHdr struct { type BpfHdr struct {
Tstamp BpfTimeval Tstamp BpfTimeval
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_godefs_0 [2]byte Pad_cgo_0 [2]byte
} }
type BpfTimeval struct { type BpfTimeval struct {