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