diff options
author | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
---|---|---|
committer | Alex Pilon <apilon@hashicorp.com> | 2019-02-22 18:24:37 -0500 |
commit | 15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (patch) | |
tree | 255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go | |
parent | 07971ca38143c5faf951d152fba370ddcbe26ad5 (diff) | |
download | terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.gz terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.tar.zst terraform-provider-statuscake-15c0b25d011f37e7c20aeca9eaf461f78285b8d9.zip |
deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules
Updated via: go get github.com/hashicorp/terraform@sdk-v0.11-with-go-modules and go mod tidy
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go | 2016 |
1 files changed, 2016 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go new file mode 100644 index 0000000..60ae71e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go | |||
@@ -0,0 +1,2016 @@ | |||
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 | |||
4 | // +build riscv64,linux | ||
5 | |||
6 | package unix | ||
7 | |||
8 | const ( | ||
9 | SizeofPtr = 0x8 | ||
10 | SizeofShort = 0x2 | ||
11 | SizeofInt = 0x4 | ||
12 | SizeofLong = 0x8 | ||
13 | SizeofLongLong = 0x8 | ||
14 | PathMax = 0x1000 | ||
15 | ) | ||
16 | |||
17 | type ( | ||
18 | _C_short int16 | ||
19 | _C_int int32 | ||
20 | _C_long int64 | ||
21 | _C_long_long int64 | ||
22 | ) | ||
23 | |||
24 | type Timespec struct { | ||
25 | Sec int64 | ||
26 | Nsec int64 | ||
27 | } | ||
28 | |||
29 | type Timeval struct { | ||
30 | Sec int64 | ||
31 | Usec int64 | ||
32 | } | ||
33 | |||
34 | type Timex struct { | ||
35 | Modes uint32 | ||
36 | _ [4]byte | ||
37 | Offset int64 | ||
38 | Freq int64 | ||
39 | Maxerror int64 | ||
40 | Esterror int64 | ||
41 | Status int32 | ||
42 | _ [4]byte | ||
43 | Constant int64 | ||
44 | Precision int64 | ||
45 | Tolerance int64 | ||
46 | Time Timeval | ||
47 | Tick int64 | ||
48 | Ppsfreq int64 | ||
49 | Jitter int64 | ||
50 | Shift int32 | ||
51 | _ [4]byte | ||
52 | Stabil int64 | ||
53 | Jitcnt int64 | ||
54 | Calcnt int64 | ||
55 | Errcnt int64 | ||
56 | Stbcnt int64 | ||
57 | Tai int32 | ||
58 | _ [44]byte | ||
59 | } | ||
60 | |||
61 | type Time_t int64 | ||
62 | |||
63 | type Tms struct { | ||
64 | Utime int64 | ||
65 | Stime int64 | ||
66 | Cutime int64 | ||
67 | Cstime int64 | ||
68 | } | ||
69 | |||
70 | type Utimbuf struct { | ||
71 | Actime int64 | ||
72 | Modtime int64 | ||
73 | } | ||
74 | |||
75 | type Rusage struct { | ||
76 | Utime Timeval | ||
77 | Stime Timeval | ||
78 | Maxrss int64 | ||
79 | Ixrss int64 | ||
80 | Idrss int64 | ||
81 | Isrss int64 | ||
82 | Minflt int64 | ||
83 | Majflt int64 | ||
84 | Nswap int64 | ||
85 | Inblock int64 | ||
86 | Oublock int64 | ||
87 | Msgsnd int64 | ||
88 | Msgrcv int64 | ||
89 | Nsignals int64 | ||
90 | Nvcsw int64 | ||
91 | Nivcsw int64 | ||
92 | } | ||
93 | |||
94 | type Rlimit struct { | ||
95 | Cur uint64 | ||
96 | Max uint64 | ||
97 | } | ||
98 | |||
99 | type _Gid_t uint32 | ||
100 | |||
101 | type Stat_t struct { | ||
102 | Dev uint64 | ||
103 | Ino uint64 | ||
104 | Mode uint32 | ||
105 | Nlink uint32 | ||
106 | Uid uint32 | ||
107 | Gid uint32 | ||
108 | Rdev uint64 | ||
109 | _ uint64 | ||
110 | Size int64 | ||
111 | Blksize int32 | ||
112 | _ int32 | ||
113 | Blocks int64 | ||
114 | Atim Timespec | ||
115 | Mtim Timespec | ||
116 | Ctim Timespec | ||
117 | _ [2]int32 | ||
118 | } | ||
119 | |||
120 | type StatxTimestamp struct { | ||
121 | Sec int64 | ||
122 | Nsec uint32 | ||
123 | _ int32 | ||
124 | } | ||
125 | |||
126 | type Statx_t struct { | ||
127 | Mask uint32 | ||
128 | Blksize uint32 | ||
129 | Attributes uint64 | ||
130 | Nlink uint32 | ||
131 | Uid uint32 | ||
132 | Gid uint32 | ||
133 | Mode uint16 | ||
134 | _ [1]uint16 | ||
135 | Ino uint64 | ||
136 | Size uint64 | ||
137 | Blocks uint64 | ||
138 | Attributes_mask uint64 | ||
139 | Atime StatxTimestamp | ||
140 | Btime StatxTimestamp | ||
141 | Ctime StatxTimestamp | ||
142 | Mtime StatxTimestamp | ||
143 | Rdev_major uint32 | ||
144 | Rdev_minor uint32 | ||
145 | Dev_major uint32 | ||
146 | Dev_minor uint32 | ||
147 | _ [14]uint64 | ||
148 | } | ||
149 | |||
150 | type Dirent struct { | ||
151 | Ino uint64 | ||
152 | Off int64 | ||
153 | Reclen uint16 | ||
154 | Type uint8 | ||
155 | Name [256]uint8 | ||
156 | _ [5]byte | ||
157 | } | ||
158 | |||
159 | type Fsid struct { | ||
160 | Val [2]int32 | ||
161 | } | ||
162 | |||
163 | type Flock_t struct { | ||
164 | Type int16 | ||
165 | Whence int16 | ||
166 | _ [4]byte | ||
167 | Start int64 | ||
168 | Len int64 | ||
169 | Pid int32 | ||
170 | _ [4]byte | ||
171 | } | ||
172 | |||
173 | type FscryptPolicy struct { | ||
174 | Version uint8 | ||
175 | Contents_encryption_mode uint8 | ||
176 | Filenames_encryption_mode uint8 | ||
177 | Flags uint8 | ||
178 | Master_key_descriptor [8]uint8 | ||
179 | } | ||
180 | |||
181 | type FscryptKey struct { | ||
182 | Mode uint32 | ||
183 | Raw [64]uint8 | ||
184 | Size uint32 | ||
185 | } | ||
186 | |||
187 | type KeyctlDHParams struct { | ||
188 | Private int32 | ||
189 | Prime int32 | ||
190 | Base int32 | ||
191 | } | ||
192 | |||
193 | const ( | ||
194 | FADV_NORMAL = 0x0 | ||
195 | FADV_RANDOM = 0x1 | ||
196 | FADV_SEQUENTIAL = 0x2 | ||
197 | FADV_WILLNEED = 0x3 | ||
198 | FADV_DONTNEED = 0x4 | ||
199 | FADV_NOREUSE = 0x5 | ||
200 | ) | ||
201 | |||
202 | type RawSockaddrInet4 struct { | ||
203 | Family uint16 | ||
204 | Port uint16 | ||
205 | Addr [4]byte /* in_addr */ | ||
206 | Zero [8]uint8 | ||
207 | } | ||
208 | |||
209 | type RawSockaddrInet6 struct { | ||
210 | Family uint16 | ||
211 | Port uint16 | ||
212 | Flowinfo uint32 | ||
213 | Addr [16]byte /* in6_addr */ | ||
214 | Scope_id uint32 | ||
215 | } | ||
216 | |||
217 | type RawSockaddrUnix struct { | ||
218 | Family uint16 | ||
219 | Path [108]uint8 | ||
220 | } | ||
221 | |||
222 | type RawSockaddrLinklayer struct { | ||
223 | Family uint16 | ||
224 | Protocol uint16 | ||
225 | Ifindex int32 | ||
226 | Hatype uint16 | ||
227 | Pkttype uint8 | ||
228 | Halen uint8 | ||
229 | Addr [8]uint8 | ||
230 | } | ||
231 | |||
232 | type RawSockaddrNetlink struct { | ||
233 | Family uint16 | ||
234 | Pad uint16 | ||
235 | Pid uint32 | ||
236 | Groups uint32 | ||
237 | } | ||
238 | |||
239 | type RawSockaddrHCI struct { | ||
240 | Family uint16 | ||
241 | Dev uint16 | ||
242 | Channel uint16 | ||
243 | } | ||
244 | |||
245 | type RawSockaddrL2 struct { | ||
246 | Family uint16 | ||
247 | Psm uint16 | ||
248 | Bdaddr [6]uint8 | ||
249 | Cid uint16 | ||
250 | Bdaddr_type uint8 | ||
251 | _ [1]byte | ||
252 | } | ||
253 | |||
254 | type RawSockaddrRFCOMM struct { | ||
255 | Family uint16 | ||
256 | Bdaddr [6]uint8 | ||
257 | Channel uint8 | ||
258 | _ [1]byte | ||
259 | } | ||
260 | |||
261 | type RawSockaddrCAN struct { | ||
262 | Family uint16 | ||
263 | _ [2]byte | ||
264 | Ifindex int32 | ||
265 | Addr [8]byte | ||
266 | } | ||
267 | |||
268 | type RawSockaddrALG struct { | ||
269 | Family uint16 | ||
270 | Type [14]uint8 | ||
271 | Feat uint32 | ||
272 | Mask uint32 | ||
273 | Name [64]uint8 | ||
274 | } | ||
275 | |||
276 | type RawSockaddrVM struct { | ||
277 | Family uint16 | ||
278 | Reserved1 uint16 | ||
279 | Port uint32 | ||
280 | Cid uint32 | ||
281 | Zero [4]uint8 | ||
282 | } | ||
283 | |||
284 | type RawSockaddrXDP struct { | ||
285 | Family uint16 | ||
286 | Flags uint16 | ||
287 | Ifindex uint32 | ||
288 | Queue_id uint32 | ||
289 | Shared_umem_fd uint32 | ||
290 | } | ||
291 | |||
292 | type RawSockaddr struct { | ||
293 | Family uint16 | ||
294 | Data [14]uint8 | ||
295 | } | ||
296 | |||
297 | type RawSockaddrAny struct { | ||
298 | Addr RawSockaddr | ||
299 | Pad [96]uint8 | ||
300 | } | ||
301 | |||
302 | type _Socklen uint32 | ||
303 | |||
304 | type Linger struct { | ||
305 | Onoff int32 | ||
306 | Linger int32 | ||
307 | } | ||
308 | |||
309 | type Iovec struct { | ||
310 | Base *byte | ||
311 | Len uint64 | ||
312 | } | ||
313 | |||
314 | type IPMreq struct { | ||
315 | Multiaddr [4]byte /* in_addr */ | ||
316 | Interface [4]byte /* in_addr */ | ||
317 | } | ||
318 | |||
319 | type IPMreqn struct { | ||
320 | Multiaddr [4]byte /* in_addr */ | ||
321 | Address [4]byte /* in_addr */ | ||
322 | Ifindex int32 | ||
323 | } | ||
324 | |||
325 | type IPv6Mreq struct { | ||
326 | Multiaddr [16]byte /* in6_addr */ | ||
327 | Interface uint32 | ||
328 | } | ||
329 | |||
330 | type PacketMreq struct { | ||
331 | Ifindex int32 | ||
332 | Type uint16 | ||
333 | Alen uint16 | ||
334 | Address [8]uint8 | ||
335 | } | ||
336 | |||
337 | type Msghdr struct { | ||
338 | Name *byte | ||
339 | Namelen uint32 | ||
340 | _ [4]byte | ||
341 | Iov *Iovec | ||
342 | Iovlen uint64 | ||
343 | Control *byte | ||
344 | Controllen uint64 | ||
345 | Flags int32 | ||
346 | _ [4]byte | ||
347 | } | ||
348 | |||
349 | type Cmsghdr struct { | ||
350 | Len uint64 | ||
351 | Level int32 | ||
352 | Type int32 | ||
353 | } | ||
354 | |||
355 | type Inet4Pktinfo struct { | ||
356 | Ifindex int32 | ||
357 | Spec_dst [4]byte /* in_addr */ | ||
358 | Addr [4]byte /* in_addr */ | ||
359 | } | ||
360 | |||
361 | type Inet6Pktinfo struct { | ||
362 | Addr [16]byte /* in6_addr */ | ||
363 | Ifindex uint32 | ||
364 | } | ||
365 | |||
366 | type IPv6MTUInfo struct { | ||
367 | Addr RawSockaddrInet6 | ||
368 | Mtu uint32 | ||
369 | } | ||
370 | |||
371 | type ICMPv6Filter struct { | ||
372 | Data [8]uint32 | ||
373 | } | ||
374 | |||
375 | type Ucred struct { | ||
376 | Pid int32 | ||
377 | Uid uint32 | ||
378 | Gid uint32 | ||
379 | } | ||
380 | |||
381 | type TCPInfo struct { | ||
382 | State uint8 | ||
383 | Ca_state uint8 | ||
384 | Retransmits uint8 | ||
385 | Probes uint8 | ||
386 | Backoff uint8 | ||
387 | Options uint8 | ||
388 | _ [2]byte | ||
389 | Rto uint32 | ||
390 | Ato uint32 | ||
391 | Snd_mss uint32 | ||
392 | Rcv_mss uint32 | ||
393 | Unacked uint32 | ||
394 | Sacked uint32 | ||
395 | Lost uint32 | ||
396 | Retrans uint32 | ||
397 | Fackets uint32 | ||
398 | Last_data_sent uint32 | ||
399 | Last_ack_sent uint32 | ||
400 | Last_data_recv uint32 | ||
401 | Last_ack_recv uint32 | ||
402 | Pmtu uint32 | ||
403 | Rcv_ssthresh uint32 | ||
404 | Rtt uint32 | ||
405 | Rttvar uint32 | ||
406 | Snd_ssthresh uint32 | ||
407 | Snd_cwnd uint32 | ||
408 | Advmss uint32 | ||
409 | Reordering uint32 | ||
410 | Rcv_rtt uint32 | ||
411 | Rcv_space uint32 | ||
412 | Total_retrans uint32 | ||
413 | } | ||
414 | |||
415 | const ( | ||
416 | SizeofSockaddrInet4 = 0x10 | ||
417 | SizeofSockaddrInet6 = 0x1c | ||
418 | SizeofSockaddrAny = 0x70 | ||
419 | SizeofSockaddrUnix = 0x6e | ||
420 | SizeofSockaddrLinklayer = 0x14 | ||
421 | SizeofSockaddrNetlink = 0xc | ||
422 | SizeofSockaddrHCI = 0x6 | ||
423 | SizeofSockaddrL2 = 0xe | ||
424 | SizeofSockaddrRFCOMM = 0xa | ||
425 | SizeofSockaddrCAN = 0x10 | ||
426 | SizeofSockaddrALG = 0x58 | ||
427 | SizeofSockaddrVM = 0x10 | ||
428 | SizeofSockaddrXDP = 0x10 | ||
429 | SizeofLinger = 0x8 | ||
430 | SizeofIovec = 0x10 | ||
431 | SizeofIPMreq = 0x8 | ||
432 | SizeofIPMreqn = 0xc | ||
433 | SizeofIPv6Mreq = 0x14 | ||
434 | SizeofPacketMreq = 0x10 | ||
435 | SizeofMsghdr = 0x38 | ||
436 | SizeofCmsghdr = 0x10 | ||
437 | SizeofInet4Pktinfo = 0xc | ||
438 | SizeofInet6Pktinfo = 0x14 | ||
439 | SizeofIPv6MTUInfo = 0x20 | ||
440 | SizeofICMPv6Filter = 0x20 | ||
441 | SizeofUcred = 0xc | ||
442 | SizeofTCPInfo = 0x68 | ||
443 | ) | ||
444 | |||
445 | const ( | ||
446 | IFA_UNSPEC = 0x0 | ||
447 | IFA_ADDRESS = 0x1 | ||
448 | IFA_LOCAL = 0x2 | ||
449 | IFA_LABEL = 0x3 | ||
450 | IFA_BROADCAST = 0x4 | ||
451 | IFA_ANYCAST = 0x5 | ||
452 | IFA_CACHEINFO = 0x6 | ||
453 | IFA_MULTICAST = 0x7 | ||
454 | IFLA_UNSPEC = 0x0 | ||
455 | IFLA_ADDRESS = 0x1 | ||
456 | IFLA_BROADCAST = 0x2 | ||
457 | IFLA_IFNAME = 0x3 | ||
458 | IFLA_INFO_KIND = 0x1 | ||
459 | IFLA_MTU = 0x4 | ||
460 | IFLA_LINK = 0x5 | ||
461 | IFLA_QDISC = 0x6 | ||
462 | IFLA_STATS = 0x7 | ||
463 | IFLA_COST = 0x8 | ||
464 | IFLA_PRIORITY = 0x9 | ||
465 | IFLA_MASTER = 0xa | ||
466 | IFLA_WIRELESS = 0xb | ||
467 | IFLA_PROTINFO = 0xc | ||
468 | IFLA_TXQLEN = 0xd | ||
469 | IFLA_MAP = 0xe | ||
470 | IFLA_WEIGHT = 0xf | ||
471 | IFLA_OPERSTATE = 0x10 | ||
472 | IFLA_LINKMODE = 0x11 | ||
473 | IFLA_LINKINFO = 0x12 | ||
474 | IFLA_NET_NS_PID = 0x13 | ||
475 | IFLA_IFALIAS = 0x14 | ||
476 | IFLA_NUM_VF = 0x15 | ||
477 | IFLA_VFINFO_LIST = 0x16 | ||
478 | IFLA_STATS64 = 0x17 | ||
479 | IFLA_VF_PORTS = 0x18 | ||
480 | IFLA_PORT_SELF = 0x19 | ||
481 | IFLA_AF_SPEC = 0x1a | ||
482 | IFLA_GROUP = 0x1b | ||
483 | IFLA_NET_NS_FD = 0x1c | ||
484 | IFLA_EXT_MASK = 0x1d | ||
485 | IFLA_PROMISCUITY = 0x1e | ||
486 | IFLA_NUM_TX_QUEUES = 0x1f | ||
487 | IFLA_NUM_RX_QUEUES = 0x20 | ||
488 | IFLA_CARRIER = 0x21 | ||
489 | IFLA_PHYS_PORT_ID = 0x22 | ||
490 | IFLA_CARRIER_CHANGES = 0x23 | ||
491 | IFLA_PHYS_SWITCH_ID = 0x24 | ||
492 | IFLA_LINK_NETNSID = 0x25 | ||
493 | IFLA_PHYS_PORT_NAME = 0x26 | ||
494 | IFLA_PROTO_DOWN = 0x27 | ||
495 | IFLA_GSO_MAX_SEGS = 0x28 | ||
496 | IFLA_GSO_MAX_SIZE = 0x29 | ||
497 | IFLA_PAD = 0x2a | ||
498 | IFLA_XDP = 0x2b | ||
499 | IFLA_EVENT = 0x2c | ||
500 | IFLA_NEW_NETNSID = 0x2d | ||
501 | IFLA_IF_NETNSID = 0x2e | ||
502 | IFLA_MAX = 0x33 | ||
503 | RT_SCOPE_UNIVERSE = 0x0 | ||
504 | RT_SCOPE_SITE = 0xc8 | ||
505 | RT_SCOPE_LINK = 0xfd | ||
506 | RT_SCOPE_HOST = 0xfe | ||
507 | RT_SCOPE_NOWHERE = 0xff | ||
508 | RT_TABLE_UNSPEC = 0x0 | ||
509 | RT_TABLE_COMPAT = 0xfc | ||
510 | RT_TABLE_DEFAULT = 0xfd | ||
511 | RT_TABLE_MAIN = 0xfe | ||
512 | RT_TABLE_LOCAL = 0xff | ||
513 | RT_TABLE_MAX = 0xffffffff | ||
514 | RTA_UNSPEC = 0x0 | ||
515 | RTA_DST = 0x1 | ||
516 | RTA_SRC = 0x2 | ||
517 | RTA_IIF = 0x3 | ||
518 | RTA_OIF = 0x4 | ||
519 | RTA_GATEWAY = 0x5 | ||
520 | RTA_PRIORITY = 0x6 | ||
521 | RTA_PREFSRC = 0x7 | ||
522 | RTA_METRICS = 0x8 | ||
523 | RTA_MULTIPATH = 0x9 | ||
524 | RTA_FLOW = 0xb | ||
525 | RTA_CACHEINFO = 0xc | ||
526 | RTA_TABLE = 0xf | ||
527 | RTA_MARK = 0x10 | ||
528 | RTA_MFC_STATS = 0x11 | ||
529 | RTA_VIA = 0x12 | ||
530 | RTA_NEWDST = 0x13 | ||
531 | RTA_PREF = 0x14 | ||
532 | RTA_ENCAP_TYPE = 0x15 | ||
533 | RTA_ENCAP = 0x16 | ||
534 | RTA_EXPIRES = 0x17 | ||
535 | RTA_PAD = 0x18 | ||
536 | RTA_UID = 0x19 | ||
537 | RTA_TTL_PROPAGATE = 0x1a | ||
538 | RTA_IP_PROTO = 0x1b | ||
539 | RTA_SPORT = 0x1c | ||
540 | RTA_DPORT = 0x1d | ||
541 | RTN_UNSPEC = 0x0 | ||
542 | RTN_UNICAST = 0x1 | ||
543 | RTN_LOCAL = 0x2 | ||
544 | RTN_BROADCAST = 0x3 | ||
545 | RTN_ANYCAST = 0x4 | ||
546 | RTN_MULTICAST = 0x5 | ||
547 | RTN_BLACKHOLE = 0x6 | ||
548 | RTN_UNREACHABLE = 0x7 | ||
549 | RTN_PROHIBIT = 0x8 | ||
550 | RTN_THROW = 0x9 | ||
551 | RTN_NAT = 0xa | ||
552 | RTN_XRESOLVE = 0xb | ||
553 | RTNLGRP_NONE = 0x0 | ||
554 | RTNLGRP_LINK = 0x1 | ||
555 | RTNLGRP_NOTIFY = 0x2 | ||
556 | RTNLGRP_NEIGH = 0x3 | ||
557 | RTNLGRP_TC = 0x4 | ||
558 | RTNLGRP_IPV4_IFADDR = 0x5 | ||
559 | RTNLGRP_IPV4_MROUTE = 0x6 | ||
560 | RTNLGRP_IPV4_ROUTE = 0x7 | ||
561 | RTNLGRP_IPV4_RULE = 0x8 | ||
562 | RTNLGRP_IPV6_IFADDR = 0x9 | ||
563 | RTNLGRP_IPV6_MROUTE = 0xa | ||
564 | RTNLGRP_IPV6_ROUTE = 0xb | ||
565 | RTNLGRP_IPV6_IFINFO = 0xc | ||
566 | RTNLGRP_IPV6_PREFIX = 0x12 | ||
567 | RTNLGRP_IPV6_RULE = 0x13 | ||
568 | RTNLGRP_ND_USEROPT = 0x14 | ||
569 | SizeofNlMsghdr = 0x10 | ||
570 | SizeofNlMsgerr = 0x14 | ||
571 | SizeofRtGenmsg = 0x1 | ||
572 | SizeofNlAttr = 0x4 | ||
573 | SizeofRtAttr = 0x4 | ||
574 | SizeofIfInfomsg = 0x10 | ||
575 | SizeofIfAddrmsg = 0x8 | ||
576 | SizeofRtMsg = 0xc | ||
577 | SizeofRtNexthop = 0x8 | ||
578 | ) | ||
579 | |||
580 | type NlMsghdr struct { | ||
581 | Len uint32 | ||
582 | Type uint16 | ||
583 | Flags uint16 | ||
584 | Seq uint32 | ||
585 | Pid uint32 | ||
586 | } | ||
587 | |||
588 | type NlMsgerr struct { | ||
589 | Error int32 | ||
590 | Msg NlMsghdr | ||
591 | } | ||
592 | |||
593 | type RtGenmsg struct { | ||
594 | Family uint8 | ||
595 | } | ||
596 | |||
597 | type NlAttr struct { | ||
598 | Len uint16 | ||
599 | Type uint16 | ||
600 | } | ||
601 | |||
602 | type RtAttr struct { | ||
603 | Len uint16 | ||
604 | Type uint16 | ||
605 | } | ||
606 | |||
607 | type IfInfomsg struct { | ||
608 | Family uint8 | ||
609 | _ uint8 | ||
610 | Type uint16 | ||
611 | Index int32 | ||
612 | Flags uint32 | ||
613 | Change uint32 | ||
614 | } | ||
615 | |||
616 | type IfAddrmsg struct { | ||
617 | Family uint8 | ||
618 | Prefixlen uint8 | ||
619 | Flags uint8 | ||
620 | Scope uint8 | ||
621 | Index uint32 | ||
622 | } | ||
623 | |||
624 | type RtMsg struct { | ||
625 | Family uint8 | ||
626 | Dst_len uint8 | ||
627 | Src_len uint8 | ||
628 | Tos uint8 | ||
629 | Table uint8 | ||
630 | Protocol uint8 | ||
631 | Scope uint8 | ||
632 | Type uint8 | ||
633 | Flags uint32 | ||
634 | } | ||
635 | |||
636 | type RtNexthop struct { | ||
637 | Len uint16 | ||
638 | Flags uint8 | ||
639 | Hops uint8 | ||
640 | Ifindex int32 | ||
641 | } | ||
642 | |||
643 | const ( | ||
644 | SizeofSockFilter = 0x8 | ||
645 | SizeofSockFprog = 0x10 | ||
646 | ) | ||
647 | |||
648 | type SockFilter struct { | ||
649 | Code uint16 | ||
650 | Jt uint8 | ||
651 | Jf uint8 | ||
652 | K uint32 | ||
653 | } | ||
654 | |||
655 | type SockFprog struct { | ||
656 | Len uint16 | ||
657 | _ [6]byte | ||
658 | Filter *SockFilter | ||
659 | } | ||
660 | |||
661 | type InotifyEvent struct { | ||
662 | Wd int32 | ||
663 | Mask uint32 | ||
664 | Cookie uint32 | ||
665 | Len uint32 | ||
666 | } | ||
667 | |||
668 | const SizeofInotifyEvent = 0x10 | ||
669 | |||
670 | type PtraceRegs struct { | ||
671 | Pc uint64 | ||
672 | Ra uint64 | ||
673 | Sp uint64 | ||
674 | Gp uint64 | ||
675 | Tp uint64 | ||
676 | T0 uint64 | ||
677 | T1 uint64 | ||
678 | T2 uint64 | ||
679 | S0 uint64 | ||
680 | S1 uint64 | ||
681 | A0 uint64 | ||
682 | A1 uint64 | ||
683 | A2 uint64 | ||
684 | A3 uint64 | ||
685 | A4 uint64 | ||
686 | A5 uint64 | ||
687 | A6 uint64 | ||
688 | A7 uint64 | ||
689 | S2 uint64 | ||
690 | S3 uint64 | ||
691 | S4 uint64 | ||
692 | S5 uint64 | ||
693 | S6 uint64 | ||
694 | S7 uint64 | ||
695 | S8 uint64 | ||
696 | S9 uint64 | ||
697 | S10 uint64 | ||
698 | S11 uint64 | ||
699 | T3 uint64 | ||
700 | T4 uint64 | ||
701 | T5 uint64 | ||
702 | T6 uint64 | ||
703 | } | ||
704 | |||
705 | type FdSet struct { | ||
706 | Bits [16]int64 | ||
707 | } | ||
708 | |||
709 | type Sysinfo_t struct { | ||
710 | Uptime int64 | ||
711 | Loads [3]uint64 | ||
712 | Totalram uint64 | ||
713 | Freeram uint64 | ||
714 | Sharedram uint64 | ||
715 | Bufferram uint64 | ||
716 | Totalswap uint64 | ||
717 | Freeswap uint64 | ||
718 | Procs uint16 | ||
719 | Pad uint16 | ||
720 | _ [4]byte | ||
721 | Totalhigh uint64 | ||
722 | Freehigh uint64 | ||
723 | Unit uint32 | ||
724 | _ [0]uint8 | ||
725 | _ [4]byte | ||
726 | } | ||
727 | |||
728 | type Utsname struct { | ||
729 | Sysname [65]byte | ||
730 | Nodename [65]byte | ||
731 | Release [65]byte | ||
732 | Version [65]byte | ||
733 | Machine [65]byte | ||
734 | Domainname [65]byte | ||
735 | } | ||
736 | |||
737 | type Ustat_t struct { | ||
738 | Tfree int32 | ||
739 | _ [4]byte | ||
740 | Tinode uint64 | ||
741 | Fname [6]uint8 | ||
742 | Fpack [6]uint8 | ||
743 | _ [4]byte | ||
744 | } | ||
745 | |||
746 | type EpollEvent struct { | ||
747 | Events uint32 | ||
748 | Fd int32 | ||
749 | Pad int32 | ||
750 | } | ||
751 | |||
752 | const ( | ||
753 | AT_EMPTY_PATH = 0x1000 | ||
754 | AT_FDCWD = -0x64 | ||
755 | AT_NO_AUTOMOUNT = 0x800 | ||
756 | AT_REMOVEDIR = 0x200 | ||
757 | |||
758 | AT_STATX_SYNC_AS_STAT = 0x0 | ||
759 | AT_STATX_FORCE_SYNC = 0x2000 | ||
760 | AT_STATX_DONT_SYNC = 0x4000 | ||
761 | |||
762 | AT_SYMLINK_FOLLOW = 0x400 | ||
763 | AT_SYMLINK_NOFOLLOW = 0x100 | ||
764 | |||
765 | AT_EACCESS = 0x200 | ||
766 | ) | ||
767 | |||
768 | type PollFd struct { | ||
769 | Fd int32 | ||
770 | Events int16 | ||
771 | Revents int16 | ||
772 | } | ||
773 | |||
774 | const ( | ||
775 | POLLIN = 0x1 | ||
776 | POLLPRI = 0x2 | ||
777 | POLLOUT = 0x4 | ||
778 | POLLRDHUP = 0x2000 | ||
779 | POLLERR = 0x8 | ||
780 | POLLHUP = 0x10 | ||
781 | POLLNVAL = 0x20 | ||
782 | ) | ||
783 | |||
784 | type Sigset_t struct { | ||
785 | Val [16]uint64 | ||
786 | } | ||
787 | |||
788 | const RNDGETENTCNT = 0x80045200 | ||
789 | |||
790 | const PERF_IOC_FLAG_GROUP = 0x1 | ||
791 | |||
792 | type Termios struct { | ||
793 | Iflag uint32 | ||
794 | Oflag uint32 | ||
795 | Cflag uint32 | ||
796 | Lflag uint32 | ||
797 | Line uint8 | ||
798 | Cc [19]uint8 | ||
799 | Ispeed uint32 | ||
800 | Ospeed uint32 | ||
801 | } | ||
802 | |||
803 | type Winsize struct { | ||
804 | Row uint16 | ||
805 | Col uint16 | ||
806 | Xpixel uint16 | ||
807 | Ypixel uint16 | ||
808 | } | ||
809 | |||
810 | type Taskstats struct { | ||
811 | Version uint16 | ||
812 | _ [2]byte | ||
813 | Ac_exitcode uint32 | ||
814 | Ac_flag uint8 | ||
815 | Ac_nice uint8 | ||
816 | _ [6]byte | ||
817 | Cpu_count uint64 | ||
818 | Cpu_delay_total uint64 | ||
819 | Blkio_count uint64 | ||
820 | Blkio_delay_total uint64 | ||
821 | Swapin_count uint64 | ||
822 | Swapin_delay_total uint64 | ||
823 | Cpu_run_real_total uint64 | ||
824 | Cpu_run_virtual_total uint64 | ||
825 | Ac_comm [32]uint8 | ||
826 | Ac_sched uint8 | ||
827 | Ac_pad [3]uint8 | ||
828 | _ [4]byte | ||
829 | Ac_uid uint32 | ||
830 | Ac_gid uint32 | ||
831 | Ac_pid uint32 | ||
832 | Ac_ppid uint32 | ||
833 | Ac_btime uint32 | ||
834 | _ [4]byte | ||
835 | Ac_etime uint64 | ||
836 | Ac_utime uint64 | ||
837 | Ac_stime uint64 | ||
838 | Ac_minflt uint64 | ||
839 | Ac_majflt uint64 | ||
840 | Coremem uint64 | ||
841 | Virtmem uint64 | ||
842 | Hiwater_rss uint64 | ||
843 | Hiwater_vm uint64 | ||
844 | Read_char uint64 | ||
845 | Write_char uint64 | ||
846 | Read_syscalls uint64 | ||
847 | Write_syscalls uint64 | ||
848 | Read_bytes uint64 | ||
849 | Write_bytes uint64 | ||
850 | Cancelled_write_bytes uint64 | ||
851 | Nvcsw uint64 | ||
852 | Nivcsw uint64 | ||
853 | Ac_utimescaled uint64 | ||
854 | Ac_stimescaled uint64 | ||
855 | Cpu_scaled_run_real_total uint64 | ||
856 | Freepages_count uint64 | ||
857 | Freepages_delay_total uint64 | ||
858 | } | ||
859 | |||
860 | const ( | ||
861 | TASKSTATS_CMD_UNSPEC = 0x0 | ||
862 | TASKSTATS_CMD_GET = 0x1 | ||
863 | TASKSTATS_CMD_NEW = 0x2 | ||
864 | TASKSTATS_TYPE_UNSPEC = 0x0 | ||
865 | TASKSTATS_TYPE_PID = 0x1 | ||
866 | TASKSTATS_TYPE_TGID = 0x2 | ||
867 | TASKSTATS_TYPE_STATS = 0x3 | ||
868 | TASKSTATS_TYPE_AGGR_PID = 0x4 | ||
869 | TASKSTATS_TYPE_AGGR_TGID = 0x5 | ||
870 | TASKSTATS_TYPE_NULL = 0x6 | ||
871 | TASKSTATS_CMD_ATTR_UNSPEC = 0x0 | ||
872 | TASKSTATS_CMD_ATTR_PID = 0x1 | ||
873 | TASKSTATS_CMD_ATTR_TGID = 0x2 | ||
874 | TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 | ||
875 | TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 | ||
876 | ) | ||
877 | |||
878 | type CGroupStats struct { | ||
879 | Sleeping uint64 | ||
880 | Running uint64 | ||
881 | Stopped uint64 | ||
882 | Uninterruptible uint64 | ||
883 | Io_wait uint64 | ||
884 | } | ||
885 | |||
886 | const ( | ||
887 | CGROUPSTATS_CMD_UNSPEC = 0x3 | ||
888 | CGROUPSTATS_CMD_GET = 0x4 | ||
889 | CGROUPSTATS_CMD_NEW = 0x5 | ||
890 | CGROUPSTATS_TYPE_UNSPEC = 0x0 | ||
891 | CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 | ||
892 | CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 | ||
893 | CGROUPSTATS_CMD_ATTR_FD = 0x1 | ||
894 | ) | ||
895 | |||
896 | type Genlmsghdr struct { | ||
897 | Cmd uint8 | ||
898 | Version uint8 | ||
899 | Reserved uint16 | ||
900 | } | ||
901 | |||
902 | const ( | ||
903 | CTRL_CMD_UNSPEC = 0x0 | ||
904 | CTRL_CMD_NEWFAMILY = 0x1 | ||
905 | CTRL_CMD_DELFAMILY = 0x2 | ||
906 | CTRL_CMD_GETFAMILY = 0x3 | ||
907 | CTRL_CMD_NEWOPS = 0x4 | ||
908 | CTRL_CMD_DELOPS = 0x5 | ||
909 | CTRL_CMD_GETOPS = 0x6 | ||
910 | CTRL_CMD_NEWMCAST_GRP = 0x7 | ||
911 | CTRL_CMD_DELMCAST_GRP = 0x8 | ||
912 | CTRL_CMD_GETMCAST_GRP = 0x9 | ||
913 | CTRL_ATTR_UNSPEC = 0x0 | ||
914 | CTRL_ATTR_FAMILY_ID = 0x1 | ||
915 | CTRL_ATTR_FAMILY_NAME = 0x2 | ||
916 | CTRL_ATTR_VERSION = 0x3 | ||
917 | CTRL_ATTR_HDRSIZE = 0x4 | ||
918 | CTRL_ATTR_MAXATTR = 0x5 | ||
919 | CTRL_ATTR_OPS = 0x6 | ||
920 | CTRL_ATTR_MCAST_GROUPS = 0x7 | ||
921 | CTRL_ATTR_OP_UNSPEC = 0x0 | ||
922 | CTRL_ATTR_OP_ID = 0x1 | ||
923 | CTRL_ATTR_OP_FLAGS = 0x2 | ||
924 | CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 | ||
925 | CTRL_ATTR_MCAST_GRP_NAME = 0x1 | ||
926 | CTRL_ATTR_MCAST_GRP_ID = 0x2 | ||
927 | ) | ||
928 | |||
929 | type cpuMask uint64 | ||
930 | |||
931 | const ( | ||
932 | _CPU_SETSIZE = 0x400 | ||
933 | _NCPUBITS = 0x40 | ||
934 | ) | ||
935 | |||
936 | const ( | ||
937 | BDADDR_BREDR = 0x0 | ||
938 | BDADDR_LE_PUBLIC = 0x1 | ||
939 | BDADDR_LE_RANDOM = 0x2 | ||
940 | ) | ||
941 | |||
942 | type PerfEventAttr struct { | ||
943 | Type uint32 | ||
944 | Size uint32 | ||
945 | Config uint64 | ||
946 | Sample uint64 | ||
947 | Sample_type uint64 | ||
948 | Read_format uint64 | ||
949 | Bits uint64 | ||
950 | Wakeup uint32 | ||
951 | Bp_type uint32 | ||
952 | Ext1 uint64 | ||
953 | Ext2 uint64 | ||
954 | Branch_sample_type uint64 | ||
955 | Sample_regs_user uint64 | ||
956 | Sample_stack_user uint32 | ||
957 | Clockid int32 | ||
958 | Sample_regs_intr uint64 | ||
959 | Aux_watermark uint32 | ||
960 | _ uint32 | ||
961 | } | ||
962 | |||
963 | type PerfEventMmapPage struct { | ||
964 | Version uint32 | ||
965 | Compat_version uint32 | ||
966 | Lock uint32 | ||
967 | Index uint32 | ||
968 | Offset int64 | ||
969 | Time_enabled uint64 | ||
970 | Time_running uint64 | ||
971 | Capabilities uint64 | ||
972 | Pmc_width uint16 | ||
973 | Time_shift uint16 | ||
974 | Time_mult uint32 | ||
975 | Time_offset uint64 | ||
976 | Time_zero uint64 | ||
977 | Size uint32 | ||
978 | _ [948]uint8 | ||
979 | Data_head uint64 | ||
980 | Data_tail uint64 | ||
981 | Data_offset uint64 | ||
982 | Data_size uint64 | ||
983 | Aux_head uint64 | ||
984 | Aux_tail uint64 | ||
985 | Aux_offset uint64 | ||
986 | Aux_size uint64 | ||
987 | } | ||
988 | |||
989 | const ( | ||
990 | PerfBitDisabled uint64 = CBitFieldMaskBit0 | ||
991 | PerfBitInherit = CBitFieldMaskBit1 | ||
992 | PerfBitPinned = CBitFieldMaskBit2 | ||
993 | PerfBitExclusive = CBitFieldMaskBit3 | ||
994 | PerfBitExcludeUser = CBitFieldMaskBit4 | ||
995 | PerfBitExcludeKernel = CBitFieldMaskBit5 | ||
996 | PerfBitExcludeHv = CBitFieldMaskBit6 | ||
997 | PerfBitExcludeIdle = CBitFieldMaskBit7 | ||
998 | PerfBitMmap = CBitFieldMaskBit8 | ||
999 | PerfBitComm = CBitFieldMaskBit9 | ||
1000 | PerfBitFreq = CBitFieldMaskBit10 | ||
1001 | PerfBitInheritStat = CBitFieldMaskBit11 | ||
1002 | PerfBitEnableOnExec = CBitFieldMaskBit12 | ||
1003 | PerfBitTask = CBitFieldMaskBit13 | ||
1004 | PerfBitWatermark = CBitFieldMaskBit14 | ||
1005 | PerfBitPreciseIPBit1 = CBitFieldMaskBit15 | ||
1006 | PerfBitPreciseIPBit2 = CBitFieldMaskBit16 | ||
1007 | PerfBitMmapData = CBitFieldMaskBit17 | ||
1008 | PerfBitSampleIDAll = CBitFieldMaskBit18 | ||
1009 | PerfBitExcludeHost = CBitFieldMaskBit19 | ||
1010 | PerfBitExcludeGuest = CBitFieldMaskBit20 | ||
1011 | PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 | ||
1012 | PerfBitExcludeCallchainUser = CBitFieldMaskBit22 | ||
1013 | PerfBitMmap2 = CBitFieldMaskBit23 | ||
1014 | PerfBitCommExec = CBitFieldMaskBit24 | ||
1015 | PerfBitUseClockID = CBitFieldMaskBit25 | ||
1016 | PerfBitContextSwitch = CBitFieldMaskBit26 | ||
1017 | ) | ||
1018 | |||
1019 | const ( | ||
1020 | PERF_TYPE_HARDWARE = 0x0 | ||
1021 | PERF_TYPE_SOFTWARE = 0x1 | ||
1022 | PERF_TYPE_TRACEPOINT = 0x2 | ||
1023 | PERF_TYPE_HW_CACHE = 0x3 | ||
1024 | PERF_TYPE_RAW = 0x4 | ||
1025 | PERF_TYPE_BREAKPOINT = 0x5 | ||
1026 | |||
1027 | PERF_COUNT_HW_CPU_CYCLES = 0x0 | ||
1028 | PERF_COUNT_HW_INSTRUCTIONS = 0x1 | ||
1029 | PERF_COUNT_HW_CACHE_REFERENCES = 0x2 | ||
1030 | PERF_COUNT_HW_CACHE_MISSES = 0x3 | ||
1031 | PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 | ||
1032 | PERF_COUNT_HW_BRANCH_MISSES = 0x5 | ||
1033 | PERF_COUNT_HW_BUS_CYCLES = 0x6 | ||
1034 | PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 | ||
1035 | PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 | ||
1036 | PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 | ||
1037 | |||
1038 | PERF_COUNT_HW_CACHE_L1D = 0x0 | ||
1039 | PERF_COUNT_HW_CACHE_L1I = 0x1 | ||
1040 | PERF_COUNT_HW_CACHE_LL = 0x2 | ||
1041 | PERF_COUNT_HW_CACHE_DTLB = 0x3 | ||
1042 | PERF_COUNT_HW_CACHE_ITLB = 0x4 | ||
1043 | PERF_COUNT_HW_CACHE_BPU = 0x5 | ||
1044 | PERF_COUNT_HW_CACHE_NODE = 0x6 | ||
1045 | |||
1046 | PERF_COUNT_HW_CACHE_OP_READ = 0x0 | ||
1047 | PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 | ||
1048 | PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 | ||
1049 | |||
1050 | PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 | ||
1051 | PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 | ||
1052 | |||
1053 | PERF_COUNT_SW_CPU_CLOCK = 0x0 | ||
1054 | PERF_COUNT_SW_TASK_CLOCK = 0x1 | ||
1055 | PERF_COUNT_SW_PAGE_FAULTS = 0x2 | ||
1056 | PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 | ||
1057 | PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 | ||
1058 | PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 | ||
1059 | PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 | ||
1060 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 | ||
1061 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 | ||
1062 | PERF_COUNT_SW_DUMMY = 0x9 | ||
1063 | |||
1064 | PERF_SAMPLE_IP = 0x1 | ||
1065 | PERF_SAMPLE_TID = 0x2 | ||
1066 | PERF_SAMPLE_TIME = 0x4 | ||
1067 | PERF_SAMPLE_ADDR = 0x8 | ||
1068 | PERF_SAMPLE_READ = 0x10 | ||
1069 | PERF_SAMPLE_CALLCHAIN = 0x20 | ||
1070 | PERF_SAMPLE_ID = 0x40 | ||
1071 | PERF_SAMPLE_CPU = 0x80 | ||
1072 | PERF_SAMPLE_PERIOD = 0x100 | ||
1073 | PERF_SAMPLE_STREAM_ID = 0x200 | ||
1074 | PERF_SAMPLE_RAW = 0x400 | ||
1075 | PERF_SAMPLE_BRANCH_STACK = 0x800 | ||
1076 | |||
1077 | PERF_SAMPLE_BRANCH_USER = 0x1 | ||
1078 | PERF_SAMPLE_BRANCH_KERNEL = 0x2 | ||
1079 | PERF_SAMPLE_BRANCH_HV = 0x4 | ||
1080 | PERF_SAMPLE_BRANCH_ANY = 0x8 | ||
1081 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 | ||
1082 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 | ||
1083 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 | ||
1084 | |||
1085 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 | ||
1086 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 | ||
1087 | PERF_FORMAT_ID = 0x4 | ||
1088 | PERF_FORMAT_GROUP = 0x8 | ||
1089 | |||
1090 | PERF_RECORD_MMAP = 0x1 | ||
1091 | PERF_RECORD_LOST = 0x2 | ||
1092 | PERF_RECORD_COMM = 0x3 | ||
1093 | PERF_RECORD_EXIT = 0x4 | ||
1094 | PERF_RECORD_THROTTLE = 0x5 | ||
1095 | PERF_RECORD_UNTHROTTLE = 0x6 | ||
1096 | PERF_RECORD_FORK = 0x7 | ||
1097 | PERF_RECORD_READ = 0x8 | ||
1098 | PERF_RECORD_SAMPLE = 0x9 | ||
1099 | |||
1100 | PERF_CONTEXT_HV = -0x20 | ||
1101 | PERF_CONTEXT_KERNEL = -0x80 | ||
1102 | PERF_CONTEXT_USER = -0x200 | ||
1103 | |||
1104 | PERF_CONTEXT_GUEST = -0x800 | ||
1105 | PERF_CONTEXT_GUEST_KERNEL = -0x880 | ||
1106 | PERF_CONTEXT_GUEST_USER = -0xa00 | ||
1107 | |||
1108 | PERF_FLAG_FD_NO_GROUP = 0x1 | ||
1109 | PERF_FLAG_FD_OUTPUT = 0x2 | ||
1110 | PERF_FLAG_PID_CGROUP = 0x4 | ||
1111 | ) | ||
1112 | |||
1113 | const ( | ||
1114 | CBitFieldMaskBit0 = 0x1 | ||
1115 | CBitFieldMaskBit1 = 0x2 | ||
1116 | CBitFieldMaskBit2 = 0x4 | ||
1117 | CBitFieldMaskBit3 = 0x8 | ||
1118 | CBitFieldMaskBit4 = 0x10 | ||
1119 | CBitFieldMaskBit5 = 0x20 | ||
1120 | CBitFieldMaskBit6 = 0x40 | ||
1121 | CBitFieldMaskBit7 = 0x80 | ||
1122 | CBitFieldMaskBit8 = 0x100 | ||
1123 | CBitFieldMaskBit9 = 0x200 | ||
1124 | CBitFieldMaskBit10 = 0x400 | ||
1125 | CBitFieldMaskBit11 = 0x800 | ||
1126 | CBitFieldMaskBit12 = 0x1000 | ||
1127 | CBitFieldMaskBit13 = 0x2000 | ||
1128 | CBitFieldMaskBit14 = 0x4000 | ||
1129 | CBitFieldMaskBit15 = 0x8000 | ||
1130 | CBitFieldMaskBit16 = 0x10000 | ||
1131 | CBitFieldMaskBit17 = 0x20000 | ||
1132 | CBitFieldMaskBit18 = 0x40000 | ||
1133 | CBitFieldMaskBit19 = 0x80000 | ||
1134 | CBitFieldMaskBit20 = 0x100000 | ||
1135 | CBitFieldMaskBit21 = 0x200000 | ||
1136 | CBitFieldMaskBit22 = 0x400000 | ||
1137 | CBitFieldMaskBit23 = 0x800000 | ||
1138 | CBitFieldMaskBit24 = 0x1000000 | ||
1139 | CBitFieldMaskBit25 = 0x2000000 | ||
1140 | CBitFieldMaskBit26 = 0x4000000 | ||
1141 | CBitFieldMaskBit27 = 0x8000000 | ||
1142 | CBitFieldMaskBit28 = 0x10000000 | ||
1143 | CBitFieldMaskBit29 = 0x20000000 | ||
1144 | CBitFieldMaskBit30 = 0x40000000 | ||
1145 | CBitFieldMaskBit31 = 0x80000000 | ||
1146 | CBitFieldMaskBit32 = 0x100000000 | ||
1147 | CBitFieldMaskBit33 = 0x200000000 | ||
1148 | CBitFieldMaskBit34 = 0x400000000 | ||
1149 | CBitFieldMaskBit35 = 0x800000000 | ||
1150 | CBitFieldMaskBit36 = 0x1000000000 | ||
1151 | CBitFieldMaskBit37 = 0x2000000000 | ||
1152 | CBitFieldMaskBit38 = 0x4000000000 | ||
1153 | CBitFieldMaskBit39 = 0x8000000000 | ||
1154 | CBitFieldMaskBit40 = 0x10000000000 | ||
1155 | CBitFieldMaskBit41 = 0x20000000000 | ||
1156 | CBitFieldMaskBit42 = 0x40000000000 | ||
1157 | CBitFieldMaskBit43 = 0x80000000000 | ||
1158 | CBitFieldMaskBit44 = 0x100000000000 | ||
1159 | CBitFieldMaskBit45 = 0x200000000000 | ||
1160 | CBitFieldMaskBit46 = 0x400000000000 | ||
1161 | CBitFieldMaskBit47 = 0x800000000000 | ||
1162 | CBitFieldMaskBit48 = 0x1000000000000 | ||
1163 | CBitFieldMaskBit49 = 0x2000000000000 | ||
1164 | CBitFieldMaskBit50 = 0x4000000000000 | ||
1165 | CBitFieldMaskBit51 = 0x8000000000000 | ||
1166 | CBitFieldMaskBit52 = 0x10000000000000 | ||
1167 | CBitFieldMaskBit53 = 0x20000000000000 | ||
1168 | CBitFieldMaskBit54 = 0x40000000000000 | ||
1169 | CBitFieldMaskBit55 = 0x80000000000000 | ||
1170 | CBitFieldMaskBit56 = 0x100000000000000 | ||
1171 | CBitFieldMaskBit57 = 0x200000000000000 | ||
1172 | CBitFieldMaskBit58 = 0x400000000000000 | ||
1173 | CBitFieldMaskBit59 = 0x800000000000000 | ||
1174 | CBitFieldMaskBit60 = 0x1000000000000000 | ||
1175 | CBitFieldMaskBit61 = 0x2000000000000000 | ||
1176 | CBitFieldMaskBit62 = 0x4000000000000000 | ||
1177 | CBitFieldMaskBit63 = 0x8000000000000000 | ||
1178 | ) | ||
1179 | |||
1180 | type SockaddrStorage struct { | ||
1181 | Family uint16 | ||
1182 | _ [118]uint8 | ||
1183 | _ uint64 | ||
1184 | } | ||
1185 | |||
1186 | type TCPMD5Sig struct { | ||
1187 | Addr SockaddrStorage | ||
1188 | Flags uint8 | ||
1189 | Prefixlen uint8 | ||
1190 | Keylen uint16 | ||
1191 | _ uint32 | ||
1192 | Key [80]uint8 | ||
1193 | } | ||
1194 | |||
1195 | type HDDriveCmdHdr struct { | ||
1196 | Command uint8 | ||
1197 | Number uint8 | ||
1198 | Feature uint8 | ||
1199 | Count uint8 | ||
1200 | } | ||
1201 | |||
1202 | type HDGeometry struct { | ||
1203 | Heads uint8 | ||
1204 | Sectors uint8 | ||
1205 | Cylinders uint16 | ||
1206 | _ [4]byte | ||
1207 | Start uint64 | ||
1208 | } | ||
1209 | |||
1210 | type HDDriveID struct { | ||
1211 | Config uint16 | ||
1212 | Cyls uint16 | ||
1213 | Reserved2 uint16 | ||
1214 | Heads uint16 | ||
1215 | Track_bytes uint16 | ||
1216 | Sector_bytes uint16 | ||
1217 | Sectors uint16 | ||
1218 | Vendor0 uint16 | ||
1219 | Vendor1 uint16 | ||
1220 | Vendor2 uint16 | ||
1221 | Serial_no [20]uint8 | ||
1222 | Buf_type uint16 | ||
1223 | Buf_size uint16 | ||
1224 | Ecc_bytes uint16 | ||
1225 | Fw_rev [8]uint8 | ||
1226 | Model [40]uint8 | ||
1227 | Max_multsect uint8 | ||
1228 | Vendor3 uint8 | ||
1229 | Dword_io uint16 | ||
1230 | Vendor4 uint8 | ||
1231 | Capability uint8 | ||
1232 | Reserved50 uint16 | ||
1233 | Vendor5 uint8 | ||
1234 | TPIO uint8 | ||
1235 | Vendor6 uint8 | ||
1236 | TDMA uint8 | ||
1237 | Field_valid uint16 | ||
1238 | Cur_cyls uint16 | ||
1239 | Cur_heads uint16 | ||
1240 | Cur_sectors uint16 | ||
1241 | Cur_capacity0 uint16 | ||
1242 | Cur_capacity1 uint16 | ||
1243 | Multsect uint8 | ||
1244 | Multsect_valid uint8 | ||
1245 | Lba_capacity uint32 | ||
1246 | Dma_1word uint16 | ||
1247 | Dma_mword uint16 | ||
1248 | Eide_pio_modes uint16 | ||
1249 | Eide_dma_min uint16 | ||
1250 | Eide_dma_time uint16 | ||
1251 | Eide_pio uint16 | ||
1252 | Eide_pio_iordy uint16 | ||
1253 | Words69_70 [2]uint16 | ||
1254 | Words71_74 [4]uint16 | ||
1255 | Queue_depth uint16 | ||
1256 | Words76_79 [4]uint16 | ||
1257 | Major_rev_num uint16 | ||
1258 | Minor_rev_num uint16 | ||
1259 | Command_set_1 uint16 | ||
1260 | Command_set_2 uint16 | ||
1261 | Cfsse uint16 | ||
1262 | Cfs_enable_1 uint16 | ||
1263 | Cfs_enable_2 uint16 | ||
1264 | Csf_default uint16 | ||
1265 | Dma_ultra uint16 | ||
1266 | Trseuc uint16 | ||
1267 | TrsEuc uint16 | ||
1268 | CurAPMvalues uint16 | ||
1269 | Mprc uint16 | ||
1270 | Hw_config uint16 | ||
1271 | Acoustic uint16 | ||
1272 | Msrqs uint16 | ||
1273 | Sxfert uint16 | ||
1274 | Sal uint16 | ||
1275 | Spg uint32 | ||
1276 | Lba_capacity_2 uint64 | ||
1277 | Words104_125 [22]uint16 | ||
1278 | Last_lun uint16 | ||
1279 | Word127 uint16 | ||
1280 | Dlf uint16 | ||
1281 | Csfo uint16 | ||
1282 | Words130_155 [26]uint16 | ||
1283 | Word156 uint16 | ||
1284 | Words157_159 [3]uint16 | ||
1285 | Cfa_power uint16 | ||
1286 | Words161_175 [15]uint16 | ||
1287 | Words176_205 [30]uint16 | ||
1288 | Words206_254 [49]uint16 | ||
1289 | Integrity_word uint16 | ||
1290 | } | ||
1291 | |||
1292 | type Statfs_t struct { | ||
1293 | Type int64 | ||
1294 | Bsize int64 | ||
1295 | Blocks uint64 | ||
1296 | Bfree uint64 | ||
1297 | Bavail uint64 | ||
1298 | Files uint64 | ||
1299 | Ffree uint64 | ||
1300 | Fsid Fsid | ||
1301 | Namelen int64 | ||
1302 | Frsize int64 | ||
1303 | Flags int64 | ||
1304 | Spare [4]int64 | ||
1305 | } | ||
1306 | |||
1307 | const ( | ||
1308 | ST_MANDLOCK = 0x40 | ||
1309 | ST_NOATIME = 0x400 | ||
1310 | ST_NODEV = 0x4 | ||
1311 | ST_NODIRATIME = 0x800 | ||
1312 | ST_NOEXEC = 0x8 | ||
1313 | ST_NOSUID = 0x2 | ||
1314 | ST_RDONLY = 0x1 | ||
1315 | ST_RELATIME = 0x1000 | ||
1316 | ST_SYNCHRONOUS = 0x10 | ||
1317 | ) | ||
1318 | |||
1319 | type TpacketHdr struct { | ||
1320 | Status uint64 | ||
1321 | Len uint32 | ||
1322 | Snaplen uint32 | ||
1323 | Mac uint16 | ||
1324 | Net uint16 | ||
1325 | Sec uint32 | ||
1326 | Usec uint32 | ||
1327 | _ [4]byte | ||
1328 | } | ||
1329 | |||
1330 | type Tpacket2Hdr struct { | ||
1331 | Status uint32 | ||
1332 | Len uint32 | ||
1333 | Snaplen uint32 | ||
1334 | Mac uint16 | ||
1335 | Net uint16 | ||
1336 | Sec uint32 | ||
1337 | Nsec uint32 | ||
1338 | Vlan_tci uint16 | ||
1339 | Vlan_tpid uint16 | ||
1340 | _ [4]uint8 | ||
1341 | } | ||
1342 | |||
1343 | type Tpacket3Hdr struct { | ||
1344 | Next_offset uint32 | ||
1345 | Sec uint32 | ||
1346 | Nsec uint32 | ||
1347 | Snaplen uint32 | ||
1348 | Len uint32 | ||
1349 | Status uint32 | ||
1350 | Mac uint16 | ||
1351 | Net uint16 | ||
1352 | Hv1 TpacketHdrVariant1 | ||
1353 | _ [8]uint8 | ||
1354 | } | ||
1355 | |||
1356 | type TpacketHdrVariant1 struct { | ||
1357 | Rxhash uint32 | ||
1358 | Vlan_tci uint32 | ||
1359 | Vlan_tpid uint16 | ||
1360 | _ uint16 | ||
1361 | } | ||
1362 | |||
1363 | type TpacketBlockDesc struct { | ||
1364 | Version uint32 | ||
1365 | To_priv uint32 | ||
1366 | Hdr [40]byte | ||
1367 | } | ||
1368 | |||
1369 | type TpacketReq struct { | ||
1370 | Block_size uint32 | ||
1371 | Block_nr uint32 | ||
1372 | Frame_size uint32 | ||
1373 | Frame_nr uint32 | ||
1374 | } | ||
1375 | |||
1376 | type TpacketReq3 struct { | ||
1377 | Block_size uint32 | ||
1378 | Block_nr uint32 | ||
1379 | Frame_size uint32 | ||
1380 | Frame_nr uint32 | ||
1381 | Retire_blk_tov uint32 | ||
1382 | Sizeof_priv uint32 | ||
1383 | Feature_req_word uint32 | ||
1384 | } | ||
1385 | |||
1386 | type TpacketStats struct { | ||
1387 | Packets uint32 | ||
1388 | Drops uint32 | ||
1389 | } | ||
1390 | |||
1391 | type TpacketStatsV3 struct { | ||
1392 | Packets uint32 | ||
1393 | Drops uint32 | ||
1394 | Freeze_q_cnt uint32 | ||
1395 | } | ||
1396 | |||
1397 | type TpacketAuxdata struct { | ||
1398 | Status uint32 | ||
1399 | Len uint32 | ||
1400 | Snaplen uint32 | ||
1401 | Mac uint16 | ||
1402 | Net uint16 | ||
1403 | Vlan_tci uint16 | ||
1404 | Vlan_tpid uint16 | ||
1405 | } | ||
1406 | |||
1407 | const ( | ||
1408 | TPACKET_V1 = 0x0 | ||
1409 | TPACKET_V2 = 0x1 | ||
1410 | TPACKET_V3 = 0x2 | ||
1411 | ) | ||
1412 | |||
1413 | const ( | ||
1414 | SizeofTpacketHdr = 0x20 | ||
1415 | SizeofTpacket2Hdr = 0x20 | ||
1416 | SizeofTpacket3Hdr = 0x30 | ||
1417 | ) | ||
1418 | |||
1419 | const ( | ||
1420 | NF_INET_PRE_ROUTING = 0x0 | ||
1421 | NF_INET_LOCAL_IN = 0x1 | ||
1422 | NF_INET_FORWARD = 0x2 | ||
1423 | NF_INET_LOCAL_OUT = 0x3 | ||
1424 | NF_INET_POST_ROUTING = 0x4 | ||
1425 | NF_INET_NUMHOOKS = 0x5 | ||
1426 | ) | ||
1427 | |||
1428 | const ( | ||
1429 | NF_NETDEV_INGRESS = 0x0 | ||
1430 | NF_NETDEV_NUMHOOKS = 0x1 | ||
1431 | ) | ||
1432 | |||
1433 | const ( | ||
1434 | NFPROTO_UNSPEC = 0x0 | ||
1435 | NFPROTO_INET = 0x1 | ||
1436 | NFPROTO_IPV4 = 0x2 | ||
1437 | NFPROTO_ARP = 0x3 | ||
1438 | NFPROTO_NETDEV = 0x5 | ||
1439 | NFPROTO_BRIDGE = 0x7 | ||
1440 | NFPROTO_IPV6 = 0xa | ||
1441 | NFPROTO_DECNET = 0xc | ||
1442 | NFPROTO_NUMPROTO = 0xd | ||
1443 | ) | ||
1444 | |||
1445 | type Nfgenmsg struct { | ||
1446 | Nfgen_family uint8 | ||
1447 | Version uint8 | ||
1448 | Res_id uint16 | ||
1449 | } | ||
1450 | |||
1451 | const ( | ||
1452 | NFNL_BATCH_UNSPEC = 0x0 | ||
1453 | NFNL_BATCH_GENID = 0x1 | ||
1454 | ) | ||
1455 | |||
1456 | const ( | ||
1457 | NFT_REG_VERDICT = 0x0 | ||
1458 | NFT_REG_1 = 0x1 | ||
1459 | NFT_REG_2 = 0x2 | ||
1460 | NFT_REG_3 = 0x3 | ||
1461 | NFT_REG_4 = 0x4 | ||
1462 | NFT_REG32_00 = 0x8 | ||
1463 | NFT_REG32_01 = 0x9 | ||
1464 | NFT_REG32_02 = 0xa | ||
1465 | NFT_REG32_03 = 0xb | ||
1466 | NFT_REG32_04 = 0xc | ||
1467 | NFT_REG32_05 = 0xd | ||
1468 | NFT_REG32_06 = 0xe | ||
1469 | NFT_REG32_07 = 0xf | ||
1470 | NFT_REG32_08 = 0x10 | ||
1471 | NFT_REG32_09 = 0x11 | ||
1472 | NFT_REG32_10 = 0x12 | ||
1473 | NFT_REG32_11 = 0x13 | ||
1474 | NFT_REG32_12 = 0x14 | ||
1475 | NFT_REG32_13 = 0x15 | ||
1476 | NFT_REG32_14 = 0x16 | ||
1477 | NFT_REG32_15 = 0x17 | ||
1478 | NFT_CONTINUE = -0x1 | ||
1479 | NFT_BREAK = -0x2 | ||
1480 | NFT_JUMP = -0x3 | ||
1481 | NFT_GOTO = -0x4 | ||
1482 | NFT_RETURN = -0x5 | ||
1483 | NFT_MSG_NEWTABLE = 0x0 | ||
1484 | NFT_MSG_GETTABLE = 0x1 | ||
1485 | NFT_MSG_DELTABLE = 0x2 | ||
1486 | NFT_MSG_NEWCHAIN = 0x3 | ||
1487 | NFT_MSG_GETCHAIN = 0x4 | ||
1488 | NFT_MSG_DELCHAIN = 0x5 | ||
1489 | NFT_MSG_NEWRULE = 0x6 | ||
1490 | NFT_MSG_GETRULE = 0x7 | ||
1491 | NFT_MSG_DELRULE = 0x8 | ||
1492 | NFT_MSG_NEWSET = 0x9 | ||
1493 | NFT_MSG_GETSET = 0xa | ||
1494 | NFT_MSG_DELSET = 0xb | ||
1495 | NFT_MSG_NEWSETELEM = 0xc | ||
1496 | NFT_MSG_GETSETELEM = 0xd | ||
1497 | NFT_MSG_DELSETELEM = 0xe | ||
1498 | NFT_MSG_NEWGEN = 0xf | ||
1499 | NFT_MSG_GETGEN = 0x10 | ||
1500 | NFT_MSG_TRACE = 0x11 | ||
1501 | NFT_MSG_NEWOBJ = 0x12 | ||
1502 | NFT_MSG_GETOBJ = 0x13 | ||
1503 | NFT_MSG_DELOBJ = 0x14 | ||
1504 | NFT_MSG_GETOBJ_RESET = 0x15 | ||
1505 | NFT_MSG_MAX = 0x19 | ||
1506 | NFTA_LIST_UNPEC = 0x0 | ||
1507 | NFTA_LIST_ELEM = 0x1 | ||
1508 | NFTA_HOOK_UNSPEC = 0x0 | ||
1509 | NFTA_HOOK_HOOKNUM = 0x1 | ||
1510 | NFTA_HOOK_PRIORITY = 0x2 | ||
1511 | NFTA_HOOK_DEV = 0x3 | ||
1512 | NFT_TABLE_F_DORMANT = 0x1 | ||
1513 | NFTA_TABLE_UNSPEC = 0x0 | ||
1514 | NFTA_TABLE_NAME = 0x1 | ||
1515 | NFTA_TABLE_FLAGS = 0x2 | ||
1516 | NFTA_TABLE_USE = 0x3 | ||
1517 | NFTA_CHAIN_UNSPEC = 0x0 | ||
1518 | NFTA_CHAIN_TABLE = 0x1 | ||
1519 | NFTA_CHAIN_HANDLE = 0x2 | ||
1520 | NFTA_CHAIN_NAME = 0x3 | ||
1521 | NFTA_CHAIN_HOOK = 0x4 | ||
1522 | NFTA_CHAIN_POLICY = 0x5 | ||
1523 | NFTA_CHAIN_USE = 0x6 | ||
1524 | NFTA_CHAIN_TYPE = 0x7 | ||
1525 | NFTA_CHAIN_COUNTERS = 0x8 | ||
1526 | NFTA_CHAIN_PAD = 0x9 | ||
1527 | NFTA_RULE_UNSPEC = 0x0 | ||
1528 | NFTA_RULE_TABLE = 0x1 | ||
1529 | NFTA_RULE_CHAIN = 0x2 | ||
1530 | NFTA_RULE_HANDLE = 0x3 | ||
1531 | NFTA_RULE_EXPRESSIONS = 0x4 | ||
1532 | NFTA_RULE_COMPAT = 0x5 | ||
1533 | NFTA_RULE_POSITION = 0x6 | ||
1534 | NFTA_RULE_USERDATA = 0x7 | ||
1535 | NFTA_RULE_PAD = 0x8 | ||
1536 | NFTA_RULE_ID = 0x9 | ||
1537 | NFT_RULE_COMPAT_F_INV = 0x2 | ||
1538 | NFT_RULE_COMPAT_F_MASK = 0x2 | ||
1539 | NFTA_RULE_COMPAT_UNSPEC = 0x0 | ||
1540 | NFTA_RULE_COMPAT_PROTO = 0x1 | ||
1541 | NFTA_RULE_COMPAT_FLAGS = 0x2 | ||
1542 | NFT_SET_ANONYMOUS = 0x1 | ||
1543 | NFT_SET_CONSTANT = 0x2 | ||
1544 | NFT_SET_INTERVAL = 0x4 | ||
1545 | NFT_SET_MAP = 0x8 | ||
1546 | NFT_SET_TIMEOUT = 0x10 | ||
1547 | NFT_SET_EVAL = 0x20 | ||
1548 | NFT_SET_OBJECT = 0x40 | ||
1549 | NFT_SET_POL_PERFORMANCE = 0x0 | ||
1550 | NFT_SET_POL_MEMORY = 0x1 | ||
1551 | NFTA_SET_DESC_UNSPEC = 0x0 | ||
1552 | NFTA_SET_DESC_SIZE = 0x1 | ||
1553 | NFTA_SET_UNSPEC = 0x0 | ||
1554 | NFTA_SET_TABLE = 0x1 | ||
1555 | NFTA_SET_NAME = 0x2 | ||
1556 | NFTA_SET_FLAGS = 0x3 | ||
1557 | NFTA_SET_KEY_TYPE = 0x4 | ||
1558 | NFTA_SET_KEY_LEN = 0x5 | ||
1559 | NFTA_SET_DATA_TYPE = 0x6 | ||
1560 | NFTA_SET_DATA_LEN = 0x7 | ||
1561 | NFTA_SET_POLICY = 0x8 | ||
1562 | NFTA_SET_DESC = 0x9 | ||
1563 | NFTA_SET_ID = 0xa | ||
1564 | NFTA_SET_TIMEOUT = 0xb | ||
1565 | NFTA_SET_GC_INTERVAL = 0xc | ||
1566 | NFTA_SET_USERDATA = 0xd | ||
1567 | NFTA_SET_PAD = 0xe | ||
1568 | NFTA_SET_OBJ_TYPE = 0xf | ||
1569 | NFT_SET_ELEM_INTERVAL_END = 0x1 | ||
1570 | NFTA_SET_ELEM_UNSPEC = 0x0 | ||
1571 | NFTA_SET_ELEM_KEY = 0x1 | ||
1572 | NFTA_SET_ELEM_DATA = 0x2 | ||
1573 | NFTA_SET_ELEM_FLAGS = 0x3 | ||
1574 | NFTA_SET_ELEM_TIMEOUT = 0x4 | ||
1575 | NFTA_SET_ELEM_EXPIRATION = 0x5 | ||
1576 | NFTA_SET_ELEM_USERDATA = 0x6 | ||
1577 | NFTA_SET_ELEM_EXPR = 0x7 | ||
1578 | NFTA_SET_ELEM_PAD = 0x8 | ||
1579 | NFTA_SET_ELEM_OBJREF = 0x9 | ||
1580 | NFTA_SET_ELEM_LIST_UNSPEC = 0x0 | ||
1581 | NFTA_SET_ELEM_LIST_TABLE = 0x1 | ||
1582 | NFTA_SET_ELEM_LIST_SET = 0x2 | ||
1583 | NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 | ||
1584 | NFTA_SET_ELEM_LIST_SET_ID = 0x4 | ||
1585 | NFT_DATA_VALUE = 0x0 | ||
1586 | NFT_DATA_VERDICT = 0xffffff00 | ||
1587 | NFTA_DATA_UNSPEC = 0x0 | ||
1588 | NFTA_DATA_VALUE = 0x1 | ||
1589 | NFTA_DATA_VERDICT = 0x2 | ||
1590 | NFTA_VERDICT_UNSPEC = 0x0 | ||
1591 | NFTA_VERDICT_CODE = 0x1 | ||
1592 | NFTA_VERDICT_CHAIN = 0x2 | ||
1593 | NFTA_EXPR_UNSPEC = 0x0 | ||
1594 | NFTA_EXPR_NAME = 0x1 | ||
1595 | NFTA_EXPR_DATA = 0x2 | ||
1596 | NFTA_IMMEDIATE_UNSPEC = 0x0 | ||
1597 | NFTA_IMMEDIATE_DREG = 0x1 | ||
1598 | NFTA_IMMEDIATE_DATA = 0x2 | ||
1599 | NFTA_BITWISE_UNSPEC = 0x0 | ||
1600 | NFTA_BITWISE_SREG = 0x1 | ||
1601 | NFTA_BITWISE_DREG = 0x2 | ||
1602 | NFTA_BITWISE_LEN = 0x3 | ||
1603 | NFTA_BITWISE_MASK = 0x4 | ||
1604 | NFTA_BITWISE_XOR = 0x5 | ||
1605 | NFT_BYTEORDER_NTOH = 0x0 | ||
1606 | NFT_BYTEORDER_HTON = 0x1 | ||
1607 | NFTA_BYTEORDER_UNSPEC = 0x0 | ||
1608 | NFTA_BYTEORDER_SREG = 0x1 | ||
1609 | NFTA_BYTEORDER_DREG = 0x2 | ||
1610 | NFTA_BYTEORDER_OP = 0x3 | ||
1611 | NFTA_BYTEORDER_LEN = 0x4 | ||
1612 | NFTA_BYTEORDER_SIZE = 0x5 | ||
1613 | NFT_CMP_EQ = 0x0 | ||
1614 | NFT_CMP_NEQ = 0x1 | ||
1615 | NFT_CMP_LT = 0x2 | ||
1616 | NFT_CMP_LTE = 0x3 | ||
1617 | NFT_CMP_GT = 0x4 | ||
1618 | NFT_CMP_GTE = 0x5 | ||
1619 | NFTA_CMP_UNSPEC = 0x0 | ||
1620 | NFTA_CMP_SREG = 0x1 | ||
1621 | NFTA_CMP_OP = 0x2 | ||
1622 | NFTA_CMP_DATA = 0x3 | ||
1623 | NFT_RANGE_EQ = 0x0 | ||
1624 | NFT_RANGE_NEQ = 0x1 | ||
1625 | NFTA_RANGE_UNSPEC = 0x0 | ||
1626 | NFTA_RANGE_SREG = 0x1 | ||
1627 | NFTA_RANGE_OP = 0x2 | ||
1628 | NFTA_RANGE_FROM_DATA = 0x3 | ||
1629 | NFTA_RANGE_TO_DATA = 0x4 | ||
1630 | NFT_LOOKUP_F_INV = 0x1 | ||
1631 | NFTA_LOOKUP_UNSPEC = 0x0 | ||
1632 | NFTA_LOOKUP_SET = 0x1 | ||
1633 | NFTA_LOOKUP_SREG = 0x2 | ||
1634 | NFTA_LOOKUP_DREG = 0x3 | ||
1635 | NFTA_LOOKUP_SET_ID = 0x4 | ||
1636 | NFTA_LOOKUP_FLAGS = 0x5 | ||
1637 | NFT_DYNSET_OP_ADD = 0x0 | ||
1638 | NFT_DYNSET_OP_UPDATE = 0x1 | ||
1639 | NFT_DYNSET_F_INV = 0x1 | ||
1640 | NFTA_DYNSET_UNSPEC = 0x0 | ||
1641 | NFTA_DYNSET_SET_NAME = 0x1 | ||
1642 | NFTA_DYNSET_SET_ID = 0x2 | ||
1643 | NFTA_DYNSET_OP = 0x3 | ||
1644 | NFTA_DYNSET_SREG_KEY = 0x4 | ||
1645 | NFTA_DYNSET_SREG_DATA = 0x5 | ||
1646 | NFTA_DYNSET_TIMEOUT = 0x6 | ||
1647 | NFTA_DYNSET_EXPR = 0x7 | ||
1648 | NFTA_DYNSET_PAD = 0x8 | ||
1649 | NFTA_DYNSET_FLAGS = 0x9 | ||
1650 | NFT_PAYLOAD_LL_HEADER = 0x0 | ||
1651 | NFT_PAYLOAD_NETWORK_HEADER = 0x1 | ||
1652 | NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 | ||
1653 | NFT_PAYLOAD_CSUM_NONE = 0x0 | ||
1654 | NFT_PAYLOAD_CSUM_INET = 0x1 | ||
1655 | NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 | ||
1656 | NFTA_PAYLOAD_UNSPEC = 0x0 | ||
1657 | NFTA_PAYLOAD_DREG = 0x1 | ||
1658 | NFTA_PAYLOAD_BASE = 0x2 | ||
1659 | NFTA_PAYLOAD_OFFSET = 0x3 | ||
1660 | NFTA_PAYLOAD_LEN = 0x4 | ||
1661 | NFTA_PAYLOAD_SREG = 0x5 | ||
1662 | NFTA_PAYLOAD_CSUM_TYPE = 0x6 | ||
1663 | NFTA_PAYLOAD_CSUM_OFFSET = 0x7 | ||
1664 | NFTA_PAYLOAD_CSUM_FLAGS = 0x8 | ||
1665 | NFT_EXTHDR_F_PRESENT = 0x1 | ||
1666 | NFT_EXTHDR_OP_IPV6 = 0x0 | ||
1667 | NFT_EXTHDR_OP_TCPOPT = 0x1 | ||
1668 | NFTA_EXTHDR_UNSPEC = 0x0 | ||
1669 | NFTA_EXTHDR_DREG = 0x1 | ||
1670 | NFTA_EXTHDR_TYPE = 0x2 | ||
1671 | NFTA_EXTHDR_OFFSET = 0x3 | ||
1672 | NFTA_EXTHDR_LEN = 0x4 | ||
1673 | NFTA_EXTHDR_FLAGS = 0x5 | ||
1674 | NFTA_EXTHDR_OP = 0x6 | ||
1675 | NFTA_EXTHDR_SREG = 0x7 | ||
1676 | NFT_META_LEN = 0x0 | ||
1677 | NFT_META_PROTOCOL = 0x1 | ||
1678 | NFT_META_PRIORITY = 0x2 | ||
1679 | NFT_META_MARK = 0x3 | ||
1680 | NFT_META_IIF = 0x4 | ||
1681 | NFT_META_OIF = 0x5 | ||
1682 | NFT_META_IIFNAME = 0x6 | ||
1683 | NFT_META_OIFNAME = 0x7 | ||
1684 | NFT_META_IIFTYPE = 0x8 | ||
1685 | NFT_META_OIFTYPE = 0x9 | ||
1686 | NFT_META_SKUID = 0xa | ||
1687 | NFT_META_SKGID = 0xb | ||
1688 | NFT_META_NFTRACE = 0xc | ||
1689 | NFT_META_RTCLASSID = 0xd | ||
1690 | NFT_META_SECMARK = 0xe | ||
1691 | NFT_META_NFPROTO = 0xf | ||
1692 | NFT_META_L4PROTO = 0x10 | ||
1693 | NFT_META_BRI_IIFNAME = 0x11 | ||
1694 | NFT_META_BRI_OIFNAME = 0x12 | ||
1695 | NFT_META_PKTTYPE = 0x13 | ||
1696 | NFT_META_CPU = 0x14 | ||
1697 | NFT_META_IIFGROUP = 0x15 | ||
1698 | NFT_META_OIFGROUP = 0x16 | ||
1699 | NFT_META_CGROUP = 0x17 | ||
1700 | NFT_META_PRANDOM = 0x18 | ||
1701 | NFT_RT_CLASSID = 0x0 | ||
1702 | NFT_RT_NEXTHOP4 = 0x1 | ||
1703 | NFT_RT_NEXTHOP6 = 0x2 | ||
1704 | NFT_RT_TCPMSS = 0x3 | ||
1705 | NFT_HASH_JENKINS = 0x0 | ||
1706 | NFT_HASH_SYM = 0x1 | ||
1707 | NFTA_HASH_UNSPEC = 0x0 | ||
1708 | NFTA_HASH_SREG = 0x1 | ||
1709 | NFTA_HASH_DREG = 0x2 | ||
1710 | NFTA_HASH_LEN = 0x3 | ||
1711 | NFTA_HASH_MODULUS = 0x4 | ||
1712 | NFTA_HASH_SEED = 0x5 | ||
1713 | NFTA_HASH_OFFSET = 0x6 | ||
1714 | NFTA_HASH_TYPE = 0x7 | ||
1715 | NFTA_META_UNSPEC = 0x0 | ||
1716 | NFTA_META_DREG = 0x1 | ||
1717 | NFTA_META_KEY = 0x2 | ||
1718 | NFTA_META_SREG = 0x3 | ||
1719 | NFTA_RT_UNSPEC = 0x0 | ||
1720 | NFTA_RT_DREG = 0x1 | ||
1721 | NFTA_RT_KEY = 0x2 | ||
1722 | NFT_CT_STATE = 0x0 | ||
1723 | NFT_CT_DIRECTION = 0x1 | ||
1724 | NFT_CT_STATUS = 0x2 | ||
1725 | NFT_CT_MARK = 0x3 | ||
1726 | NFT_CT_SECMARK = 0x4 | ||
1727 | NFT_CT_EXPIRATION = 0x5 | ||
1728 | NFT_CT_HELPER = 0x6 | ||
1729 | NFT_CT_L3PROTOCOL = 0x7 | ||
1730 | NFT_CT_SRC = 0x8 | ||
1731 | NFT_CT_DST = 0x9 | ||
1732 | NFT_CT_PROTOCOL = 0xa | ||
1733 | NFT_CT_PROTO_SRC = 0xb | ||
1734 | NFT_CT_PROTO_DST = 0xc | ||
1735 | NFT_CT_LABELS = 0xd | ||
1736 | NFT_CT_PKTS = 0xe | ||
1737 | NFT_CT_BYTES = 0xf | ||
1738 | NFT_CT_AVGPKT = 0x10 | ||
1739 | NFT_CT_ZONE = 0x11 | ||
1740 | NFT_CT_EVENTMASK = 0x12 | ||
1741 | NFTA_CT_UNSPEC = 0x0 | ||
1742 | NFTA_CT_DREG = 0x1 | ||
1743 | NFTA_CT_KEY = 0x2 | ||
1744 | NFTA_CT_DIRECTION = 0x3 | ||
1745 | NFTA_CT_SREG = 0x4 | ||
1746 | NFT_LIMIT_PKTS = 0x0 | ||
1747 | NFT_LIMIT_PKT_BYTES = 0x1 | ||
1748 | NFT_LIMIT_F_INV = 0x1 | ||
1749 | NFTA_LIMIT_UNSPEC = 0x0 | ||
1750 | NFTA_LIMIT_RATE = 0x1 | ||
1751 | NFTA_LIMIT_UNIT = 0x2 | ||
1752 | NFTA_LIMIT_BURST = 0x3 | ||
1753 | NFTA_LIMIT_TYPE = 0x4 | ||
1754 | NFTA_LIMIT_FLAGS = 0x5 | ||
1755 | NFTA_LIMIT_PAD = 0x6 | ||
1756 | NFTA_COUNTER_UNSPEC = 0x0 | ||
1757 | NFTA_COUNTER_BYTES = 0x1 | ||
1758 | NFTA_COUNTER_PACKETS = 0x2 | ||
1759 | NFTA_COUNTER_PAD = 0x3 | ||
1760 | NFTA_LOG_UNSPEC = 0x0 | ||
1761 | NFTA_LOG_GROUP = 0x1 | ||
1762 | NFTA_LOG_PREFIX = 0x2 | ||
1763 | NFTA_LOG_SNAPLEN = 0x3 | ||
1764 | NFTA_LOG_QTHRESHOLD = 0x4 | ||
1765 | NFTA_LOG_LEVEL = 0x5 | ||
1766 | NFTA_LOG_FLAGS = 0x6 | ||
1767 | NFTA_QUEUE_UNSPEC = 0x0 | ||
1768 | NFTA_QUEUE_NUM = 0x1 | ||
1769 | NFTA_QUEUE_TOTAL = 0x2 | ||
1770 | NFTA_QUEUE_FLAGS = 0x3 | ||
1771 | NFTA_QUEUE_SREG_QNUM = 0x4 | ||
1772 | NFT_QUOTA_F_INV = 0x1 | ||
1773 | NFT_QUOTA_F_DEPLETED = 0x2 | ||
1774 | NFTA_QUOTA_UNSPEC = 0x0 | ||
1775 | NFTA_QUOTA_BYTES = 0x1 | ||
1776 | NFTA_QUOTA_FLAGS = 0x2 | ||
1777 | NFTA_QUOTA_PAD = 0x3 | ||
1778 | NFTA_QUOTA_CONSUMED = 0x4 | ||
1779 | NFT_REJECT_ICMP_UNREACH = 0x0 | ||
1780 | NFT_REJECT_TCP_RST = 0x1 | ||
1781 | NFT_REJECT_ICMPX_UNREACH = 0x2 | ||
1782 | NFT_REJECT_ICMPX_NO_ROUTE = 0x0 | ||
1783 | NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 | ||
1784 | NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 | ||
1785 | NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 | ||
1786 | NFTA_REJECT_UNSPEC = 0x0 | ||
1787 | NFTA_REJECT_TYPE = 0x1 | ||
1788 | NFTA_REJECT_ICMP_CODE = 0x2 | ||
1789 | NFT_NAT_SNAT = 0x0 | ||
1790 | NFT_NAT_DNAT = 0x1 | ||
1791 | NFTA_NAT_UNSPEC = 0x0 | ||
1792 | NFTA_NAT_TYPE = 0x1 | ||
1793 | NFTA_NAT_FAMILY = 0x2 | ||
1794 | NFTA_NAT_REG_ADDR_MIN = 0x3 | ||
1795 | NFTA_NAT_REG_ADDR_MAX = 0x4 | ||
1796 | NFTA_NAT_REG_PROTO_MIN = 0x5 | ||
1797 | NFTA_NAT_REG_PROTO_MAX = 0x6 | ||
1798 | NFTA_NAT_FLAGS = 0x7 | ||
1799 | NFTA_MASQ_UNSPEC = 0x0 | ||
1800 | NFTA_MASQ_FLAGS = 0x1 | ||
1801 | NFTA_MASQ_REG_PROTO_MIN = 0x2 | ||
1802 | NFTA_MASQ_REG_PROTO_MAX = 0x3 | ||
1803 | NFTA_REDIR_UNSPEC = 0x0 | ||
1804 | NFTA_REDIR_REG_PROTO_MIN = 0x1 | ||
1805 | NFTA_REDIR_REG_PROTO_MAX = 0x2 | ||
1806 | NFTA_REDIR_FLAGS = 0x3 | ||
1807 | NFTA_DUP_UNSPEC = 0x0 | ||
1808 | NFTA_DUP_SREG_ADDR = 0x1 | ||
1809 | NFTA_DUP_SREG_DEV = 0x2 | ||
1810 | NFTA_FWD_UNSPEC = 0x0 | ||
1811 | NFTA_FWD_SREG_DEV = 0x1 | ||
1812 | NFTA_OBJREF_UNSPEC = 0x0 | ||
1813 | NFTA_OBJREF_IMM_TYPE = 0x1 | ||
1814 | NFTA_OBJREF_IMM_NAME = 0x2 | ||
1815 | NFTA_OBJREF_SET_SREG = 0x3 | ||
1816 | NFTA_OBJREF_SET_NAME = 0x4 | ||
1817 | NFTA_OBJREF_SET_ID = 0x5 | ||
1818 | NFTA_GEN_UNSPEC = 0x0 | ||
1819 | NFTA_GEN_ID = 0x1 | ||
1820 | NFTA_GEN_PROC_PID = 0x2 | ||
1821 | NFTA_GEN_PROC_NAME = 0x3 | ||
1822 | NFTA_FIB_UNSPEC = 0x0 | ||
1823 | NFTA_FIB_DREG = 0x1 | ||
1824 | NFTA_FIB_RESULT = 0x2 | ||
1825 | NFTA_FIB_FLAGS = 0x3 | ||
1826 | NFT_FIB_RESULT_UNSPEC = 0x0 | ||
1827 | NFT_FIB_RESULT_OIF = 0x1 | ||
1828 | NFT_FIB_RESULT_OIFNAME = 0x2 | ||
1829 | NFT_FIB_RESULT_ADDRTYPE = 0x3 | ||
1830 | NFTA_FIB_F_SADDR = 0x1 | ||
1831 | NFTA_FIB_F_DADDR = 0x2 | ||
1832 | NFTA_FIB_F_MARK = 0x4 | ||
1833 | NFTA_FIB_F_IIF = 0x8 | ||
1834 | NFTA_FIB_F_OIF = 0x10 | ||
1835 | NFTA_FIB_F_PRESENT = 0x20 | ||
1836 | NFTA_CT_HELPER_UNSPEC = 0x0 | ||
1837 | NFTA_CT_HELPER_NAME = 0x1 | ||
1838 | NFTA_CT_HELPER_L3PROTO = 0x2 | ||
1839 | NFTA_CT_HELPER_L4PROTO = 0x3 | ||
1840 | NFTA_OBJ_UNSPEC = 0x0 | ||
1841 | NFTA_OBJ_TABLE = 0x1 | ||
1842 | NFTA_OBJ_NAME = 0x2 | ||
1843 | NFTA_OBJ_TYPE = 0x3 | ||
1844 | NFTA_OBJ_DATA = 0x4 | ||
1845 | NFTA_OBJ_USE = 0x5 | ||
1846 | NFTA_TRACE_UNSPEC = 0x0 | ||
1847 | NFTA_TRACE_TABLE = 0x1 | ||
1848 | NFTA_TRACE_CHAIN = 0x2 | ||
1849 | NFTA_TRACE_RULE_HANDLE = 0x3 | ||
1850 | NFTA_TRACE_TYPE = 0x4 | ||
1851 | NFTA_TRACE_VERDICT = 0x5 | ||
1852 | NFTA_TRACE_ID = 0x6 | ||
1853 | NFTA_TRACE_LL_HEADER = 0x7 | ||
1854 | NFTA_TRACE_NETWORK_HEADER = 0x8 | ||
1855 | NFTA_TRACE_TRANSPORT_HEADER = 0x9 | ||
1856 | NFTA_TRACE_IIF = 0xa | ||
1857 | NFTA_TRACE_IIFTYPE = 0xb | ||
1858 | NFTA_TRACE_OIF = 0xc | ||
1859 | NFTA_TRACE_OIFTYPE = 0xd | ||
1860 | NFTA_TRACE_MARK = 0xe | ||
1861 | NFTA_TRACE_NFPROTO = 0xf | ||
1862 | NFTA_TRACE_POLICY = 0x10 | ||
1863 | NFTA_TRACE_PAD = 0x11 | ||
1864 | NFT_TRACETYPE_UNSPEC = 0x0 | ||
1865 | NFT_TRACETYPE_POLICY = 0x1 | ||
1866 | NFT_TRACETYPE_RETURN = 0x2 | ||
1867 | NFT_TRACETYPE_RULE = 0x3 | ||
1868 | NFTA_NG_UNSPEC = 0x0 | ||
1869 | NFTA_NG_DREG = 0x1 | ||
1870 | NFTA_NG_MODULUS = 0x2 | ||
1871 | NFTA_NG_TYPE = 0x3 | ||
1872 | NFTA_NG_OFFSET = 0x4 | ||
1873 | NFT_NG_INCREMENTAL = 0x0 | ||
1874 | NFT_NG_RANDOM = 0x1 | ||
1875 | ) | ||
1876 | |||
1877 | type RTCTime struct { | ||
1878 | Sec int32 | ||
1879 | Min int32 | ||
1880 | Hour int32 | ||
1881 | Mday int32 | ||
1882 | Mon int32 | ||
1883 | Year int32 | ||
1884 | Wday int32 | ||
1885 | Yday int32 | ||
1886 | Isdst int32 | ||
1887 | } | ||
1888 | |||
1889 | type RTCWkAlrm struct { | ||
1890 | Enabled uint8 | ||
1891 | Pending uint8 | ||
1892 | _ [2]byte | ||
1893 | Time RTCTime | ||
1894 | } | ||
1895 | |||
1896 | type RTCPLLInfo struct { | ||
1897 | Ctrl int32 | ||
1898 | Value int32 | ||
1899 | Max int32 | ||
1900 | Min int32 | ||
1901 | Posmult int32 | ||
1902 | Negmult int32 | ||
1903 | Clock int64 | ||
1904 | } | ||
1905 | |||
1906 | type BlkpgIoctlArg struct { | ||
1907 | Op int32 | ||
1908 | Flags int32 | ||
1909 | Datalen int32 | ||
1910 | _ [4]byte | ||
1911 | Data *byte | ||
1912 | } | ||
1913 | |||
1914 | type BlkpgPartition struct { | ||
1915 | Start int64 | ||
1916 | Length int64 | ||
1917 | Pno int32 | ||
1918 | Devname [64]uint8 | ||
1919 | Volname [64]uint8 | ||
1920 | _ [4]byte | ||
1921 | } | ||
1922 | |||
1923 | const ( | ||
1924 | BLKPG = 0x1269 | ||
1925 | BLKPG_ADD_PARTITION = 0x1 | ||
1926 | BLKPG_DEL_PARTITION = 0x2 | ||
1927 | BLKPG_RESIZE_PARTITION = 0x3 | ||
1928 | ) | ||
1929 | |||
1930 | const ( | ||
1931 | NETNSA_NONE = 0x0 | ||
1932 | NETNSA_NSID = 0x1 | ||
1933 | NETNSA_PID = 0x2 | ||
1934 | NETNSA_FD = 0x3 | ||
1935 | ) | ||
1936 | |||
1937 | type XDPRingOffset struct { | ||
1938 | Producer uint64 | ||
1939 | Consumer uint64 | ||
1940 | Desc uint64 | ||
1941 | } | ||
1942 | |||
1943 | type XDPMmapOffsets struct { | ||
1944 | Rx XDPRingOffset | ||
1945 | Tx XDPRingOffset | ||
1946 | Fr XDPRingOffset | ||
1947 | Cr XDPRingOffset | ||
1948 | } | ||
1949 | |||
1950 | type XDPUmemReg struct { | ||
1951 | Addr uint64 | ||
1952 | Len uint64 | ||
1953 | Size uint32 | ||
1954 | Headroom uint32 | ||
1955 | } | ||
1956 | |||
1957 | type XDPStatistics struct { | ||
1958 | Rx_dropped uint64 | ||
1959 | Rx_invalid_descs uint64 | ||
1960 | Tx_invalid_descs uint64 | ||
1961 | } | ||
1962 | |||
1963 | type XDPDesc struct { | ||
1964 | Addr uint64 | ||
1965 | Len uint32 | ||
1966 | Options uint32 | ||
1967 | } | ||
1968 | |||
1969 | const ( | ||
1970 | NCSI_CMD_UNSPEC = 0x0 | ||
1971 | NCSI_CMD_PKG_INFO = 0x1 | ||
1972 | NCSI_CMD_SET_INTERFACE = 0x2 | ||
1973 | NCSI_CMD_CLEAR_INTERFACE = 0x3 | ||
1974 | NCSI_ATTR_UNSPEC = 0x0 | ||
1975 | NCSI_ATTR_IFINDEX = 0x1 | ||
1976 | NCSI_ATTR_PACKAGE_LIST = 0x2 | ||
1977 | NCSI_ATTR_PACKAGE_ID = 0x3 | ||
1978 | NCSI_ATTR_CHANNEL_ID = 0x4 | ||
1979 | NCSI_PKG_ATTR_UNSPEC = 0x0 | ||
1980 | NCSI_PKG_ATTR = 0x1 | ||
1981 | NCSI_PKG_ATTR_ID = 0x2 | ||
1982 | NCSI_PKG_ATTR_FORCED = 0x3 | ||
1983 | NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 | ||
1984 | NCSI_CHANNEL_ATTR_UNSPEC = 0x0 | ||
1985 | NCSI_CHANNEL_ATTR = 0x1 | ||
1986 | NCSI_CHANNEL_ATTR_ID = 0x2 | ||
1987 | NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 | ||
1988 | NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 | ||
1989 | NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 | ||
1990 | NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 | ||
1991 | NCSI_CHANNEL_ATTR_ACTIVE = 0x7 | ||
1992 | NCSI_CHANNEL_ATTR_FORCED = 0x8 | ||
1993 | NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 | ||
1994 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa | ||
1995 | ) | ||
1996 | |||
1997 | const ( | ||
1998 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 | ||
1999 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 | ||
2000 | SOF_TIMESTAMPING_RX_HARDWARE = 0x4 | ||
2001 | SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 | ||
2002 | SOF_TIMESTAMPING_SOFTWARE = 0x10 | ||
2003 | SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 | ||
2004 | SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 | ||
2005 | SOF_TIMESTAMPING_OPT_ID = 0x80 | ||
2006 | SOF_TIMESTAMPING_TX_SCHED = 0x100 | ||
2007 | SOF_TIMESTAMPING_TX_ACK = 0x200 | ||
2008 | SOF_TIMESTAMPING_OPT_CMSG = 0x400 | ||
2009 | SOF_TIMESTAMPING_OPT_TSONLY = 0x800 | ||
2010 | SOF_TIMESTAMPING_OPT_STATS = 0x1000 | ||
2011 | SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 | ||
2012 | SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 | ||
2013 | |||
2014 | SOF_TIMESTAMPING_LAST = 0x4000 | ||
2015 | SOF_TIMESTAMPING_MASK = 0x7fff | ||
2016 | ) | ||