diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go | 2050 |
1 files changed, 1836 insertions, 214 deletions
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go index 1fc7f7d..c606f47 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go | |||
@@ -1,6 +1,7 @@ | |||
1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go | ||
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
3 | |||
1 | // +build sparc64,linux | 4 | // +build sparc64,linux |
2 | // Created by cgo -godefs - DO NOT EDIT | ||
3 | // cgo -godefs types_linux.go | go run mkpost.go | ||
4 | 5 | ||
5 | package unix | 6 | package unix |
6 | 7 | ||
@@ -26,20 +27,18 @@ type Timespec struct { | |||
26 | } | 27 | } |
27 | 28 | ||
28 | type Timeval struct { | 29 | type Timeval struct { |
29 | Sec int64 | 30 | Sec int64 |
30 | Usec int32 | 31 | Usec int32 |
31 | Pad_cgo_0 [4]byte | 32 | _ [4]byte |
32 | } | 33 | } |
33 | 34 | ||
34 | type Timex struct { | 35 | type Timex struct { |
35 | Modes uint32 | 36 | Modes uint32 |
36 | Pad_cgo_0 [4]byte | ||
37 | Offset int64 | 37 | Offset int64 |
38 | Freq int64 | 38 | Freq int64 |
39 | Maxerror int64 | 39 | Maxerror int64 |
40 | Esterror int64 | 40 | Esterror int64 |
41 | Status int32 | 41 | Status int32 |
42 | Pad_cgo_1 [4]byte | ||
43 | Constant int64 | 42 | Constant int64 |
44 | Precision int64 | 43 | Precision int64 |
45 | Tolerance int64 | 44 | Tolerance int64 |
@@ -48,14 +47,13 @@ type Timex struct { | |||
48 | Ppsfreq int64 | 47 | Ppsfreq int64 |
49 | Jitter int64 | 48 | Jitter int64 |
50 | Shift int32 | 49 | Shift int32 |
51 | Pad_cgo_2 [4]byte | ||
52 | Stabil int64 | 50 | Stabil int64 |
53 | Jitcnt int64 | 51 | Jitcnt int64 |
54 | Calcnt int64 | 52 | Calcnt int64 |
55 | Errcnt int64 | 53 | Errcnt int64 |
56 | Stbcnt int64 | 54 | Stbcnt int64 |
57 | Tai int32 | 55 | Tai int32 |
58 | Pad_cgo_3 [44]byte | 56 | _ [44]byte |
59 | } | 57 | } |
60 | 58 | ||
61 | type Time_t int64 | 59 | type Time_t int64 |
@@ -99,64 +97,96 @@ type Rlimit struct { | |||
99 | type _Gid_t uint32 | 97 | type _Gid_t uint32 |
100 | 98 | ||
101 | type Stat_t struct { | 99 | type Stat_t struct { |
102 | Dev uint64 | 100 | Dev uint64 |
103 | X__pad1 uint16 | 101 | _ uint16 |
104 | Pad_cgo_0 [6]byte | 102 | Ino uint64 |
105 | Ino uint64 | 103 | Mode uint32 |
106 | Mode uint32 | 104 | Nlink uint32 |
107 | Nlink uint32 | 105 | Uid uint32 |
108 | Uid uint32 | 106 | Gid uint32 |
109 | Gid uint32 | 107 | Rdev uint64 |
110 | Rdev uint64 | 108 | _ uint16 |
111 | X__pad2 uint16 | 109 | Size int64 |
112 | Pad_cgo_1 [6]byte | 110 | Blksize int64 |
113 | Size int64 | 111 | Blocks int64 |
114 | Blksize int64 | 112 | Atim Timespec |
115 | Blocks int64 | 113 | Mtim Timespec |
116 | Atim Timespec | 114 | Ctim Timespec |
117 | Mtim Timespec | 115 | _ uint64 |
118 | Ctim Timespec | 116 | _ uint64 |
119 | X__glibc_reserved4 uint64 | ||
120 | X__glibc_reserved5 uint64 | ||
121 | } | 117 | } |
122 | 118 | ||
123 | type Statfs_t struct { | 119 | type StatxTimestamp struct { |
124 | Type int64 | 120 | Sec int64 |
125 | Bsize int64 | 121 | Nsec uint32 |
126 | Blocks uint64 | 122 | _ int32 |
127 | Bfree uint64 | 123 | } |
128 | Bavail uint64 | 124 | |
129 | Files uint64 | 125 | type Statx_t struct { |
130 | Ffree uint64 | 126 | Mask uint32 |
131 | Fsid Fsid | 127 | Blksize uint32 |
132 | Namelen int64 | 128 | Attributes uint64 |
133 | Frsize int64 | 129 | Nlink uint32 |
134 | Flags int64 | 130 | Uid uint32 |
135 | Spare [4]int64 | 131 | Gid uint32 |
132 | Mode uint16 | ||
133 | _ [1]uint16 | ||
134 | Ino uint64 | ||
135 | Size uint64 | ||
136 | Blocks uint64 | ||
137 | Attributes_mask uint64 | ||
138 | Atime StatxTimestamp | ||
139 | Btime StatxTimestamp | ||
140 | Ctime StatxTimestamp | ||
141 | Mtime StatxTimestamp | ||
142 | Rdev_major uint32 | ||
143 | Rdev_minor uint32 | ||
144 | Dev_major uint32 | ||
145 | Dev_minor uint32 | ||
146 | _ [14]uint64 | ||
136 | } | 147 | } |
137 | 148 | ||
138 | type Dirent struct { | 149 | type Dirent struct { |
139 | Ino uint64 | 150 | Ino uint64 |
140 | Off int64 | 151 | Off int64 |
141 | Reclen uint16 | 152 | Reclen uint16 |
142 | Type uint8 | 153 | Type uint8 |
143 | Name [256]int8 | 154 | Name [256]int8 |
144 | Pad_cgo_0 [5]byte | 155 | _ [5]byte |
145 | } | 156 | } |
146 | 157 | ||
147 | type Fsid struct { | 158 | type Fsid struct { |
148 | X__val [2]int32 | 159 | Val [2]int32 |
149 | } | 160 | } |
150 | 161 | ||
151 | type Flock_t struct { | 162 | type Flock_t struct { |
152 | Type int16 | 163 | Type int16 |
153 | Whence int16 | 164 | Whence int16 |
154 | Pad_cgo_0 [4]byte | 165 | Start int64 |
155 | Start int64 | 166 | Len int64 |
156 | Len int64 | 167 | Pid int32 |
157 | Pid int32 | 168 | _ int16 |
158 | X__glibc_reserved int16 | 169 | _ [2]byte |
159 | Pad_cgo_1 [2]byte | 170 | } |
171 | |||
172 | type FscryptPolicy struct { | ||
173 | Version uint8 | ||
174 | Contents_encryption_mode uint8 | ||
175 | Filenames_encryption_mode uint8 | ||
176 | Flags uint8 | ||
177 | Master_key_descriptor [8]uint8 | ||
178 | } | ||
179 | |||
180 | type FscryptKey struct { | ||
181 | Mode uint32 | ||
182 | Raw [64]uint8 | ||
183 | Size uint32 | ||
184 | } | ||
185 | |||
186 | type KeyctlDHParams struct { | ||
187 | Private int32 | ||
188 | Prime int32 | ||
189 | Base int32 | ||
160 | } | 190 | } |
161 | 191 | ||
162 | const ( | 192 | const ( |
@@ -211,11 +241,26 @@ type RawSockaddrHCI struct { | |||
211 | Channel uint16 | 241 | Channel uint16 |
212 | } | 242 | } |
213 | 243 | ||
244 | type RawSockaddrL2 struct { | ||
245 | Family uint16 | ||
246 | Psm uint16 | ||
247 | Bdaddr [6]uint8 | ||
248 | Cid uint16 | ||
249 | Bdaddr_type uint8 | ||
250 | _ [1]byte | ||
251 | } | ||
252 | |||
253 | type RawSockaddrRFCOMM struct { | ||
254 | Family uint16 | ||
255 | Bdaddr [6]uint8 | ||
256 | Channel uint8 | ||
257 | _ [1]byte | ||
258 | } | ||
259 | |||
214 | type RawSockaddrCAN struct { | 260 | type RawSockaddrCAN struct { |
215 | Family uint16 | 261 | Family uint16 |
216 | Pad_cgo_0 [2]byte | 262 | Ifindex int32 |
217 | Ifindex int32 | 263 | Addr [8]byte |
218 | Addr [8]byte | ||
219 | } | 264 | } |
220 | 265 | ||
221 | type RawSockaddrALG struct { | 266 | type RawSockaddrALG struct { |
@@ -234,6 +279,16 @@ type RawSockaddrVM struct { | |||
234 | Zero [4]uint8 | 279 | Zero [4]uint8 |
235 | } | 280 | } |
236 | 281 | ||
282 | type RawSockaddrXDP struct { | ||
283 | Family uint16 | ||
284 | Flags uint16 | ||
285 | Ifindex uint32 | ||
286 | Queue_id uint32 | ||
287 | Shared_umem_fd uint32 | ||
288 | } | ||
289 | |||
290 | type RawSockaddrPPPoX [0x1e]byte | ||
291 | |||
237 | type RawSockaddr struct { | 292 | type RawSockaddr struct { |
238 | Family uint16 | 293 | Family uint16 |
239 | Data [14]int8 | 294 | Data [14]int8 |
@@ -272,16 +327,22 @@ type IPv6Mreq struct { | |||
272 | Interface uint32 | 327 | Interface uint32 |
273 | } | 328 | } |
274 | 329 | ||
330 | type PacketMreq struct { | ||
331 | Ifindex int32 | ||
332 | Type uint16 | ||
333 | Alen uint16 | ||
334 | Address [8]uint8 | ||
335 | } | ||
336 | |||
275 | type Msghdr struct { | 337 | type Msghdr struct { |
276 | Name *byte | 338 | Name *byte |
277 | Namelen uint32 | 339 | Namelen uint32 |
278 | Pad_cgo_0 [4]byte | ||
279 | Iov *Iovec | 340 | Iov *Iovec |
280 | Iovlen uint64 | 341 | Iovlen uint64 |
281 | Control *byte | 342 | Control *byte |
282 | Controllen uint64 | 343 | Controllen uint64 |
283 | Flags int32 | 344 | Flags int32 |
284 | Pad_cgo_1 [4]byte | 345 | _ [4]byte |
285 | } | 346 | } |
286 | 347 | ||
287 | type Cmsghdr struct { | 348 | type Cmsghdr struct { |
@@ -323,7 +384,6 @@ type TCPInfo struct { | |||
323 | Probes uint8 | 384 | Probes uint8 |
324 | Backoff uint8 | 385 | Backoff uint8 |
325 | Options uint8 | 386 | Options uint8 |
326 | Pad_cgo_0 [2]byte | ||
327 | Rto uint32 | 387 | Rto uint32 |
328 | Ato uint32 | 388 | Ato uint32 |
329 | Snd_mss uint32 | 389 | Snd_mss uint32 |
@@ -350,6 +410,11 @@ type TCPInfo struct { | |||
350 | Total_retrans uint32 | 410 | Total_retrans uint32 |
351 | } | 411 | } |
352 | 412 | ||
413 | type CanFilter struct { | ||
414 | Id uint32 | ||
415 | Mask uint32 | ||
416 | } | ||
417 | |||
353 | const ( | 418 | const ( |
354 | SizeofSockaddrInet4 = 0x10 | 419 | SizeofSockaddrInet4 = 0x10 |
355 | SizeofSockaddrInet6 = 0x1c | 420 | SizeofSockaddrInet6 = 0x1c |
@@ -358,13 +423,19 @@ const ( | |||
358 | SizeofSockaddrLinklayer = 0x14 | 423 | SizeofSockaddrLinklayer = 0x14 |
359 | SizeofSockaddrNetlink = 0xc | 424 | SizeofSockaddrNetlink = 0xc |
360 | SizeofSockaddrHCI = 0x6 | 425 | SizeofSockaddrHCI = 0x6 |
426 | SizeofSockaddrL2 = 0xe | ||
427 | SizeofSockaddrRFCOMM = 0xa | ||
361 | SizeofSockaddrCAN = 0x10 | 428 | SizeofSockaddrCAN = 0x10 |
362 | SizeofSockaddrALG = 0x58 | 429 | SizeofSockaddrALG = 0x58 |
363 | SizeofSockaddrVM = 0x10 | 430 | SizeofSockaddrVM = 0x10 |
431 | SizeofSockaddrXDP = 0x10 | ||
432 | SizeofSockaddrPPPoX = 0x1e | ||
364 | SizeofLinger = 0x8 | 433 | SizeofLinger = 0x8 |
434 | SizeofIovec = 0x10 | ||
365 | SizeofIPMreq = 0x8 | 435 | SizeofIPMreq = 0x8 |
366 | SizeofIPMreqn = 0xc | 436 | SizeofIPMreqn = 0xc |
367 | SizeofIPv6Mreq = 0x14 | 437 | SizeofIPv6Mreq = 0x14 |
438 | SizeofPacketMreq = 0x10 | ||
368 | SizeofMsghdr = 0x38 | 439 | SizeofMsghdr = 0x38 |
369 | SizeofCmsghdr = 0x10 | 440 | SizeofCmsghdr = 0x10 |
370 | SizeofInet4Pktinfo = 0xc | 441 | SizeofInet4Pktinfo = 0xc |
@@ -373,126 +444,185 @@ const ( | |||
373 | SizeofICMPv6Filter = 0x20 | 444 | SizeofICMPv6Filter = 0x20 |
374 | SizeofUcred = 0xc | 445 | SizeofUcred = 0xc |
375 | SizeofTCPInfo = 0x68 | 446 | SizeofTCPInfo = 0x68 |
447 | SizeofCanFilter = 0x8 | ||
376 | ) | 448 | ) |
377 | 449 | ||
378 | const ( | 450 | const ( |
379 | IFA_UNSPEC = 0x0 | 451 | NDA_UNSPEC = 0x0 |
380 | IFA_ADDRESS = 0x1 | 452 | NDA_DST = 0x1 |
381 | IFA_LOCAL = 0x2 | 453 | NDA_LLADDR = 0x2 |
382 | IFA_LABEL = 0x3 | 454 | NDA_CACHEINFO = 0x3 |
383 | IFA_BROADCAST = 0x4 | 455 | NDA_PROBES = 0x4 |
384 | IFA_ANYCAST = 0x5 | 456 | NDA_VLAN = 0x5 |
385 | IFA_CACHEINFO = 0x6 | 457 | NDA_PORT = 0x6 |
386 | IFA_MULTICAST = 0x7 | 458 | NDA_VNI = 0x7 |
387 | IFLA_UNSPEC = 0x0 | 459 | NDA_IFINDEX = 0x8 |
388 | IFLA_ADDRESS = 0x1 | 460 | NDA_MASTER = 0x9 |
389 | IFLA_BROADCAST = 0x2 | 461 | NDA_LINK_NETNSID = 0xa |
390 | IFLA_IFNAME = 0x3 | 462 | NDA_SRC_VNI = 0xb |
391 | IFLA_MTU = 0x4 | 463 | NTF_USE = 0x1 |
392 | IFLA_LINK = 0x5 | 464 | NTF_SELF = 0x2 |
393 | IFLA_QDISC = 0x6 | 465 | NTF_MASTER = 0x4 |
394 | IFLA_STATS = 0x7 | 466 | NTF_PROXY = 0x8 |
395 | IFLA_COST = 0x8 | 467 | NTF_EXT_LEARNED = 0x10 |
396 | IFLA_PRIORITY = 0x9 | 468 | NTF_OFFLOADED = 0x20 |
397 | IFLA_MASTER = 0xa | 469 | NTF_ROUTER = 0x80 |
398 | IFLA_WIRELESS = 0xb | 470 | NUD_INCOMPLETE = 0x1 |
399 | IFLA_PROTINFO = 0xc | 471 | NUD_REACHABLE = 0x2 |
400 | IFLA_TXQLEN = 0xd | 472 | NUD_STALE = 0x4 |
401 | IFLA_MAP = 0xe | 473 | NUD_DELAY = 0x8 |
402 | IFLA_WEIGHT = 0xf | 474 | NUD_PROBE = 0x10 |
403 | IFLA_OPERSTATE = 0x10 | 475 | NUD_FAILED = 0x20 |
404 | IFLA_LINKMODE = 0x11 | 476 | NUD_NOARP = 0x40 |
405 | IFLA_LINKINFO = 0x12 | 477 | NUD_PERMANENT = 0x80 |
406 | IFLA_NET_NS_PID = 0x13 | 478 | NUD_NONE = 0x0 |
407 | IFLA_IFALIAS = 0x14 | 479 | IFA_UNSPEC = 0x0 |
408 | IFLA_NUM_VF = 0x15 | 480 | IFA_ADDRESS = 0x1 |
409 | IFLA_VFINFO_LIST = 0x16 | 481 | IFA_LOCAL = 0x2 |
410 | IFLA_STATS64 = 0x17 | 482 | IFA_LABEL = 0x3 |
411 | IFLA_VF_PORTS = 0x18 | 483 | IFA_BROADCAST = 0x4 |
412 | IFLA_PORT_SELF = 0x19 | 484 | IFA_ANYCAST = 0x5 |
413 | IFLA_AF_SPEC = 0x1a | 485 | IFA_CACHEINFO = 0x6 |
414 | IFLA_GROUP = 0x1b | 486 | IFA_MULTICAST = 0x7 |
415 | IFLA_NET_NS_FD = 0x1c | 487 | IFA_FLAGS = 0x8 |
416 | IFLA_EXT_MASK = 0x1d | 488 | IFA_RT_PRIORITY = 0x9 |
417 | IFLA_PROMISCUITY = 0x1e | 489 | IFA_TARGET_NETNSID = 0xa |
418 | IFLA_NUM_TX_QUEUES = 0x1f | 490 | IFLA_UNSPEC = 0x0 |
419 | IFLA_NUM_RX_QUEUES = 0x20 | 491 | IFLA_ADDRESS = 0x1 |
420 | IFLA_CARRIER = 0x21 | 492 | IFLA_BROADCAST = 0x2 |
421 | IFLA_PHYS_PORT_ID = 0x22 | 493 | IFLA_IFNAME = 0x3 |
422 | IFLA_CARRIER_CHANGES = 0x23 | 494 | IFLA_MTU = 0x4 |
423 | IFLA_PHYS_SWITCH_ID = 0x24 | 495 | IFLA_LINK = 0x5 |
424 | IFLA_LINK_NETNSID = 0x25 | 496 | IFLA_QDISC = 0x6 |
425 | IFLA_PHYS_PORT_NAME = 0x26 | 497 | IFLA_STATS = 0x7 |
426 | IFLA_PROTO_DOWN = 0x27 | 498 | IFLA_COST = 0x8 |
427 | IFLA_GSO_MAX_SEGS = 0x28 | 499 | IFLA_PRIORITY = 0x9 |
428 | IFLA_GSO_MAX_SIZE = 0x29 | 500 | IFLA_MASTER = 0xa |
429 | IFLA_PAD = 0x2a | 501 | IFLA_WIRELESS = 0xb |
430 | IFLA_XDP = 0x2b | 502 | IFLA_PROTINFO = 0xc |
431 | IFLA_EVENT = 0x2c | 503 | IFLA_TXQLEN = 0xd |
432 | IFLA_NEW_NETNSID = 0x2d | 504 | IFLA_MAP = 0xe |
433 | IFLA_IF_NETNSID = 0x2e | 505 | IFLA_WEIGHT = 0xf |
434 | IFLA_MAX = 0x2e | 506 | IFLA_OPERSTATE = 0x10 |
435 | RT_SCOPE_UNIVERSE = 0x0 | 507 | IFLA_LINKMODE = 0x11 |
436 | RT_SCOPE_SITE = 0xc8 | 508 | IFLA_LINKINFO = 0x12 |
437 | RT_SCOPE_LINK = 0xfd | 509 | IFLA_NET_NS_PID = 0x13 |
438 | RT_SCOPE_HOST = 0xfe | 510 | IFLA_IFALIAS = 0x14 |
439 | RT_SCOPE_NOWHERE = 0xff | 511 | IFLA_NUM_VF = 0x15 |
440 | RT_TABLE_UNSPEC = 0x0 | 512 | IFLA_VFINFO_LIST = 0x16 |
441 | RT_TABLE_COMPAT = 0xfc | 513 | IFLA_STATS64 = 0x17 |
442 | RT_TABLE_DEFAULT = 0xfd | 514 | IFLA_VF_PORTS = 0x18 |
443 | RT_TABLE_MAIN = 0xfe | 515 | IFLA_PORT_SELF = 0x19 |
444 | RT_TABLE_LOCAL = 0xff | 516 | IFLA_AF_SPEC = 0x1a |
445 | RT_TABLE_MAX = 0xffffffff | 517 | IFLA_GROUP = 0x1b |
446 | RTA_UNSPEC = 0x0 | 518 | IFLA_NET_NS_FD = 0x1c |
447 | RTA_DST = 0x1 | 519 | IFLA_EXT_MASK = 0x1d |
448 | RTA_SRC = 0x2 | 520 | IFLA_PROMISCUITY = 0x1e |
449 | RTA_IIF = 0x3 | 521 | IFLA_NUM_TX_QUEUES = 0x1f |
450 | RTA_OIF = 0x4 | 522 | IFLA_NUM_RX_QUEUES = 0x20 |
451 | RTA_GATEWAY = 0x5 | 523 | IFLA_CARRIER = 0x21 |
452 | RTA_PRIORITY = 0x6 | 524 | IFLA_PHYS_PORT_ID = 0x22 |
453 | RTA_PREFSRC = 0x7 | 525 | IFLA_CARRIER_CHANGES = 0x23 |
454 | RTA_METRICS = 0x8 | 526 | IFLA_PHYS_SWITCH_ID = 0x24 |
455 | RTA_MULTIPATH = 0x9 | 527 | IFLA_LINK_NETNSID = 0x25 |
456 | RTA_FLOW = 0xb | 528 | IFLA_PHYS_PORT_NAME = 0x26 |
457 | RTA_CACHEINFO = 0xc | 529 | IFLA_PROTO_DOWN = 0x27 |
458 | RTA_TABLE = 0xf | 530 | IFLA_GSO_MAX_SEGS = 0x28 |
459 | RTN_UNSPEC = 0x0 | 531 | IFLA_GSO_MAX_SIZE = 0x29 |
460 | RTN_UNICAST = 0x1 | 532 | IFLA_PAD = 0x2a |
461 | RTN_LOCAL = 0x2 | 533 | IFLA_XDP = 0x2b |
462 | RTN_BROADCAST = 0x3 | 534 | IFLA_EVENT = 0x2c |
463 | RTN_ANYCAST = 0x4 | 535 | IFLA_NEW_NETNSID = 0x2d |
464 | RTN_MULTICAST = 0x5 | 536 | IFLA_IF_NETNSID = 0x2e |
465 | RTN_BLACKHOLE = 0x6 | 537 | IFLA_TARGET_NETNSID = 0x2e |
466 | RTN_UNREACHABLE = 0x7 | 538 | IFLA_CARRIER_UP_COUNT = 0x2f |
467 | RTN_PROHIBIT = 0x8 | 539 | IFLA_CARRIER_DOWN_COUNT = 0x30 |
468 | RTN_THROW = 0x9 | 540 | IFLA_NEW_IFINDEX = 0x31 |
469 | RTN_NAT = 0xa | 541 | IFLA_MIN_MTU = 0x32 |
470 | RTN_XRESOLVE = 0xb | 542 | IFLA_MAX_MTU = 0x33 |
471 | RTNLGRP_NONE = 0x0 | 543 | IFLA_MAX = 0x33 |
472 | RTNLGRP_LINK = 0x1 | 544 | IFLA_INFO_KIND = 0x1 |
473 | RTNLGRP_NOTIFY = 0x2 | 545 | IFLA_INFO_DATA = 0x2 |
474 | RTNLGRP_NEIGH = 0x3 | 546 | IFLA_INFO_XSTATS = 0x3 |
475 | RTNLGRP_TC = 0x4 | 547 | IFLA_INFO_SLAVE_KIND = 0x4 |
476 | RTNLGRP_IPV4_IFADDR = 0x5 | 548 | IFLA_INFO_SLAVE_DATA = 0x5 |
477 | RTNLGRP_IPV4_MROUTE = 0x6 | 549 | RT_SCOPE_UNIVERSE = 0x0 |
478 | RTNLGRP_IPV4_ROUTE = 0x7 | 550 | RT_SCOPE_SITE = 0xc8 |
479 | RTNLGRP_IPV4_RULE = 0x8 | 551 | RT_SCOPE_LINK = 0xfd |
480 | RTNLGRP_IPV6_IFADDR = 0x9 | 552 | RT_SCOPE_HOST = 0xfe |
481 | RTNLGRP_IPV6_MROUTE = 0xa | 553 | RT_SCOPE_NOWHERE = 0xff |
482 | RTNLGRP_IPV6_ROUTE = 0xb | 554 | RT_TABLE_UNSPEC = 0x0 |
483 | RTNLGRP_IPV6_IFINFO = 0xc | 555 | RT_TABLE_COMPAT = 0xfc |
484 | RTNLGRP_IPV6_PREFIX = 0x12 | 556 | RT_TABLE_DEFAULT = 0xfd |
485 | RTNLGRP_IPV6_RULE = 0x13 | 557 | RT_TABLE_MAIN = 0xfe |
486 | RTNLGRP_ND_USEROPT = 0x14 | 558 | RT_TABLE_LOCAL = 0xff |
487 | SizeofNlMsghdr = 0x10 | 559 | RT_TABLE_MAX = 0xffffffff |
488 | SizeofNlMsgerr = 0x14 | 560 | RTA_UNSPEC = 0x0 |
489 | SizeofRtGenmsg = 0x1 | 561 | RTA_DST = 0x1 |
490 | SizeofNlAttr = 0x4 | 562 | RTA_SRC = 0x2 |
491 | SizeofRtAttr = 0x4 | 563 | RTA_IIF = 0x3 |
492 | SizeofIfInfomsg = 0x10 | 564 | RTA_OIF = 0x4 |
493 | SizeofIfAddrmsg = 0x8 | 565 | RTA_GATEWAY = 0x5 |
494 | SizeofRtMsg = 0xc | 566 | RTA_PRIORITY = 0x6 |
495 | SizeofRtNexthop = 0x8 | 567 | RTA_PREFSRC = 0x7 |
568 | RTA_METRICS = 0x8 | ||
569 | RTA_MULTIPATH = 0x9 | ||
570 | RTA_FLOW = 0xb | ||
571 | RTA_CACHEINFO = 0xc | ||
572 | RTA_TABLE = 0xf | ||
573 | RTA_MARK = 0x10 | ||
574 | RTA_MFC_STATS = 0x11 | ||
575 | RTA_VIA = 0x12 | ||
576 | RTA_NEWDST = 0x13 | ||
577 | RTA_PREF = 0x14 | ||
578 | RTA_ENCAP_TYPE = 0x15 | ||
579 | RTA_ENCAP = 0x16 | ||
580 | RTA_EXPIRES = 0x17 | ||
581 | RTA_PAD = 0x18 | ||
582 | RTA_UID = 0x19 | ||
583 | RTA_TTL_PROPAGATE = 0x1a | ||
584 | RTA_IP_PROTO = 0x1b | ||
585 | RTA_SPORT = 0x1c | ||
586 | RTA_DPORT = 0x1d | ||
587 | RTN_UNSPEC = 0x0 | ||
588 | RTN_UNICAST = 0x1 | ||
589 | RTN_LOCAL = 0x2 | ||
590 | RTN_BROADCAST = 0x3 | ||
591 | RTN_ANYCAST = 0x4 | ||
592 | RTN_MULTICAST = 0x5 | ||
593 | RTN_BLACKHOLE = 0x6 | ||
594 | RTN_UNREACHABLE = 0x7 | ||
595 | RTN_PROHIBIT = 0x8 | ||
596 | RTN_THROW = 0x9 | ||
597 | RTN_NAT = 0xa | ||
598 | RTN_XRESOLVE = 0xb | ||
599 | RTNLGRP_NONE = 0x0 | ||
600 | RTNLGRP_LINK = 0x1 | ||
601 | RTNLGRP_NOTIFY = 0x2 | ||
602 | RTNLGRP_NEIGH = 0x3 | ||
603 | RTNLGRP_TC = 0x4 | ||
604 | RTNLGRP_IPV4_IFADDR = 0x5 | ||
605 | RTNLGRP_IPV4_MROUTE = 0x6 | ||
606 | RTNLGRP_IPV4_ROUTE = 0x7 | ||
607 | RTNLGRP_IPV4_RULE = 0x8 | ||
608 | RTNLGRP_IPV6_IFADDR = 0x9 | ||
609 | RTNLGRP_IPV6_MROUTE = 0xa | ||
610 | RTNLGRP_IPV6_ROUTE = 0xb | ||
611 | RTNLGRP_IPV6_IFINFO = 0xc | ||
612 | RTNLGRP_IPV6_PREFIX = 0x12 | ||
613 | RTNLGRP_IPV6_RULE = 0x13 | ||
614 | RTNLGRP_ND_USEROPT = 0x14 | ||
615 | SizeofNlMsghdr = 0x10 | ||
616 | SizeofNlMsgerr = 0x14 | ||
617 | SizeofRtGenmsg = 0x1 | ||
618 | SizeofNlAttr = 0x4 | ||
619 | SizeofRtAttr = 0x4 | ||
620 | SizeofIfInfomsg = 0x10 | ||
621 | SizeofIfAddrmsg = 0x8 | ||
622 | SizeofRtMsg = 0xc | ||
623 | SizeofRtNexthop = 0x8 | ||
624 | SizeofNdUseroptmsg = 0x10 | ||
625 | SizeofNdMsg = 0xc | ||
496 | ) | 626 | ) |
497 | 627 | ||
498 | type NlMsghdr struct { | 628 | type NlMsghdr struct { |
@@ -523,12 +653,12 @@ type RtAttr struct { | |||
523 | } | 653 | } |
524 | 654 | ||
525 | type IfInfomsg struct { | 655 | type IfInfomsg struct { |
526 | Family uint8 | 656 | Family uint8 |
527 | X__ifi_pad uint8 | 657 | _ uint8 |
528 | Type uint16 | 658 | Type uint16 |
529 | Index int32 | 659 | Index int32 |
530 | Flags uint32 | 660 | Flags uint32 |
531 | Change uint32 | 661 | Change uint32 |
532 | } | 662 | } |
533 | 663 | ||
534 | type IfAddrmsg struct { | 664 | type IfAddrmsg struct { |
@@ -558,6 +688,27 @@ type RtNexthop struct { | |||
558 | Ifindex int32 | 688 | Ifindex int32 |
559 | } | 689 | } |
560 | 690 | ||
691 | type NdUseroptmsg struct { | ||
692 | Family uint8 | ||
693 | Pad1 uint8 | ||
694 | Opts_len uint16 | ||
695 | Ifindex int32 | ||
696 | Icmp_type uint8 | ||
697 | Icmp_code uint8 | ||
698 | Pad2 uint16 | ||
699 | Pad3 uint32 | ||
700 | } | ||
701 | |||
702 | type NdMsg struct { | ||
703 | Family uint8 | ||
704 | Pad1 uint8 | ||
705 | Pad2 uint16 | ||
706 | Ifindex int32 | ||
707 | State uint16 | ||
708 | Flags uint8 | ||
709 | Type uint8 | ||
710 | } | ||
711 | |||
561 | const ( | 712 | const ( |
562 | SizeofSockFilter = 0x8 | 713 | SizeofSockFilter = 0x8 |
563 | SizeofSockFprog = 0x10 | 714 | SizeofSockFprog = 0x10 |
@@ -571,9 +722,8 @@ type SockFilter struct { | |||
571 | } | 722 | } |
572 | 723 | ||
573 | type SockFprog struct { | 724 | type SockFprog struct { |
574 | Len uint16 | 725 | Len uint16 |
575 | Pad_cgo_0 [6]byte | 726 | Filter *SockFilter |
576 | Filter *SockFilter | ||
577 | } | 727 | } |
578 | 728 | ||
579 | type InotifyEvent struct { | 729 | type InotifyEvent struct { |
@@ -594,15 +744,6 @@ type PtraceRegs struct { | |||
594 | Magic uint32 | 744 | Magic uint32 |
595 | } | 745 | } |
596 | 746 | ||
597 | type ptracePsw struct { | ||
598 | } | ||
599 | |||
600 | type ptraceFpregs struct { | ||
601 | } | ||
602 | |||
603 | type ptracePer struct { | ||
604 | } | ||
605 | |||
606 | type FdSet struct { | 747 | type FdSet struct { |
607 | Bits [16]int64 | 748 | Bits [16]int64 |
608 | } | 749 | } |
@@ -618,12 +759,11 @@ type Sysinfo_t struct { | |||
618 | Freeswap uint64 | 759 | Freeswap uint64 |
619 | Procs uint16 | 760 | Procs uint16 |
620 | Pad uint16 | 761 | Pad uint16 |
621 | Pad_cgo_0 [4]byte | ||
622 | Totalhigh uint64 | 762 | Totalhigh uint64 |
623 | Freehigh uint64 | 763 | Freehigh uint64 |
624 | Unit uint32 | 764 | Unit uint32 |
625 | X_f [0]int8 | 765 | _ [0]int8 |
626 | Pad_cgo_1 [4]byte | 766 | _ [4]byte |
627 | } | 767 | } |
628 | 768 | ||
629 | type Utsname struct { | 769 | type Utsname struct { |
@@ -636,26 +776,34 @@ type Utsname struct { | |||
636 | } | 776 | } |
637 | 777 | ||
638 | type Ustat_t struct { | 778 | type Ustat_t struct { |
639 | Tfree int32 | 779 | Tfree int32 |
640 | Pad_cgo_0 [4]byte | 780 | Tinode uint64 |
641 | Tinode uint64 | 781 | Fname [6]int8 |
642 | Fname [6]int8 | 782 | Fpack [6]int8 |
643 | Fpack [6]int8 | 783 | _ [4]byte |
644 | Pad_cgo_1 [4]byte | ||
645 | } | 784 | } |
646 | 785 | ||
647 | type EpollEvent struct { | 786 | type EpollEvent struct { |
648 | Events uint32 | 787 | Events uint32 |
649 | X_padFd int32 | 788 | _ int32 |
650 | Fd int32 | 789 | Fd int32 |
651 | Pad int32 | 790 | Pad int32 |
652 | } | 791 | } |
653 | 792 | ||
654 | const ( | 793 | const ( |
655 | AT_FDCWD = -0x64 | 794 | AT_EMPTY_PATH = 0x1000 |
656 | AT_REMOVEDIR = 0x200 | 795 | AT_FDCWD = -0x64 |
796 | AT_NO_AUTOMOUNT = 0x800 | ||
797 | AT_REMOVEDIR = 0x200 | ||
798 | |||
799 | AT_STATX_SYNC_AS_STAT = 0x0 | ||
800 | AT_STATX_FORCE_SYNC = 0x2000 | ||
801 | AT_STATX_DONT_SYNC = 0x4000 | ||
802 | |||
657 | AT_SYMLINK_FOLLOW = 0x400 | 803 | AT_SYMLINK_FOLLOW = 0x400 |
658 | AT_SYMLINK_NOFOLLOW = 0x100 | 804 | AT_SYMLINK_NOFOLLOW = 0x100 |
805 | |||
806 | AT_EACCESS = 0x200 | ||
659 | ) | 807 | ) |
660 | 808 | ||
661 | type PollFd struct { | 809 | type PollFd struct { |
@@ -675,9 +823,36 @@ const ( | |||
675 | ) | 823 | ) |
676 | 824 | ||
677 | type Sigset_t struct { | 825 | type Sigset_t struct { |
678 | X__val [16]uint64 | 826 | Val [16]uint64 |
827 | } | ||
828 | |||
829 | type SignalfdSiginfo struct { | ||
830 | Signo uint32 | ||
831 | Errno int32 | ||
832 | Code int32 | ||
833 | Pid uint32 | ||
834 | Uid uint32 | ||
835 | Fd int32 | ||
836 | Tid uint32 | ||
837 | Band uint32 | ||
838 | Overrun uint32 | ||
839 | Trapno uint32 | ||
840 | Status int32 | ||
841 | Int int32 | ||
842 | Ptr uint64 | ||
843 | Utime uint64 | ||
844 | Stime uint64 | ||
845 | Addr uint64 | ||
846 | Addr_lsb uint16 | ||
847 | _ uint16 | ||
848 | Syscall int32 | ||
849 | Call_addr uint64 | ||
850 | Arch uint32 | ||
851 | _ [28]uint8 | ||
679 | } | 852 | } |
680 | 853 | ||
854 | const PERF_IOC_FLAG_GROUP = 0x1 | ||
855 | |||
681 | type Termios struct { | 856 | type Termios struct { |
682 | Iflag uint32 | 857 | Iflag uint32 |
683 | Oflag uint32 | 858 | Oflag uint32 |
@@ -688,3 +863,1450 @@ type Termios struct { | |||
688 | Ispeed uint32 | 863 | Ispeed uint32 |
689 | Ospeed uint32 | 864 | Ospeed uint32 |
690 | } | 865 | } |
866 | |||
867 | type Winsize struct { | ||
868 | Row uint16 | ||
869 | Col uint16 | ||
870 | Xpixel uint16 | ||
871 | Ypixel uint16 | ||
872 | } | ||
873 | |||
874 | type Taskstats struct { | ||
875 | Version uint16 | ||
876 | Ac_exitcode uint32 | ||
877 | Ac_flag uint8 | ||
878 | Ac_nice uint8 | ||
879 | Cpu_count uint64 | ||
880 | Cpu_delay_total uint64 | ||
881 | Blkio_count uint64 | ||
882 | Blkio_delay_total uint64 | ||
883 | Swapin_count uint64 | ||
884 | Swapin_delay_total uint64 | ||
885 | Cpu_run_real_total uint64 | ||
886 | Cpu_run_virtual_total uint64 | ||
887 | Ac_comm [32]int8 | ||
888 | Ac_sched uint8 | ||
889 | Ac_pad [3]uint8 | ||
890 | _ [4]byte | ||
891 | Ac_uid uint32 | ||
892 | Ac_gid uint32 | ||
893 | Ac_pid uint32 | ||
894 | Ac_ppid uint32 | ||
895 | Ac_btime uint32 | ||
896 | Ac_etime uint64 | ||
897 | Ac_utime uint64 | ||
898 | Ac_stime uint64 | ||
899 | Ac_minflt uint64 | ||
900 | Ac_majflt uint64 | ||
901 | Coremem uint64 | ||
902 | Virtmem uint64 | ||
903 | Hiwater_rss uint64 | ||
904 | Hiwater_vm uint64 | ||
905 | Read_char uint64 | ||
906 | Write_char uint64 | ||
907 | Read_syscalls uint64 | ||
908 | Write_syscalls uint64 | ||
909 | Read_bytes uint64 | ||
910 | Write_bytes uint64 | ||
911 | Cancelled_write_bytes uint64 | ||
912 | Nvcsw uint64 | ||
913 | Nivcsw uint64 | ||
914 | Ac_utimescaled uint64 | ||
915 | Ac_stimescaled uint64 | ||
916 | Cpu_scaled_run_real_total uint64 | ||
917 | Freepages_count uint64 | ||
918 | Freepages_delay_total uint64 | ||
919 | Thrashing_count uint64 | ||
920 | Thrashing_delay_total uint64 | ||
921 | } | ||
922 | |||
923 | const ( | ||
924 | TASKSTATS_CMD_UNSPEC = 0x0 | ||
925 | TASKSTATS_CMD_GET = 0x1 | ||
926 | TASKSTATS_CMD_NEW = 0x2 | ||
927 | TASKSTATS_TYPE_UNSPEC = 0x0 | ||
928 | TASKSTATS_TYPE_PID = 0x1 | ||
929 | TASKSTATS_TYPE_TGID = 0x2 | ||
930 | TASKSTATS_TYPE_STATS = 0x3 | ||
931 | TASKSTATS_TYPE_AGGR_PID = 0x4 | ||
932 | TASKSTATS_TYPE_AGGR_TGID = 0x5 | ||
933 | TASKSTATS_TYPE_NULL = 0x6 | ||
934 | TASKSTATS_CMD_ATTR_UNSPEC = 0x0 | ||
935 | TASKSTATS_CMD_ATTR_PID = 0x1 | ||
936 | TASKSTATS_CMD_ATTR_TGID = 0x2 | ||
937 | TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 | ||
938 | TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 | ||
939 | ) | ||
940 | |||
941 | type CGroupStats struct { | ||
942 | Sleeping uint64 | ||
943 | Running uint64 | ||
944 | Stopped uint64 | ||
945 | Uninterruptible uint64 | ||
946 | Io_wait uint64 | ||
947 | } | ||
948 | |||
949 | const ( | ||
950 | CGROUPSTATS_CMD_UNSPEC = 0x3 | ||
951 | CGROUPSTATS_CMD_GET = 0x4 | ||
952 | CGROUPSTATS_CMD_NEW = 0x5 | ||
953 | CGROUPSTATS_TYPE_UNSPEC = 0x0 | ||
954 | CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 | ||
955 | CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 | ||
956 | CGROUPSTATS_CMD_ATTR_FD = 0x1 | ||
957 | ) | ||
958 | |||
959 | type Genlmsghdr struct { | ||
960 | Cmd uint8 | ||
961 | Version uint8 | ||
962 | Reserved uint16 | ||
963 | } | ||
964 | |||
965 | const ( | ||
966 | CTRL_CMD_UNSPEC = 0x0 | ||
967 | CTRL_CMD_NEWFAMILY = 0x1 | ||
968 | CTRL_CMD_DELFAMILY = 0x2 | ||
969 | CTRL_CMD_GETFAMILY = 0x3 | ||
970 | CTRL_CMD_NEWOPS = 0x4 | ||
971 | CTRL_CMD_DELOPS = 0x5 | ||
972 | CTRL_CMD_GETOPS = 0x6 | ||
973 | CTRL_CMD_NEWMCAST_GRP = 0x7 | ||
974 | CTRL_CMD_DELMCAST_GRP = 0x8 | ||
975 | CTRL_CMD_GETMCAST_GRP = 0x9 | ||
976 | CTRL_ATTR_UNSPEC = 0x0 | ||
977 | CTRL_ATTR_FAMILY_ID = 0x1 | ||
978 | CTRL_ATTR_FAMILY_NAME = 0x2 | ||
979 | CTRL_ATTR_VERSION = 0x3 | ||
980 | CTRL_ATTR_HDRSIZE = 0x4 | ||
981 | CTRL_ATTR_MAXATTR = 0x5 | ||
982 | CTRL_ATTR_OPS = 0x6 | ||
983 | CTRL_ATTR_MCAST_GROUPS = 0x7 | ||
984 | CTRL_ATTR_OP_UNSPEC = 0x0 | ||
985 | CTRL_ATTR_OP_ID = 0x1 | ||
986 | CTRL_ATTR_OP_FLAGS = 0x2 | ||
987 | CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 | ||
988 | CTRL_ATTR_MCAST_GRP_NAME = 0x1 | ||
989 | CTRL_ATTR_MCAST_GRP_ID = 0x2 | ||
990 | ) | ||
991 | |||
992 | type cpuMask uint64 | ||
993 | |||
994 | const ( | ||
995 | _CPU_SETSIZE = 0x400 | ||
996 | _NCPUBITS = 0x40 | ||
997 | ) | ||
998 | |||
999 | const ( | ||
1000 | BDADDR_BREDR = 0x0 | ||
1001 | BDADDR_LE_PUBLIC = 0x1 | ||
1002 | BDADDR_LE_RANDOM = 0x2 | ||
1003 | ) | ||
1004 | |||
1005 | type PerfEventAttr struct { | ||
1006 | Type uint32 | ||
1007 | Size uint32 | ||
1008 | Config uint64 | ||
1009 | Sample uint64 | ||
1010 | Sample_type uint64 | ||
1011 | Read_format uint64 | ||
1012 | Bits uint64 | ||
1013 | Wakeup uint32 | ||
1014 | Bp_type uint32 | ||
1015 | Ext1 uint64 | ||
1016 | Ext2 uint64 | ||
1017 | Branch_sample_type uint64 | ||
1018 | Sample_regs_user uint64 | ||
1019 | Sample_stack_user uint32 | ||
1020 | Clockid int32 | ||
1021 | Sample_regs_intr uint64 | ||
1022 | Aux_watermark uint32 | ||
1023 | Sample_max_stack uint16 | ||
1024 | _ uint16 | ||
1025 | } | ||
1026 | |||
1027 | type PerfEventMmapPage struct { | ||
1028 | Version uint32 | ||
1029 | Compat_version uint32 | ||
1030 | Lock uint32 | ||
1031 | Index uint32 | ||
1032 | Offset int64 | ||
1033 | Time_enabled uint64 | ||
1034 | Time_running uint64 | ||
1035 | Capabilities uint64 | ||
1036 | Pmc_width uint16 | ||
1037 | Time_shift uint16 | ||
1038 | Time_mult uint32 | ||
1039 | Time_offset uint64 | ||
1040 | Time_zero uint64 | ||
1041 | Size uint32 | ||
1042 | _ [948]uint8 | ||
1043 | Data_head uint64 | ||
1044 | Data_tail uint64 | ||
1045 | Data_offset uint64 | ||
1046 | Data_size uint64 | ||
1047 | Aux_head uint64 | ||
1048 | Aux_tail uint64 | ||
1049 | Aux_offset uint64 | ||
1050 | Aux_size uint64 | ||
1051 | } | ||
1052 | |||
1053 | const ( | ||
1054 | PerfBitDisabled uint64 = CBitFieldMaskBit0 | ||
1055 | PerfBitInherit = CBitFieldMaskBit1 | ||
1056 | PerfBitPinned = CBitFieldMaskBit2 | ||
1057 | PerfBitExclusive = CBitFieldMaskBit3 | ||
1058 | PerfBitExcludeUser = CBitFieldMaskBit4 | ||
1059 | PerfBitExcludeKernel = CBitFieldMaskBit5 | ||
1060 | PerfBitExcludeHv = CBitFieldMaskBit6 | ||
1061 | PerfBitExcludeIdle = CBitFieldMaskBit7 | ||
1062 | PerfBitMmap = CBitFieldMaskBit8 | ||
1063 | PerfBitComm = CBitFieldMaskBit9 | ||
1064 | PerfBitFreq = CBitFieldMaskBit10 | ||
1065 | PerfBitInheritStat = CBitFieldMaskBit11 | ||
1066 | PerfBitEnableOnExec = CBitFieldMaskBit12 | ||
1067 | PerfBitTask = CBitFieldMaskBit13 | ||
1068 | PerfBitWatermark = CBitFieldMaskBit14 | ||
1069 | PerfBitPreciseIPBit1 = CBitFieldMaskBit15 | ||
1070 | PerfBitPreciseIPBit2 = CBitFieldMaskBit16 | ||
1071 | PerfBitMmapData = CBitFieldMaskBit17 | ||
1072 | PerfBitSampleIDAll = CBitFieldMaskBit18 | ||
1073 | PerfBitExcludeHost = CBitFieldMaskBit19 | ||
1074 | PerfBitExcludeGuest = CBitFieldMaskBit20 | ||
1075 | PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 | ||
1076 | PerfBitExcludeCallchainUser = CBitFieldMaskBit22 | ||
1077 | PerfBitMmap2 = CBitFieldMaskBit23 | ||
1078 | PerfBitCommExec = CBitFieldMaskBit24 | ||
1079 | PerfBitUseClockID = CBitFieldMaskBit25 | ||
1080 | PerfBitContextSwitch = CBitFieldMaskBit26 | ||
1081 | ) | ||
1082 | |||
1083 | const ( | ||
1084 | PERF_TYPE_HARDWARE = 0x0 | ||
1085 | PERF_TYPE_SOFTWARE = 0x1 | ||
1086 | PERF_TYPE_TRACEPOINT = 0x2 | ||
1087 | PERF_TYPE_HW_CACHE = 0x3 | ||
1088 | PERF_TYPE_RAW = 0x4 | ||
1089 | PERF_TYPE_BREAKPOINT = 0x5 | ||
1090 | |||
1091 | PERF_COUNT_HW_CPU_CYCLES = 0x0 | ||
1092 | PERF_COUNT_HW_INSTRUCTIONS = 0x1 | ||
1093 | PERF_COUNT_HW_CACHE_REFERENCES = 0x2 | ||
1094 | PERF_COUNT_HW_CACHE_MISSES = 0x3 | ||
1095 | PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 | ||
1096 | PERF_COUNT_HW_BRANCH_MISSES = 0x5 | ||
1097 | PERF_COUNT_HW_BUS_CYCLES = 0x6 | ||
1098 | PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 | ||
1099 | PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 | ||
1100 | PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 | ||
1101 | |||
1102 | PERF_COUNT_HW_CACHE_L1D = 0x0 | ||
1103 | PERF_COUNT_HW_CACHE_L1I = 0x1 | ||
1104 | PERF_COUNT_HW_CACHE_LL = 0x2 | ||
1105 | PERF_COUNT_HW_CACHE_DTLB = 0x3 | ||
1106 | PERF_COUNT_HW_CACHE_ITLB = 0x4 | ||
1107 | PERF_COUNT_HW_CACHE_BPU = 0x5 | ||
1108 | PERF_COUNT_HW_CACHE_NODE = 0x6 | ||
1109 | |||
1110 | PERF_COUNT_HW_CACHE_OP_READ = 0x0 | ||
1111 | PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 | ||
1112 | PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 | ||
1113 | |||
1114 | PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 | ||
1115 | PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 | ||
1116 | |||
1117 | PERF_COUNT_SW_CPU_CLOCK = 0x0 | ||
1118 | PERF_COUNT_SW_TASK_CLOCK = 0x1 | ||
1119 | PERF_COUNT_SW_PAGE_FAULTS = 0x2 | ||
1120 | PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 | ||
1121 | PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 | ||
1122 | PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 | ||
1123 | PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 | ||
1124 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 | ||
1125 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 | ||
1126 | PERF_COUNT_SW_DUMMY = 0x9 | ||
1127 | PERF_COUNT_SW_BPF_OUTPUT = 0xa | ||
1128 | |||
1129 | PERF_SAMPLE_IP = 0x1 | ||
1130 | PERF_SAMPLE_TID = 0x2 | ||
1131 | PERF_SAMPLE_TIME = 0x4 | ||
1132 | PERF_SAMPLE_ADDR = 0x8 | ||
1133 | PERF_SAMPLE_READ = 0x10 | ||
1134 | PERF_SAMPLE_CALLCHAIN = 0x20 | ||
1135 | PERF_SAMPLE_ID = 0x40 | ||
1136 | PERF_SAMPLE_CPU = 0x80 | ||
1137 | PERF_SAMPLE_PERIOD = 0x100 | ||
1138 | PERF_SAMPLE_STREAM_ID = 0x200 | ||
1139 | PERF_SAMPLE_RAW = 0x400 | ||
1140 | PERF_SAMPLE_BRANCH_STACK = 0x800 | ||
1141 | |||
1142 | PERF_SAMPLE_BRANCH_USER = 0x1 | ||
1143 | PERF_SAMPLE_BRANCH_KERNEL = 0x2 | ||
1144 | PERF_SAMPLE_BRANCH_HV = 0x4 | ||
1145 | PERF_SAMPLE_BRANCH_ANY = 0x8 | ||
1146 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 | ||
1147 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 | ||
1148 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 | ||
1149 | PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 | ||
1150 | PERF_SAMPLE_BRANCH_IN_TX = 0x100 | ||
1151 | PERF_SAMPLE_BRANCH_NO_TX = 0x200 | ||
1152 | PERF_SAMPLE_BRANCH_COND = 0x400 | ||
1153 | PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 | ||
1154 | PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 | ||
1155 | PERF_SAMPLE_BRANCH_CALL = 0x2000 | ||
1156 | PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 | ||
1157 | PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 | ||
1158 | PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 | ||
1159 | |||
1160 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 | ||
1161 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 | ||
1162 | PERF_FORMAT_ID = 0x4 | ||
1163 | PERF_FORMAT_GROUP = 0x8 | ||
1164 | |||
1165 | PERF_RECORD_MMAP = 0x1 | ||
1166 | PERF_RECORD_LOST = 0x2 | ||
1167 | PERF_RECORD_COMM = 0x3 | ||
1168 | PERF_RECORD_EXIT = 0x4 | ||
1169 | PERF_RECORD_THROTTLE = 0x5 | ||
1170 | PERF_RECORD_UNTHROTTLE = 0x6 | ||
1171 | PERF_RECORD_FORK = 0x7 | ||
1172 | PERF_RECORD_READ = 0x8 | ||
1173 | PERF_RECORD_SAMPLE = 0x9 | ||
1174 | PERF_RECORD_MMAP2 = 0xa | ||
1175 | PERF_RECORD_AUX = 0xb | ||
1176 | PERF_RECORD_ITRACE_START = 0xc | ||
1177 | PERF_RECORD_LOST_SAMPLES = 0xd | ||
1178 | PERF_RECORD_SWITCH = 0xe | ||
1179 | PERF_RECORD_SWITCH_CPU_WIDE = 0xf | ||
1180 | PERF_RECORD_NAMESPACES = 0x10 | ||
1181 | |||
1182 | PERF_CONTEXT_HV = -0x20 | ||
1183 | PERF_CONTEXT_KERNEL = -0x80 | ||
1184 | PERF_CONTEXT_USER = -0x200 | ||
1185 | |||
1186 | PERF_CONTEXT_GUEST = -0x800 | ||
1187 | PERF_CONTEXT_GUEST_KERNEL = -0x880 | ||
1188 | PERF_CONTEXT_GUEST_USER = -0xa00 | ||
1189 | |||
1190 | PERF_FLAG_FD_NO_GROUP = 0x1 | ||
1191 | PERF_FLAG_FD_OUTPUT = 0x2 | ||
1192 | PERF_FLAG_PID_CGROUP = 0x4 | ||
1193 | PERF_FLAG_FD_CLOEXEC = 0x8 | ||
1194 | ) | ||
1195 | |||
1196 | const ( | ||
1197 | CBitFieldMaskBit0 = 0x8000000000000000 | ||
1198 | CBitFieldMaskBit1 = 0x4000000000000000 | ||
1199 | CBitFieldMaskBit2 = 0x2000000000000000 | ||
1200 | CBitFieldMaskBit3 = 0x1000000000000000 | ||
1201 | CBitFieldMaskBit4 = 0x800000000000000 | ||
1202 | CBitFieldMaskBit5 = 0x400000000000000 | ||
1203 | CBitFieldMaskBit6 = 0x200000000000000 | ||
1204 | CBitFieldMaskBit7 = 0x100000000000000 | ||
1205 | CBitFieldMaskBit8 = 0x80000000000000 | ||
1206 | CBitFieldMaskBit9 = 0x40000000000000 | ||
1207 | CBitFieldMaskBit10 = 0x20000000000000 | ||
1208 | CBitFieldMaskBit11 = 0x10000000000000 | ||
1209 | CBitFieldMaskBit12 = 0x8000000000000 | ||
1210 | CBitFieldMaskBit13 = 0x4000000000000 | ||
1211 | CBitFieldMaskBit14 = 0x2000000000000 | ||
1212 | CBitFieldMaskBit15 = 0x1000000000000 | ||
1213 | CBitFieldMaskBit16 = 0x800000000000 | ||
1214 | CBitFieldMaskBit17 = 0x400000000000 | ||
1215 | CBitFieldMaskBit18 = 0x200000000000 | ||
1216 | CBitFieldMaskBit19 = 0x100000000000 | ||
1217 | CBitFieldMaskBit20 = 0x80000000000 | ||
1218 | CBitFieldMaskBit21 = 0x40000000000 | ||
1219 | CBitFieldMaskBit22 = 0x20000000000 | ||
1220 | CBitFieldMaskBit23 = 0x10000000000 | ||
1221 | CBitFieldMaskBit24 = 0x8000000000 | ||
1222 | CBitFieldMaskBit25 = 0x4000000000 | ||
1223 | CBitFieldMaskBit26 = 0x2000000000 | ||
1224 | CBitFieldMaskBit27 = 0x1000000000 | ||
1225 | CBitFieldMaskBit28 = 0x800000000 | ||
1226 | CBitFieldMaskBit29 = 0x400000000 | ||
1227 | CBitFieldMaskBit30 = 0x200000000 | ||
1228 | CBitFieldMaskBit31 = 0x100000000 | ||
1229 | CBitFieldMaskBit32 = 0x80000000 | ||
1230 | CBitFieldMaskBit33 = 0x40000000 | ||
1231 | CBitFieldMaskBit34 = 0x20000000 | ||
1232 | CBitFieldMaskBit35 = 0x10000000 | ||
1233 | CBitFieldMaskBit36 = 0x8000000 | ||
1234 | CBitFieldMaskBit37 = 0x4000000 | ||
1235 | CBitFieldMaskBit38 = 0x2000000 | ||
1236 | CBitFieldMaskBit39 = 0x1000000 | ||
1237 | CBitFieldMaskBit40 = 0x800000 | ||
1238 | CBitFieldMaskBit41 = 0x400000 | ||
1239 | CBitFieldMaskBit42 = 0x200000 | ||
1240 | CBitFieldMaskBit43 = 0x100000 | ||
1241 | CBitFieldMaskBit44 = 0x80000 | ||
1242 | CBitFieldMaskBit45 = 0x40000 | ||
1243 | CBitFieldMaskBit46 = 0x20000 | ||
1244 | CBitFieldMaskBit47 = 0x10000 | ||
1245 | CBitFieldMaskBit48 = 0x8000 | ||
1246 | CBitFieldMaskBit49 = 0x4000 | ||
1247 | CBitFieldMaskBit50 = 0x2000 | ||
1248 | CBitFieldMaskBit51 = 0x1000 | ||
1249 | CBitFieldMaskBit52 = 0x800 | ||
1250 | CBitFieldMaskBit53 = 0x400 | ||
1251 | CBitFieldMaskBit54 = 0x200 | ||
1252 | CBitFieldMaskBit55 = 0x100 | ||
1253 | CBitFieldMaskBit56 = 0x80 | ||
1254 | CBitFieldMaskBit57 = 0x40 | ||
1255 | CBitFieldMaskBit58 = 0x20 | ||
1256 | CBitFieldMaskBit59 = 0x10 | ||
1257 | CBitFieldMaskBit60 = 0x8 | ||
1258 | CBitFieldMaskBit61 = 0x4 | ||
1259 | CBitFieldMaskBit62 = 0x2 | ||
1260 | CBitFieldMaskBit63 = 0x1 | ||
1261 | ) | ||
1262 | |||
1263 | type SockaddrStorage struct { | ||
1264 | Family uint16 | ||
1265 | _ [118]int8 | ||
1266 | _ uint64 | ||
1267 | } | ||
1268 | |||
1269 | type TCPMD5Sig struct { | ||
1270 | Addr SockaddrStorage | ||
1271 | Flags uint8 | ||
1272 | Prefixlen uint8 | ||
1273 | Keylen uint16 | ||
1274 | _ uint32 | ||
1275 | Key [80]uint8 | ||
1276 | } | ||
1277 | |||
1278 | type HDDriveCmdHdr struct { | ||
1279 | Command uint8 | ||
1280 | Number uint8 | ||
1281 | Feature uint8 | ||
1282 | Count uint8 | ||
1283 | } | ||
1284 | |||
1285 | type HDGeometry struct { | ||
1286 | Heads uint8 | ||
1287 | Sectors uint8 | ||
1288 | Cylinders uint16 | ||
1289 | Start uint64 | ||
1290 | } | ||
1291 | |||
1292 | type HDDriveID struct { | ||
1293 | Config uint16 | ||
1294 | Cyls uint16 | ||
1295 | Reserved2 uint16 | ||
1296 | Heads uint16 | ||
1297 | Track_bytes uint16 | ||
1298 | Sector_bytes uint16 | ||
1299 | Sectors uint16 | ||
1300 | Vendor0 uint16 | ||
1301 | Vendor1 uint16 | ||
1302 | Vendor2 uint16 | ||
1303 | Serial_no [20]uint8 | ||
1304 | Buf_type uint16 | ||
1305 | Buf_size uint16 | ||
1306 | Ecc_bytes uint16 | ||
1307 | Fw_rev [8]uint8 | ||
1308 | Model [40]uint8 | ||
1309 | Max_multsect uint8 | ||
1310 | Vendor3 uint8 | ||
1311 | Dword_io uint16 | ||
1312 | Vendor4 uint8 | ||
1313 | Capability uint8 | ||
1314 | Reserved50 uint16 | ||
1315 | Vendor5 uint8 | ||
1316 | TPIO uint8 | ||
1317 | Vendor6 uint8 | ||
1318 | TDMA uint8 | ||
1319 | Field_valid uint16 | ||
1320 | Cur_cyls uint16 | ||
1321 | Cur_heads uint16 | ||
1322 | Cur_sectors uint16 | ||
1323 | Cur_capacity0 uint16 | ||
1324 | Cur_capacity1 uint16 | ||
1325 | Multsect uint8 | ||
1326 | Multsect_valid uint8 | ||
1327 | Lba_capacity uint32 | ||
1328 | Dma_1word uint16 | ||
1329 | Dma_mword uint16 | ||
1330 | Eide_pio_modes uint16 | ||
1331 | Eide_dma_min uint16 | ||
1332 | Eide_dma_time uint16 | ||
1333 | Eide_pio uint16 | ||
1334 | Eide_pio_iordy uint16 | ||
1335 | Words69_70 [2]uint16 | ||
1336 | Words71_74 [4]uint16 | ||
1337 | Queue_depth uint16 | ||
1338 | Words76_79 [4]uint16 | ||
1339 | Major_rev_num uint16 | ||
1340 | Minor_rev_num uint16 | ||
1341 | Command_set_1 uint16 | ||
1342 | Command_set_2 uint16 | ||
1343 | Cfsse uint16 | ||
1344 | Cfs_enable_1 uint16 | ||
1345 | Cfs_enable_2 uint16 | ||
1346 | Csf_default uint16 | ||
1347 | Dma_ultra uint16 | ||
1348 | Trseuc uint16 | ||
1349 | TrsEuc uint16 | ||
1350 | CurAPMvalues uint16 | ||
1351 | Mprc uint16 | ||
1352 | Hw_config uint16 | ||
1353 | Acoustic uint16 | ||
1354 | Msrqs uint16 | ||
1355 | Sxfert uint16 | ||
1356 | Sal uint16 | ||
1357 | Spg uint32 | ||
1358 | Lba_capacity_2 uint64 | ||
1359 | Words104_125 [22]uint16 | ||
1360 | Last_lun uint16 | ||
1361 | Word127 uint16 | ||
1362 | Dlf uint16 | ||
1363 | Csfo uint16 | ||
1364 | Words130_155 [26]uint16 | ||
1365 | Word156 uint16 | ||
1366 | Words157_159 [3]uint16 | ||
1367 | Cfa_power uint16 | ||
1368 | Words161_175 [15]uint16 | ||
1369 | Words176_205 [30]uint16 | ||
1370 | Words206_254 [49]uint16 | ||
1371 | Integrity_word uint16 | ||
1372 | } | ||
1373 | |||
1374 | type Statfs_t struct { | ||
1375 | Type int64 | ||
1376 | Bsize int64 | ||
1377 | Blocks uint64 | ||
1378 | Bfree uint64 | ||
1379 | Bavail uint64 | ||
1380 | Files uint64 | ||
1381 | Ffree uint64 | ||
1382 | Fsid Fsid | ||
1383 | Namelen int64 | ||
1384 | Frsize int64 | ||
1385 | Flags int64 | ||
1386 | Spare [4]int64 | ||
1387 | } | ||
1388 | |||
1389 | const ( | ||
1390 | ST_MANDLOCK = 0x40 | ||
1391 | ST_NOATIME = 0x400 | ||
1392 | ST_NODEV = 0x4 | ||
1393 | ST_NODIRATIME = 0x800 | ||
1394 | ST_NOEXEC = 0x8 | ||
1395 | ST_NOSUID = 0x2 | ||
1396 | ST_RDONLY = 0x1 | ||
1397 | ST_RELATIME = 0x1000 | ||
1398 | ST_SYNCHRONOUS = 0x10 | ||
1399 | ) | ||
1400 | |||
1401 | type TpacketHdr struct { | ||
1402 | Status uint64 | ||
1403 | Len uint32 | ||
1404 | Snaplen uint32 | ||
1405 | Mac uint16 | ||
1406 | Net uint16 | ||
1407 | Sec uint32 | ||
1408 | Usec uint32 | ||
1409 | _ [4]byte | ||
1410 | } | ||
1411 | |||
1412 | type Tpacket2Hdr struct { | ||
1413 | Status uint32 | ||
1414 | Len uint32 | ||
1415 | Snaplen uint32 | ||
1416 | Mac uint16 | ||
1417 | Net uint16 | ||
1418 | Sec uint32 | ||
1419 | Nsec uint32 | ||
1420 | Vlan_tci uint16 | ||
1421 | Vlan_tpid uint16 | ||
1422 | _ [4]uint8 | ||
1423 | } | ||
1424 | |||
1425 | type Tpacket3Hdr struct { | ||
1426 | Next_offset uint32 | ||
1427 | Sec uint32 | ||
1428 | Nsec uint32 | ||
1429 | Snaplen uint32 | ||
1430 | Len uint32 | ||
1431 | Status uint32 | ||
1432 | Mac uint16 | ||
1433 | Net uint16 | ||
1434 | Hv1 TpacketHdrVariant1 | ||
1435 | _ [8]uint8 | ||
1436 | } | ||
1437 | |||
1438 | type TpacketHdrVariant1 struct { | ||
1439 | Rxhash uint32 | ||
1440 | Vlan_tci uint32 | ||
1441 | Vlan_tpid uint16 | ||
1442 | _ uint16 | ||
1443 | } | ||
1444 | |||
1445 | type TpacketBlockDesc struct { | ||
1446 | Version uint32 | ||
1447 | To_priv uint32 | ||
1448 | Hdr [40]byte | ||
1449 | } | ||
1450 | |||
1451 | type TpacketBDTS struct { | ||
1452 | Sec uint32 | ||
1453 | Usec uint32 | ||
1454 | } | ||
1455 | |||
1456 | type TpacketHdrV1 struct { | ||
1457 | Block_status uint32 | ||
1458 | Num_pkts uint32 | ||
1459 | Offset_to_first_pkt uint32 | ||
1460 | Blk_len uint32 | ||
1461 | Seq_num uint64 | ||
1462 | Ts_first_pkt TpacketBDTS | ||
1463 | Ts_last_pkt TpacketBDTS | ||
1464 | } | ||
1465 | |||
1466 | type TpacketReq struct { | ||
1467 | Block_size uint32 | ||
1468 | Block_nr uint32 | ||
1469 | Frame_size uint32 | ||
1470 | Frame_nr uint32 | ||
1471 | } | ||
1472 | |||
1473 | type TpacketReq3 struct { | ||
1474 | Block_size uint32 | ||
1475 | Block_nr uint32 | ||
1476 | Frame_size uint32 | ||
1477 | Frame_nr uint32 | ||
1478 | Retire_blk_tov uint32 | ||
1479 | Sizeof_priv uint32 | ||
1480 | Feature_req_word uint32 | ||
1481 | } | ||
1482 | |||
1483 | type TpacketStats struct { | ||
1484 | Packets uint32 | ||
1485 | Drops uint32 | ||
1486 | } | ||
1487 | |||
1488 | type TpacketStatsV3 struct { | ||
1489 | Packets uint32 | ||
1490 | Drops uint32 | ||
1491 | Freeze_q_cnt uint32 | ||
1492 | } | ||
1493 | |||
1494 | type TpacketAuxdata struct { | ||
1495 | Status uint32 | ||
1496 | Len uint32 | ||
1497 | Snaplen uint32 | ||
1498 | Mac uint16 | ||
1499 | Net uint16 | ||
1500 | Vlan_tci uint16 | ||
1501 | Vlan_tpid uint16 | ||
1502 | } | ||
1503 | |||
1504 | const ( | ||
1505 | TPACKET_V1 = 0x0 | ||
1506 | TPACKET_V2 = 0x1 | ||
1507 | TPACKET_V3 = 0x2 | ||
1508 | ) | ||
1509 | |||
1510 | const ( | ||
1511 | SizeofTpacketHdr = 0x20 | ||
1512 | SizeofTpacket2Hdr = 0x20 | ||
1513 | SizeofTpacket3Hdr = 0x30 | ||
1514 | |||
1515 | SizeofTpacketStats = 0x8 | ||
1516 | SizeofTpacketStatsV3 = 0xc | ||
1517 | ) | ||
1518 | |||
1519 | const ( | ||
1520 | NF_INET_PRE_ROUTING = 0x0 | ||
1521 | NF_INET_LOCAL_IN = 0x1 | ||
1522 | NF_INET_FORWARD = 0x2 | ||
1523 | NF_INET_LOCAL_OUT = 0x3 | ||
1524 | NF_INET_POST_ROUTING = 0x4 | ||
1525 | NF_INET_NUMHOOKS = 0x5 | ||
1526 | ) | ||
1527 | |||
1528 | const ( | ||
1529 | NF_NETDEV_INGRESS = 0x0 | ||
1530 | NF_NETDEV_NUMHOOKS = 0x1 | ||
1531 | ) | ||
1532 | |||
1533 | const ( | ||
1534 | NFPROTO_UNSPEC = 0x0 | ||
1535 | NFPROTO_INET = 0x1 | ||
1536 | NFPROTO_IPV4 = 0x2 | ||
1537 | NFPROTO_ARP = 0x3 | ||
1538 | NFPROTO_NETDEV = 0x5 | ||
1539 | NFPROTO_BRIDGE = 0x7 | ||
1540 | NFPROTO_IPV6 = 0xa | ||
1541 | NFPROTO_DECNET = 0xc | ||
1542 | NFPROTO_NUMPROTO = 0xd | ||
1543 | ) | ||
1544 | |||
1545 | type Nfgenmsg struct { | ||
1546 | Nfgen_family uint8 | ||
1547 | Version uint8 | ||
1548 | Res_id uint16 | ||
1549 | } | ||
1550 | |||
1551 | const ( | ||
1552 | NFNL_BATCH_UNSPEC = 0x0 | ||
1553 | NFNL_BATCH_GENID = 0x1 | ||
1554 | ) | ||
1555 | |||
1556 | const ( | ||
1557 | NFT_REG_VERDICT = 0x0 | ||
1558 | NFT_REG_1 = 0x1 | ||
1559 | NFT_REG_2 = 0x2 | ||
1560 | NFT_REG_3 = 0x3 | ||
1561 | NFT_REG_4 = 0x4 | ||
1562 | NFT_REG32_00 = 0x8 | ||
1563 | NFT_REG32_01 = 0x9 | ||
1564 | NFT_REG32_02 = 0xa | ||
1565 | NFT_REG32_03 = 0xb | ||
1566 | NFT_REG32_04 = 0xc | ||
1567 | NFT_REG32_05 = 0xd | ||
1568 | NFT_REG32_06 = 0xe | ||
1569 | NFT_REG32_07 = 0xf | ||
1570 | NFT_REG32_08 = 0x10 | ||
1571 | NFT_REG32_09 = 0x11 | ||
1572 | NFT_REG32_10 = 0x12 | ||
1573 | NFT_REG32_11 = 0x13 | ||
1574 | NFT_REG32_12 = 0x14 | ||
1575 | NFT_REG32_13 = 0x15 | ||
1576 | NFT_REG32_14 = 0x16 | ||
1577 | NFT_REG32_15 = 0x17 | ||
1578 | NFT_CONTINUE = -0x1 | ||
1579 | NFT_BREAK = -0x2 | ||
1580 | NFT_JUMP = -0x3 | ||
1581 | NFT_GOTO = -0x4 | ||
1582 | NFT_RETURN = -0x5 | ||
1583 | NFT_MSG_NEWTABLE = 0x0 | ||
1584 | NFT_MSG_GETTABLE = 0x1 | ||
1585 | NFT_MSG_DELTABLE = 0x2 | ||
1586 | NFT_MSG_NEWCHAIN = 0x3 | ||
1587 | NFT_MSG_GETCHAIN = 0x4 | ||
1588 | NFT_MSG_DELCHAIN = 0x5 | ||
1589 | NFT_MSG_NEWRULE = 0x6 | ||
1590 | NFT_MSG_GETRULE = 0x7 | ||
1591 | NFT_MSG_DELRULE = 0x8 | ||
1592 | NFT_MSG_NEWSET = 0x9 | ||
1593 | NFT_MSG_GETSET = 0xa | ||
1594 | NFT_MSG_DELSET = 0xb | ||
1595 | NFT_MSG_NEWSETELEM = 0xc | ||
1596 | NFT_MSG_GETSETELEM = 0xd | ||
1597 | NFT_MSG_DELSETELEM = 0xe | ||
1598 | NFT_MSG_NEWGEN = 0xf | ||
1599 | NFT_MSG_GETGEN = 0x10 | ||
1600 | NFT_MSG_TRACE = 0x11 | ||
1601 | NFT_MSG_NEWOBJ = 0x12 | ||
1602 | NFT_MSG_GETOBJ = 0x13 | ||
1603 | NFT_MSG_DELOBJ = 0x14 | ||
1604 | NFT_MSG_GETOBJ_RESET = 0x15 | ||
1605 | NFT_MSG_MAX = 0x19 | ||
1606 | NFTA_LIST_UNPEC = 0x0 | ||
1607 | NFTA_LIST_ELEM = 0x1 | ||
1608 | NFTA_HOOK_UNSPEC = 0x0 | ||
1609 | NFTA_HOOK_HOOKNUM = 0x1 | ||
1610 | NFTA_HOOK_PRIORITY = 0x2 | ||
1611 | NFTA_HOOK_DEV = 0x3 | ||
1612 | NFT_TABLE_F_DORMANT = 0x1 | ||
1613 | NFTA_TABLE_UNSPEC = 0x0 | ||
1614 | NFTA_TABLE_NAME = 0x1 | ||
1615 | NFTA_TABLE_FLAGS = 0x2 | ||
1616 | NFTA_TABLE_USE = 0x3 | ||
1617 | NFTA_CHAIN_UNSPEC = 0x0 | ||
1618 | NFTA_CHAIN_TABLE = 0x1 | ||
1619 | NFTA_CHAIN_HANDLE = 0x2 | ||
1620 | NFTA_CHAIN_NAME = 0x3 | ||
1621 | NFTA_CHAIN_HOOK = 0x4 | ||
1622 | NFTA_CHAIN_POLICY = 0x5 | ||
1623 | NFTA_CHAIN_USE = 0x6 | ||
1624 | NFTA_CHAIN_TYPE = 0x7 | ||
1625 | NFTA_CHAIN_COUNTERS = 0x8 | ||
1626 | NFTA_CHAIN_PAD = 0x9 | ||
1627 | NFTA_RULE_UNSPEC = 0x0 | ||
1628 | NFTA_RULE_TABLE = 0x1 | ||
1629 | NFTA_RULE_CHAIN = 0x2 | ||
1630 | NFTA_RULE_HANDLE = 0x3 | ||
1631 | NFTA_RULE_EXPRESSIONS = 0x4 | ||
1632 | NFTA_RULE_COMPAT = 0x5 | ||
1633 | NFTA_RULE_POSITION = 0x6 | ||
1634 | NFTA_RULE_USERDATA = 0x7 | ||
1635 | NFTA_RULE_PAD = 0x8 | ||
1636 | NFTA_RULE_ID = 0x9 | ||
1637 | NFT_RULE_COMPAT_F_INV = 0x2 | ||
1638 | NFT_RULE_COMPAT_F_MASK = 0x2 | ||
1639 | NFTA_RULE_COMPAT_UNSPEC = 0x0 | ||
1640 | NFTA_RULE_COMPAT_PROTO = 0x1 | ||
1641 | NFTA_RULE_COMPAT_FLAGS = 0x2 | ||
1642 | NFT_SET_ANONYMOUS = 0x1 | ||
1643 | NFT_SET_CONSTANT = 0x2 | ||
1644 | NFT_SET_INTERVAL = 0x4 | ||
1645 | NFT_SET_MAP = 0x8 | ||
1646 | NFT_SET_TIMEOUT = 0x10 | ||
1647 | NFT_SET_EVAL = 0x20 | ||
1648 | NFT_SET_OBJECT = 0x40 | ||
1649 | NFT_SET_POL_PERFORMANCE = 0x0 | ||
1650 | NFT_SET_POL_MEMORY = 0x1 | ||
1651 | NFTA_SET_DESC_UNSPEC = 0x0 | ||
1652 | NFTA_SET_DESC_SIZE = 0x1 | ||
1653 | NFTA_SET_UNSPEC = 0x0 | ||
1654 | NFTA_SET_TABLE = 0x1 | ||
1655 | NFTA_SET_NAME = 0x2 | ||
1656 | NFTA_SET_FLAGS = 0x3 | ||
1657 | NFTA_SET_KEY_TYPE = 0x4 | ||
1658 | NFTA_SET_KEY_LEN = 0x5 | ||
1659 | NFTA_SET_DATA_TYPE = 0x6 | ||
1660 | NFTA_SET_DATA_LEN = 0x7 | ||
1661 | NFTA_SET_POLICY = 0x8 | ||
1662 | NFTA_SET_DESC = 0x9 | ||
1663 | NFTA_SET_ID = 0xa | ||
1664 | NFTA_SET_TIMEOUT = 0xb | ||
1665 | NFTA_SET_GC_INTERVAL = 0xc | ||
1666 | NFTA_SET_USERDATA = 0xd | ||
1667 | NFTA_SET_PAD = 0xe | ||
1668 | NFTA_SET_OBJ_TYPE = 0xf | ||
1669 | NFT_SET_ELEM_INTERVAL_END = 0x1 | ||
1670 | NFTA_SET_ELEM_UNSPEC = 0x0 | ||
1671 | NFTA_SET_ELEM_KEY = 0x1 | ||
1672 | NFTA_SET_ELEM_DATA = 0x2 | ||
1673 | NFTA_SET_ELEM_FLAGS = 0x3 | ||
1674 | NFTA_SET_ELEM_TIMEOUT = 0x4 | ||
1675 | NFTA_SET_ELEM_EXPIRATION = 0x5 | ||
1676 | NFTA_SET_ELEM_USERDATA = 0x6 | ||
1677 | NFTA_SET_ELEM_EXPR = 0x7 | ||
1678 | NFTA_SET_ELEM_PAD = 0x8 | ||
1679 | NFTA_SET_ELEM_OBJREF = 0x9 | ||
1680 | NFTA_SET_ELEM_LIST_UNSPEC = 0x0 | ||
1681 | NFTA_SET_ELEM_LIST_TABLE = 0x1 | ||
1682 | NFTA_SET_ELEM_LIST_SET = 0x2 | ||
1683 | NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 | ||
1684 | NFTA_SET_ELEM_LIST_SET_ID = 0x4 | ||
1685 | NFT_DATA_VALUE = 0x0 | ||
1686 | NFT_DATA_VERDICT = 0xffffff00 | ||
1687 | NFTA_DATA_UNSPEC = 0x0 | ||
1688 | NFTA_DATA_VALUE = 0x1 | ||
1689 | NFTA_DATA_VERDICT = 0x2 | ||
1690 | NFTA_VERDICT_UNSPEC = 0x0 | ||
1691 | NFTA_VERDICT_CODE = 0x1 | ||
1692 | NFTA_VERDICT_CHAIN = 0x2 | ||
1693 | NFTA_EXPR_UNSPEC = 0x0 | ||
1694 | NFTA_EXPR_NAME = 0x1 | ||
1695 | NFTA_EXPR_DATA = 0x2 | ||
1696 | NFTA_IMMEDIATE_UNSPEC = 0x0 | ||
1697 | NFTA_IMMEDIATE_DREG = 0x1 | ||
1698 | NFTA_IMMEDIATE_DATA = 0x2 | ||
1699 | NFTA_BITWISE_UNSPEC = 0x0 | ||
1700 | NFTA_BITWISE_SREG = 0x1 | ||
1701 | NFTA_BITWISE_DREG = 0x2 | ||
1702 | NFTA_BITWISE_LEN = 0x3 | ||
1703 | NFTA_BITWISE_MASK = 0x4 | ||
1704 | NFTA_BITWISE_XOR = 0x5 | ||
1705 | NFT_BYTEORDER_NTOH = 0x0 | ||
1706 | NFT_BYTEORDER_HTON = 0x1 | ||
1707 | NFTA_BYTEORDER_UNSPEC = 0x0 | ||
1708 | NFTA_BYTEORDER_SREG = 0x1 | ||
1709 | NFTA_BYTEORDER_DREG = 0x2 | ||
1710 | NFTA_BYTEORDER_OP = 0x3 | ||
1711 | NFTA_BYTEORDER_LEN = 0x4 | ||
1712 | NFTA_BYTEORDER_SIZE = 0x5 | ||
1713 | NFT_CMP_EQ = 0x0 | ||
1714 | NFT_CMP_NEQ = 0x1 | ||
1715 | NFT_CMP_LT = 0x2 | ||
1716 | NFT_CMP_LTE = 0x3 | ||
1717 | NFT_CMP_GT = 0x4 | ||
1718 | NFT_CMP_GTE = 0x5 | ||
1719 | NFTA_CMP_UNSPEC = 0x0 | ||
1720 | NFTA_CMP_SREG = 0x1 | ||
1721 | NFTA_CMP_OP = 0x2 | ||
1722 | NFTA_CMP_DATA = 0x3 | ||
1723 | NFT_RANGE_EQ = 0x0 | ||
1724 | NFT_RANGE_NEQ = 0x1 | ||
1725 | NFTA_RANGE_UNSPEC = 0x0 | ||
1726 | NFTA_RANGE_SREG = 0x1 | ||
1727 | NFTA_RANGE_OP = 0x2 | ||
1728 | NFTA_RANGE_FROM_DATA = 0x3 | ||
1729 | NFTA_RANGE_TO_DATA = 0x4 | ||
1730 | NFT_LOOKUP_F_INV = 0x1 | ||
1731 | NFTA_LOOKUP_UNSPEC = 0x0 | ||
1732 | NFTA_LOOKUP_SET = 0x1 | ||
1733 | NFTA_LOOKUP_SREG = 0x2 | ||
1734 | NFTA_LOOKUP_DREG = 0x3 | ||
1735 | NFTA_LOOKUP_SET_ID = 0x4 | ||
1736 | NFTA_LOOKUP_FLAGS = 0x5 | ||
1737 | NFT_DYNSET_OP_ADD = 0x0 | ||
1738 | NFT_DYNSET_OP_UPDATE = 0x1 | ||
1739 | NFT_DYNSET_F_INV = 0x1 | ||
1740 | NFTA_DYNSET_UNSPEC = 0x0 | ||
1741 | NFTA_DYNSET_SET_NAME = 0x1 | ||
1742 | NFTA_DYNSET_SET_ID = 0x2 | ||
1743 | NFTA_DYNSET_OP = 0x3 | ||
1744 | NFTA_DYNSET_SREG_KEY = 0x4 | ||
1745 | NFTA_DYNSET_SREG_DATA = 0x5 | ||
1746 | NFTA_DYNSET_TIMEOUT = 0x6 | ||
1747 | NFTA_DYNSET_EXPR = 0x7 | ||
1748 | NFTA_DYNSET_PAD = 0x8 | ||
1749 | NFTA_DYNSET_FLAGS = 0x9 | ||
1750 | NFT_PAYLOAD_LL_HEADER = 0x0 | ||
1751 | NFT_PAYLOAD_NETWORK_HEADER = 0x1 | ||
1752 | NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 | ||
1753 | NFT_PAYLOAD_CSUM_NONE = 0x0 | ||
1754 | NFT_PAYLOAD_CSUM_INET = 0x1 | ||
1755 | NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 | ||
1756 | NFTA_PAYLOAD_UNSPEC = 0x0 | ||
1757 | NFTA_PAYLOAD_DREG = 0x1 | ||
1758 | NFTA_PAYLOAD_BASE = 0x2 | ||
1759 | NFTA_PAYLOAD_OFFSET = 0x3 | ||
1760 | NFTA_PAYLOAD_LEN = 0x4 | ||
1761 | NFTA_PAYLOAD_SREG = 0x5 | ||
1762 | NFTA_PAYLOAD_CSUM_TYPE = 0x6 | ||
1763 | NFTA_PAYLOAD_CSUM_OFFSET = 0x7 | ||
1764 | NFTA_PAYLOAD_CSUM_FLAGS = 0x8 | ||
1765 | NFT_EXTHDR_F_PRESENT = 0x1 | ||
1766 | NFT_EXTHDR_OP_IPV6 = 0x0 | ||
1767 | NFT_EXTHDR_OP_TCPOPT = 0x1 | ||
1768 | NFTA_EXTHDR_UNSPEC = 0x0 | ||
1769 | NFTA_EXTHDR_DREG = 0x1 | ||
1770 | NFTA_EXTHDR_TYPE = 0x2 | ||
1771 | NFTA_EXTHDR_OFFSET = 0x3 | ||
1772 | NFTA_EXTHDR_LEN = 0x4 | ||
1773 | NFTA_EXTHDR_FLAGS = 0x5 | ||
1774 | NFTA_EXTHDR_OP = 0x6 | ||
1775 | NFTA_EXTHDR_SREG = 0x7 | ||
1776 | NFT_META_LEN = 0x0 | ||
1777 | NFT_META_PROTOCOL = 0x1 | ||
1778 | NFT_META_PRIORITY = 0x2 | ||
1779 | NFT_META_MARK = 0x3 | ||
1780 | NFT_META_IIF = 0x4 | ||
1781 | NFT_META_OIF = 0x5 | ||
1782 | NFT_META_IIFNAME = 0x6 | ||
1783 | NFT_META_OIFNAME = 0x7 | ||
1784 | NFT_META_IIFTYPE = 0x8 | ||
1785 | NFT_META_OIFTYPE = 0x9 | ||
1786 | NFT_META_SKUID = 0xa | ||
1787 | NFT_META_SKGID = 0xb | ||
1788 | NFT_META_NFTRACE = 0xc | ||
1789 | NFT_META_RTCLASSID = 0xd | ||
1790 | NFT_META_SECMARK = 0xe | ||
1791 | NFT_META_NFPROTO = 0xf | ||
1792 | NFT_META_L4PROTO = 0x10 | ||
1793 | NFT_META_BRI_IIFNAME = 0x11 | ||
1794 | NFT_META_BRI_OIFNAME = 0x12 | ||
1795 | NFT_META_PKTTYPE = 0x13 | ||
1796 | NFT_META_CPU = 0x14 | ||
1797 | NFT_META_IIFGROUP = 0x15 | ||
1798 | NFT_META_OIFGROUP = 0x16 | ||
1799 | NFT_META_CGROUP = 0x17 | ||
1800 | NFT_META_PRANDOM = 0x18 | ||
1801 | NFT_RT_CLASSID = 0x0 | ||
1802 | NFT_RT_NEXTHOP4 = 0x1 | ||
1803 | NFT_RT_NEXTHOP6 = 0x2 | ||
1804 | NFT_RT_TCPMSS = 0x3 | ||
1805 | NFT_HASH_JENKINS = 0x0 | ||
1806 | NFT_HASH_SYM = 0x1 | ||
1807 | NFTA_HASH_UNSPEC = 0x0 | ||
1808 | NFTA_HASH_SREG = 0x1 | ||
1809 | NFTA_HASH_DREG = 0x2 | ||
1810 | NFTA_HASH_LEN = 0x3 | ||
1811 | NFTA_HASH_MODULUS = 0x4 | ||
1812 | NFTA_HASH_SEED = 0x5 | ||
1813 | NFTA_HASH_OFFSET = 0x6 | ||
1814 | NFTA_HASH_TYPE = 0x7 | ||
1815 | NFTA_META_UNSPEC = 0x0 | ||
1816 | NFTA_META_DREG = 0x1 | ||
1817 | NFTA_META_KEY = 0x2 | ||
1818 | NFTA_META_SREG = 0x3 | ||
1819 | NFTA_RT_UNSPEC = 0x0 | ||
1820 | NFTA_RT_DREG = 0x1 | ||
1821 | NFTA_RT_KEY = 0x2 | ||
1822 | NFT_CT_STATE = 0x0 | ||
1823 | NFT_CT_DIRECTION = 0x1 | ||
1824 | NFT_CT_STATUS = 0x2 | ||
1825 | NFT_CT_MARK = 0x3 | ||
1826 | NFT_CT_SECMARK = 0x4 | ||
1827 | NFT_CT_EXPIRATION = 0x5 | ||
1828 | NFT_CT_HELPER = 0x6 | ||
1829 | NFT_CT_L3PROTOCOL = 0x7 | ||
1830 | NFT_CT_SRC = 0x8 | ||
1831 | NFT_CT_DST = 0x9 | ||
1832 | NFT_CT_PROTOCOL = 0xa | ||
1833 | NFT_CT_PROTO_SRC = 0xb | ||
1834 | NFT_CT_PROTO_DST = 0xc | ||
1835 | NFT_CT_LABELS = 0xd | ||
1836 | NFT_CT_PKTS = 0xe | ||
1837 | NFT_CT_BYTES = 0xf | ||
1838 | NFT_CT_AVGPKT = 0x10 | ||
1839 | NFT_CT_ZONE = 0x11 | ||
1840 | NFT_CT_EVENTMASK = 0x12 | ||
1841 | NFTA_CT_UNSPEC = 0x0 | ||
1842 | NFTA_CT_DREG = 0x1 | ||
1843 | NFTA_CT_KEY = 0x2 | ||
1844 | NFTA_CT_DIRECTION = 0x3 | ||
1845 | NFTA_CT_SREG = 0x4 | ||
1846 | NFT_LIMIT_PKTS = 0x0 | ||
1847 | NFT_LIMIT_PKT_BYTES = 0x1 | ||
1848 | NFT_LIMIT_F_INV = 0x1 | ||
1849 | NFTA_LIMIT_UNSPEC = 0x0 | ||
1850 | NFTA_LIMIT_RATE = 0x1 | ||
1851 | NFTA_LIMIT_UNIT = 0x2 | ||
1852 | NFTA_LIMIT_BURST = 0x3 | ||
1853 | NFTA_LIMIT_TYPE = 0x4 | ||
1854 | NFTA_LIMIT_FLAGS = 0x5 | ||
1855 | NFTA_LIMIT_PAD = 0x6 | ||
1856 | NFTA_COUNTER_UNSPEC = 0x0 | ||
1857 | NFTA_COUNTER_BYTES = 0x1 | ||
1858 | NFTA_COUNTER_PACKETS = 0x2 | ||
1859 | NFTA_COUNTER_PAD = 0x3 | ||
1860 | NFTA_LOG_UNSPEC = 0x0 | ||
1861 | NFTA_LOG_GROUP = 0x1 | ||
1862 | NFTA_LOG_PREFIX = 0x2 | ||
1863 | NFTA_LOG_SNAPLEN = 0x3 | ||
1864 | NFTA_LOG_QTHRESHOLD = 0x4 | ||
1865 | NFTA_LOG_LEVEL = 0x5 | ||
1866 | NFTA_LOG_FLAGS = 0x6 | ||
1867 | NFTA_QUEUE_UNSPEC = 0x0 | ||
1868 | NFTA_QUEUE_NUM = 0x1 | ||
1869 | NFTA_QUEUE_TOTAL = 0x2 | ||
1870 | NFTA_QUEUE_FLAGS = 0x3 | ||
1871 | NFTA_QUEUE_SREG_QNUM = 0x4 | ||
1872 | NFT_QUOTA_F_INV = 0x1 | ||
1873 | NFT_QUOTA_F_DEPLETED = 0x2 | ||
1874 | NFTA_QUOTA_UNSPEC = 0x0 | ||
1875 | NFTA_QUOTA_BYTES = 0x1 | ||
1876 | NFTA_QUOTA_FLAGS = 0x2 | ||
1877 | NFTA_QUOTA_PAD = 0x3 | ||
1878 | NFTA_QUOTA_CONSUMED = 0x4 | ||
1879 | NFT_REJECT_ICMP_UNREACH = 0x0 | ||
1880 | NFT_REJECT_TCP_RST = 0x1 | ||
1881 | NFT_REJECT_ICMPX_UNREACH = 0x2 | ||
1882 | NFT_REJECT_ICMPX_NO_ROUTE = 0x0 | ||
1883 | NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 | ||
1884 | NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 | ||
1885 | NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 | ||
1886 | NFTA_REJECT_UNSPEC = 0x0 | ||
1887 | NFTA_REJECT_TYPE = 0x1 | ||
1888 | NFTA_REJECT_ICMP_CODE = 0x2 | ||
1889 | NFT_NAT_SNAT = 0x0 | ||
1890 | NFT_NAT_DNAT = 0x1 | ||
1891 | NFTA_NAT_UNSPEC = 0x0 | ||
1892 | NFTA_NAT_TYPE = 0x1 | ||
1893 | NFTA_NAT_FAMILY = 0x2 | ||
1894 | NFTA_NAT_REG_ADDR_MIN = 0x3 | ||
1895 | NFTA_NAT_REG_ADDR_MAX = 0x4 | ||
1896 | NFTA_NAT_REG_PROTO_MIN = 0x5 | ||
1897 | NFTA_NAT_REG_PROTO_MAX = 0x6 | ||
1898 | NFTA_NAT_FLAGS = 0x7 | ||
1899 | NFTA_MASQ_UNSPEC = 0x0 | ||
1900 | NFTA_MASQ_FLAGS = 0x1 | ||
1901 | NFTA_MASQ_REG_PROTO_MIN = 0x2 | ||
1902 | NFTA_MASQ_REG_PROTO_MAX = 0x3 | ||
1903 | NFTA_REDIR_UNSPEC = 0x0 | ||
1904 | NFTA_REDIR_REG_PROTO_MIN = 0x1 | ||
1905 | NFTA_REDIR_REG_PROTO_MAX = 0x2 | ||
1906 | NFTA_REDIR_FLAGS = 0x3 | ||
1907 | NFTA_DUP_UNSPEC = 0x0 | ||
1908 | NFTA_DUP_SREG_ADDR = 0x1 | ||
1909 | NFTA_DUP_SREG_DEV = 0x2 | ||
1910 | NFTA_FWD_UNSPEC = 0x0 | ||
1911 | NFTA_FWD_SREG_DEV = 0x1 | ||
1912 | NFTA_OBJREF_UNSPEC = 0x0 | ||
1913 | NFTA_OBJREF_IMM_TYPE = 0x1 | ||
1914 | NFTA_OBJREF_IMM_NAME = 0x2 | ||
1915 | NFTA_OBJREF_SET_SREG = 0x3 | ||
1916 | NFTA_OBJREF_SET_NAME = 0x4 | ||
1917 | NFTA_OBJREF_SET_ID = 0x5 | ||
1918 | NFTA_GEN_UNSPEC = 0x0 | ||
1919 | NFTA_GEN_ID = 0x1 | ||
1920 | NFTA_GEN_PROC_PID = 0x2 | ||
1921 | NFTA_GEN_PROC_NAME = 0x3 | ||
1922 | NFTA_FIB_UNSPEC = 0x0 | ||
1923 | NFTA_FIB_DREG = 0x1 | ||
1924 | NFTA_FIB_RESULT = 0x2 | ||
1925 | NFTA_FIB_FLAGS = 0x3 | ||
1926 | NFT_FIB_RESULT_UNSPEC = 0x0 | ||
1927 | NFT_FIB_RESULT_OIF = 0x1 | ||
1928 | NFT_FIB_RESULT_OIFNAME = 0x2 | ||
1929 | NFT_FIB_RESULT_ADDRTYPE = 0x3 | ||
1930 | NFTA_FIB_F_SADDR = 0x1 | ||
1931 | NFTA_FIB_F_DADDR = 0x2 | ||
1932 | NFTA_FIB_F_MARK = 0x4 | ||
1933 | NFTA_FIB_F_IIF = 0x8 | ||
1934 | NFTA_FIB_F_OIF = 0x10 | ||
1935 | NFTA_FIB_F_PRESENT = 0x20 | ||
1936 | NFTA_CT_HELPER_UNSPEC = 0x0 | ||
1937 | NFTA_CT_HELPER_NAME = 0x1 | ||
1938 | NFTA_CT_HELPER_L3PROTO = 0x2 | ||
1939 | NFTA_CT_HELPER_L4PROTO = 0x3 | ||
1940 | NFTA_OBJ_UNSPEC = 0x0 | ||
1941 | NFTA_OBJ_TABLE = 0x1 | ||
1942 | NFTA_OBJ_NAME = 0x2 | ||
1943 | NFTA_OBJ_TYPE = 0x3 | ||
1944 | NFTA_OBJ_DATA = 0x4 | ||
1945 | NFTA_OBJ_USE = 0x5 | ||
1946 | NFTA_TRACE_UNSPEC = 0x0 | ||
1947 | NFTA_TRACE_TABLE = 0x1 | ||
1948 | NFTA_TRACE_CHAIN = 0x2 | ||
1949 | NFTA_TRACE_RULE_HANDLE = 0x3 | ||
1950 | NFTA_TRACE_TYPE = 0x4 | ||
1951 | NFTA_TRACE_VERDICT = 0x5 | ||
1952 | NFTA_TRACE_ID = 0x6 | ||
1953 | NFTA_TRACE_LL_HEADER = 0x7 | ||
1954 | NFTA_TRACE_NETWORK_HEADER = 0x8 | ||
1955 | NFTA_TRACE_TRANSPORT_HEADER = 0x9 | ||
1956 | NFTA_TRACE_IIF = 0xa | ||
1957 | NFTA_TRACE_IIFTYPE = 0xb | ||
1958 | NFTA_TRACE_OIF = 0xc | ||
1959 | NFTA_TRACE_OIFTYPE = 0xd | ||
1960 | NFTA_TRACE_MARK = 0xe | ||
1961 | NFTA_TRACE_NFPROTO = 0xf | ||
1962 | NFTA_TRACE_POLICY = 0x10 | ||
1963 | NFTA_TRACE_PAD = 0x11 | ||
1964 | NFT_TRACETYPE_UNSPEC = 0x0 | ||
1965 | NFT_TRACETYPE_POLICY = 0x1 | ||
1966 | NFT_TRACETYPE_RETURN = 0x2 | ||
1967 | NFT_TRACETYPE_RULE = 0x3 | ||
1968 | NFTA_NG_UNSPEC = 0x0 | ||
1969 | NFTA_NG_DREG = 0x1 | ||
1970 | NFTA_NG_MODULUS = 0x2 | ||
1971 | NFTA_NG_TYPE = 0x3 | ||
1972 | NFTA_NG_OFFSET = 0x4 | ||
1973 | NFT_NG_INCREMENTAL = 0x0 | ||
1974 | NFT_NG_RANDOM = 0x1 | ||
1975 | ) | ||
1976 | |||
1977 | type RTCTime struct { | ||
1978 | Sec int32 | ||
1979 | Min int32 | ||
1980 | Hour int32 | ||
1981 | Mday int32 | ||
1982 | Mon int32 | ||
1983 | Year int32 | ||
1984 | Wday int32 | ||
1985 | Yday int32 | ||
1986 | Isdst int32 | ||
1987 | } | ||
1988 | |||
1989 | type RTCWkAlrm struct { | ||
1990 | Enabled uint8 | ||
1991 | Pending uint8 | ||
1992 | Time RTCTime | ||
1993 | } | ||
1994 | |||
1995 | type RTCPLLInfo struct { | ||
1996 | Ctrl int32 | ||
1997 | Value int32 | ||
1998 | Max int32 | ||
1999 | Min int32 | ||
2000 | Posmult int32 | ||
2001 | Negmult int32 | ||
2002 | Clock int64 | ||
2003 | } | ||
2004 | |||
2005 | type BlkpgIoctlArg struct { | ||
2006 | Op int32 | ||
2007 | Flags int32 | ||
2008 | Datalen int32 | ||
2009 | Data *byte | ||
2010 | } | ||
2011 | |||
2012 | type BlkpgPartition struct { | ||
2013 | Start int64 | ||
2014 | Length int64 | ||
2015 | Pno int32 | ||
2016 | Devname [64]uint8 | ||
2017 | Volname [64]uint8 | ||
2018 | _ [4]byte | ||
2019 | } | ||
2020 | |||
2021 | const ( | ||
2022 | BLKPG = 0x20001269 | ||
2023 | BLKPG_ADD_PARTITION = 0x1 | ||
2024 | BLKPG_DEL_PARTITION = 0x2 | ||
2025 | BLKPG_RESIZE_PARTITION = 0x3 | ||
2026 | ) | ||
2027 | |||
2028 | const ( | ||
2029 | NETNSA_NONE = 0x0 | ||
2030 | NETNSA_NSID = 0x1 | ||
2031 | NETNSA_PID = 0x2 | ||
2032 | NETNSA_FD = 0x3 | ||
2033 | ) | ||
2034 | |||
2035 | type XDPRingOffset struct { | ||
2036 | Producer uint64 | ||
2037 | Consumer uint64 | ||
2038 | Desc uint64 | ||
2039 | } | ||
2040 | |||
2041 | type XDPMmapOffsets struct { | ||
2042 | Rx XDPRingOffset | ||
2043 | Tx XDPRingOffset | ||
2044 | Fr XDPRingOffset | ||
2045 | Cr XDPRingOffset | ||
2046 | } | ||
2047 | |||
2048 | type XDPUmemReg struct { | ||
2049 | Addr uint64 | ||
2050 | Len uint64 | ||
2051 | Size uint32 | ||
2052 | Headroom uint32 | ||
2053 | } | ||
2054 | |||
2055 | type XDPStatistics struct { | ||
2056 | Rx_dropped uint64 | ||
2057 | Rx_invalid_descs uint64 | ||
2058 | Tx_invalid_descs uint64 | ||
2059 | } | ||
2060 | |||
2061 | type XDPDesc struct { | ||
2062 | Addr uint64 | ||
2063 | Len uint32 | ||
2064 | Options uint32 | ||
2065 | } | ||
2066 | |||
2067 | const ( | ||
2068 | NCSI_CMD_UNSPEC = 0x0 | ||
2069 | NCSI_CMD_PKG_INFO = 0x1 | ||
2070 | NCSI_CMD_SET_INTERFACE = 0x2 | ||
2071 | NCSI_CMD_CLEAR_INTERFACE = 0x3 | ||
2072 | NCSI_ATTR_UNSPEC = 0x0 | ||
2073 | NCSI_ATTR_IFINDEX = 0x1 | ||
2074 | NCSI_ATTR_PACKAGE_LIST = 0x2 | ||
2075 | NCSI_ATTR_PACKAGE_ID = 0x3 | ||
2076 | NCSI_ATTR_CHANNEL_ID = 0x4 | ||
2077 | NCSI_PKG_ATTR_UNSPEC = 0x0 | ||
2078 | NCSI_PKG_ATTR = 0x1 | ||
2079 | NCSI_PKG_ATTR_ID = 0x2 | ||
2080 | NCSI_PKG_ATTR_FORCED = 0x3 | ||
2081 | NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 | ||
2082 | NCSI_CHANNEL_ATTR_UNSPEC = 0x0 | ||
2083 | NCSI_CHANNEL_ATTR = 0x1 | ||
2084 | NCSI_CHANNEL_ATTR_ID = 0x2 | ||
2085 | NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 | ||
2086 | NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 | ||
2087 | NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 | ||
2088 | NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 | ||
2089 | NCSI_CHANNEL_ATTR_ACTIVE = 0x7 | ||
2090 | NCSI_CHANNEL_ATTR_FORCED = 0x8 | ||
2091 | NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 | ||
2092 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa | ||
2093 | ) | ||
2094 | |||
2095 | type ScmTimestamping struct { | ||
2096 | Ts [3]Timespec | ||
2097 | } | ||
2098 | |||
2099 | const ( | ||
2100 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 | ||
2101 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 | ||
2102 | SOF_TIMESTAMPING_RX_HARDWARE = 0x4 | ||
2103 | SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 | ||
2104 | SOF_TIMESTAMPING_SOFTWARE = 0x10 | ||
2105 | SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 | ||
2106 | SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 | ||
2107 | SOF_TIMESTAMPING_OPT_ID = 0x80 | ||
2108 | SOF_TIMESTAMPING_TX_SCHED = 0x100 | ||
2109 | SOF_TIMESTAMPING_TX_ACK = 0x200 | ||
2110 | SOF_TIMESTAMPING_OPT_CMSG = 0x400 | ||
2111 | SOF_TIMESTAMPING_OPT_TSONLY = 0x800 | ||
2112 | SOF_TIMESTAMPING_OPT_STATS = 0x1000 | ||
2113 | SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 | ||
2114 | SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 | ||
2115 | |||
2116 | SOF_TIMESTAMPING_LAST = 0x4000 | ||
2117 | SOF_TIMESTAMPING_MASK = 0x7fff | ||
2118 | |||
2119 | SCM_TSTAMP_SND = 0x0 | ||
2120 | SCM_TSTAMP_SCHED = 0x1 | ||
2121 | SCM_TSTAMP_ACK = 0x2 | ||
2122 | ) | ||
2123 | |||
2124 | type SockExtendedErr struct { | ||
2125 | Errno uint32 | ||
2126 | Origin uint8 | ||
2127 | Type uint8 | ||
2128 | Code uint8 | ||
2129 | Pad uint8 | ||
2130 | Info uint32 | ||
2131 | Data uint32 | ||
2132 | } | ||
2133 | |||
2134 | type FanotifyEventMetadata struct { | ||
2135 | Event_len uint32 | ||
2136 | Vers uint8 | ||
2137 | Reserved uint8 | ||
2138 | Metadata_len uint16 | ||
2139 | Mask uint64 | ||
2140 | Fd int32 | ||
2141 | Pid int32 | ||
2142 | } | ||
2143 | |||
2144 | type FanotifyResponse struct { | ||
2145 | Fd int32 | ||
2146 | Response uint32 | ||
2147 | } | ||
2148 | |||
2149 | const ( | ||
2150 | CRYPTO_MSG_BASE = 0x10 | ||
2151 | CRYPTO_MSG_NEWALG = 0x10 | ||
2152 | CRYPTO_MSG_DELALG = 0x11 | ||
2153 | CRYPTO_MSG_UPDATEALG = 0x12 | ||
2154 | CRYPTO_MSG_GETALG = 0x13 | ||
2155 | CRYPTO_MSG_DELRNG = 0x14 | ||
2156 | CRYPTO_MSG_GETSTAT = 0x15 | ||
2157 | ) | ||
2158 | |||
2159 | const ( | ||
2160 | CRYPTOCFGA_UNSPEC = 0x0 | ||
2161 | CRYPTOCFGA_PRIORITY_VAL = 0x1 | ||
2162 | CRYPTOCFGA_REPORT_LARVAL = 0x2 | ||
2163 | CRYPTOCFGA_REPORT_HASH = 0x3 | ||
2164 | CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 | ||
2165 | CRYPTOCFGA_REPORT_AEAD = 0x5 | ||
2166 | CRYPTOCFGA_REPORT_COMPRESS = 0x6 | ||
2167 | CRYPTOCFGA_REPORT_RNG = 0x7 | ||
2168 | CRYPTOCFGA_REPORT_CIPHER = 0x8 | ||
2169 | CRYPTOCFGA_REPORT_AKCIPHER = 0x9 | ||
2170 | CRYPTOCFGA_REPORT_KPP = 0xa | ||
2171 | CRYPTOCFGA_REPORT_ACOMP = 0xb | ||
2172 | CRYPTOCFGA_STAT_LARVAL = 0xc | ||
2173 | CRYPTOCFGA_STAT_HASH = 0xd | ||
2174 | CRYPTOCFGA_STAT_BLKCIPHER = 0xe | ||
2175 | CRYPTOCFGA_STAT_AEAD = 0xf | ||
2176 | CRYPTOCFGA_STAT_COMPRESS = 0x10 | ||
2177 | CRYPTOCFGA_STAT_RNG = 0x11 | ||
2178 | CRYPTOCFGA_STAT_CIPHER = 0x12 | ||
2179 | CRYPTOCFGA_STAT_AKCIPHER = 0x13 | ||
2180 | CRYPTOCFGA_STAT_KPP = 0x14 | ||
2181 | CRYPTOCFGA_STAT_ACOMP = 0x15 | ||
2182 | ) | ||
2183 | |||
2184 | type CryptoUserAlg struct { | ||
2185 | Name [64]int8 | ||
2186 | Driver_name [64]int8 | ||
2187 | Module_name [64]int8 | ||
2188 | Type uint32 | ||
2189 | Mask uint32 | ||
2190 | Refcnt uint32 | ||
2191 | Flags uint32 | ||
2192 | } | ||
2193 | |||
2194 | type CryptoStatAEAD struct { | ||
2195 | Type [64]int8 | ||
2196 | Encrypt_cnt uint64 | ||
2197 | Encrypt_tlen uint64 | ||
2198 | Decrypt_cnt uint64 | ||
2199 | Decrypt_tlen uint64 | ||
2200 | Err_cnt uint64 | ||
2201 | } | ||
2202 | |||
2203 | type CryptoStatAKCipher struct { | ||
2204 | Type [64]int8 | ||
2205 | Encrypt_cnt uint64 | ||
2206 | Encrypt_tlen uint64 | ||
2207 | Decrypt_cnt uint64 | ||
2208 | Decrypt_tlen uint64 | ||
2209 | Verify_cnt uint64 | ||
2210 | Sign_cnt uint64 | ||
2211 | Err_cnt uint64 | ||
2212 | } | ||
2213 | |||
2214 | type CryptoStatCipher struct { | ||
2215 | Type [64]int8 | ||
2216 | Encrypt_cnt uint64 | ||
2217 | Encrypt_tlen uint64 | ||
2218 | Decrypt_cnt uint64 | ||
2219 | Decrypt_tlen uint64 | ||
2220 | Err_cnt uint64 | ||
2221 | } | ||
2222 | |||
2223 | type CryptoStatCompress struct { | ||
2224 | Type [64]int8 | ||
2225 | Compress_cnt uint64 | ||
2226 | Compress_tlen uint64 | ||
2227 | Decompress_cnt uint64 | ||
2228 | Decompress_tlen uint64 | ||
2229 | Err_cnt uint64 | ||
2230 | } | ||
2231 | |||
2232 | type CryptoStatHash struct { | ||
2233 | Type [64]int8 | ||
2234 | Hash_cnt uint64 | ||
2235 | Hash_tlen uint64 | ||
2236 | Err_cnt uint64 | ||
2237 | } | ||
2238 | |||
2239 | type CryptoStatKPP struct { | ||
2240 | Type [64]int8 | ||
2241 | Setsecret_cnt uint64 | ||
2242 | Generate_public_key_cnt uint64 | ||
2243 | Compute_shared_secret_cnt uint64 | ||
2244 | Err_cnt uint64 | ||
2245 | } | ||
2246 | |||
2247 | type CryptoStatRNG struct { | ||
2248 | Type [64]int8 | ||
2249 | Generate_cnt uint64 | ||
2250 | Generate_tlen uint64 | ||
2251 | Seed_cnt uint64 | ||
2252 | Err_cnt uint64 | ||
2253 | } | ||
2254 | |||
2255 | type CryptoStatLarval struct { | ||
2256 | Type [64]int8 | ||
2257 | } | ||
2258 | |||
2259 | type CryptoReportLarval struct { | ||
2260 | Type [64]int8 | ||
2261 | } | ||
2262 | |||
2263 | type CryptoReportHash struct { | ||
2264 | Type [64]int8 | ||
2265 | Blocksize uint32 | ||
2266 | Digestsize uint32 | ||
2267 | } | ||
2268 | |||
2269 | type CryptoReportCipher struct { | ||
2270 | Type [64]int8 | ||
2271 | Blocksize uint32 | ||
2272 | Min_keysize uint32 | ||
2273 | Max_keysize uint32 | ||
2274 | } | ||
2275 | |||
2276 | type CryptoReportBlkCipher struct { | ||
2277 | Type [64]int8 | ||
2278 | Geniv [64]int8 | ||
2279 | Blocksize uint32 | ||
2280 | Min_keysize uint32 | ||
2281 | Max_keysize uint32 | ||
2282 | Ivsize uint32 | ||
2283 | } | ||
2284 | |||
2285 | type CryptoReportAEAD struct { | ||
2286 | Type [64]int8 | ||
2287 | Geniv [64]int8 | ||
2288 | Blocksize uint32 | ||
2289 | Maxauthsize uint32 | ||
2290 | Ivsize uint32 | ||
2291 | } | ||
2292 | |||
2293 | type CryptoReportComp struct { | ||
2294 | Type [64]int8 | ||
2295 | } | ||
2296 | |||
2297 | type CryptoReportRNG struct { | ||
2298 | Type [64]int8 | ||
2299 | Seedsize uint32 | ||
2300 | } | ||
2301 | |||
2302 | type CryptoReportAKCipher struct { | ||
2303 | Type [64]int8 | ||
2304 | } | ||
2305 | |||
2306 | type CryptoReportKPP struct { | ||
2307 | Type [64]int8 | ||
2308 | } | ||
2309 | |||
2310 | type CryptoReportAcomp struct { | ||
2311 | Type [64]int8 | ||
2312 | } | ||