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_arm64.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_arm64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go | 1989 |
1 files changed, 1989 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go new file mode 100644 index 0000000..d7a993e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go | |||
@@ -0,0 +1,1989 @@ | |||
1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go | ||
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
3 | |||
4 | // +build arm64,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]int8 | ||
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]int8 | ||
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]int8 | ||
295 | } | ||
296 | |||
297 | type RawSockaddrAny struct { | ||
298 | Addr RawSockaddr | ||
299 | Pad [96]int8 | ||
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 | Regs [31]uint64 | ||
672 | Sp uint64 | ||
673 | Pc uint64 | ||
674 | Pstate uint64 | ||
675 | } | ||
676 | |||
677 | type FdSet struct { | ||
678 | Bits [16]int64 | ||
679 | } | ||
680 | |||
681 | type Sysinfo_t struct { | ||
682 | Uptime int64 | ||
683 | Loads [3]uint64 | ||
684 | Totalram uint64 | ||
685 | Freeram uint64 | ||
686 | Sharedram uint64 | ||
687 | Bufferram uint64 | ||
688 | Totalswap uint64 | ||
689 | Freeswap uint64 | ||
690 | Procs uint16 | ||
691 | Pad uint16 | ||
692 | _ [4]byte | ||
693 | Totalhigh uint64 | ||
694 | Freehigh uint64 | ||
695 | Unit uint32 | ||
696 | _ [0]int8 | ||
697 | _ [4]byte | ||
698 | } | ||
699 | |||
700 | type Utsname struct { | ||
701 | Sysname [65]byte | ||
702 | Nodename [65]byte | ||
703 | Release [65]byte | ||
704 | Version [65]byte | ||
705 | Machine [65]byte | ||
706 | Domainname [65]byte | ||
707 | } | ||
708 | |||
709 | type Ustat_t struct { | ||
710 | Tfree int32 | ||
711 | _ [4]byte | ||
712 | Tinode uint64 | ||
713 | Fname [6]int8 | ||
714 | Fpack [6]int8 | ||
715 | _ [4]byte | ||
716 | } | ||
717 | |||
718 | type EpollEvent struct { | ||
719 | Events uint32 | ||
720 | PadFd int32 | ||
721 | Fd int32 | ||
722 | Pad int32 | ||
723 | } | ||
724 | |||
725 | const ( | ||
726 | AT_EMPTY_PATH = 0x1000 | ||
727 | AT_FDCWD = -0x64 | ||
728 | AT_NO_AUTOMOUNT = 0x800 | ||
729 | AT_REMOVEDIR = 0x200 | ||
730 | |||
731 | AT_STATX_SYNC_AS_STAT = 0x0 | ||
732 | AT_STATX_FORCE_SYNC = 0x2000 | ||
733 | AT_STATX_DONT_SYNC = 0x4000 | ||
734 | |||
735 | AT_SYMLINK_FOLLOW = 0x400 | ||
736 | AT_SYMLINK_NOFOLLOW = 0x100 | ||
737 | |||
738 | AT_EACCESS = 0x200 | ||
739 | ) | ||
740 | |||
741 | type PollFd struct { | ||
742 | Fd int32 | ||
743 | Events int16 | ||
744 | Revents int16 | ||
745 | } | ||
746 | |||
747 | const ( | ||
748 | POLLIN = 0x1 | ||
749 | POLLPRI = 0x2 | ||
750 | POLLOUT = 0x4 | ||
751 | POLLRDHUP = 0x2000 | ||
752 | POLLERR = 0x8 | ||
753 | POLLHUP = 0x10 | ||
754 | POLLNVAL = 0x20 | ||
755 | ) | ||
756 | |||
757 | type Sigset_t struct { | ||
758 | Val [16]uint64 | ||
759 | } | ||
760 | |||
761 | const RNDGETENTCNT = 0x80045200 | ||
762 | |||
763 | const PERF_IOC_FLAG_GROUP = 0x1 | ||
764 | |||
765 | type Termios struct { | ||
766 | Iflag uint32 | ||
767 | Oflag uint32 | ||
768 | Cflag uint32 | ||
769 | Lflag uint32 | ||
770 | Line uint8 | ||
771 | Cc [19]uint8 | ||
772 | Ispeed uint32 | ||
773 | Ospeed uint32 | ||
774 | } | ||
775 | |||
776 | type Winsize struct { | ||
777 | Row uint16 | ||
778 | Col uint16 | ||
779 | Xpixel uint16 | ||
780 | Ypixel uint16 | ||
781 | } | ||
782 | |||
783 | type Taskstats struct { | ||
784 | Version uint16 | ||
785 | _ [2]byte | ||
786 | Ac_exitcode uint32 | ||
787 | Ac_flag uint8 | ||
788 | Ac_nice uint8 | ||
789 | _ [6]byte | ||
790 | Cpu_count uint64 | ||
791 | Cpu_delay_total uint64 | ||
792 | Blkio_count uint64 | ||
793 | Blkio_delay_total uint64 | ||
794 | Swapin_count uint64 | ||
795 | Swapin_delay_total uint64 | ||
796 | Cpu_run_real_total uint64 | ||
797 | Cpu_run_virtual_total uint64 | ||
798 | Ac_comm [32]int8 | ||
799 | Ac_sched uint8 | ||
800 | Ac_pad [3]uint8 | ||
801 | _ [4]byte | ||
802 | Ac_uid uint32 | ||
803 | Ac_gid uint32 | ||
804 | Ac_pid uint32 | ||
805 | Ac_ppid uint32 | ||
806 | Ac_btime uint32 | ||
807 | _ [4]byte | ||
808 | Ac_etime uint64 | ||
809 | Ac_utime uint64 | ||
810 | Ac_stime uint64 | ||
811 | Ac_minflt uint64 | ||
812 | Ac_majflt uint64 | ||
813 | Coremem uint64 | ||
814 | Virtmem uint64 | ||
815 | Hiwater_rss uint64 | ||
816 | Hiwater_vm uint64 | ||
817 | Read_char uint64 | ||
818 | Write_char uint64 | ||
819 | Read_syscalls uint64 | ||
820 | Write_syscalls uint64 | ||
821 | Read_bytes uint64 | ||
822 | Write_bytes uint64 | ||
823 | Cancelled_write_bytes uint64 | ||
824 | Nvcsw uint64 | ||
825 | Nivcsw uint64 | ||
826 | Ac_utimescaled uint64 | ||
827 | Ac_stimescaled uint64 | ||
828 | Cpu_scaled_run_real_total uint64 | ||
829 | Freepages_count uint64 | ||
830 | Freepages_delay_total uint64 | ||
831 | } | ||
832 | |||
833 | const ( | ||
834 | TASKSTATS_CMD_UNSPEC = 0x0 | ||
835 | TASKSTATS_CMD_GET = 0x1 | ||
836 | TASKSTATS_CMD_NEW = 0x2 | ||
837 | TASKSTATS_TYPE_UNSPEC = 0x0 | ||
838 | TASKSTATS_TYPE_PID = 0x1 | ||
839 | TASKSTATS_TYPE_TGID = 0x2 | ||
840 | TASKSTATS_TYPE_STATS = 0x3 | ||
841 | TASKSTATS_TYPE_AGGR_PID = 0x4 | ||
842 | TASKSTATS_TYPE_AGGR_TGID = 0x5 | ||
843 | TASKSTATS_TYPE_NULL = 0x6 | ||
844 | TASKSTATS_CMD_ATTR_UNSPEC = 0x0 | ||
845 | TASKSTATS_CMD_ATTR_PID = 0x1 | ||
846 | TASKSTATS_CMD_ATTR_TGID = 0x2 | ||
847 | TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 | ||
848 | TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 | ||
849 | ) | ||
850 | |||
851 | type CGroupStats struct { | ||
852 | Sleeping uint64 | ||
853 | Running uint64 | ||
854 | Stopped uint64 | ||
855 | Uninterruptible uint64 | ||
856 | Io_wait uint64 | ||
857 | } | ||
858 | |||
859 | const ( | ||
860 | CGROUPSTATS_CMD_UNSPEC = 0x3 | ||
861 | CGROUPSTATS_CMD_GET = 0x4 | ||
862 | CGROUPSTATS_CMD_NEW = 0x5 | ||
863 | CGROUPSTATS_TYPE_UNSPEC = 0x0 | ||
864 | CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 | ||
865 | CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 | ||
866 | CGROUPSTATS_CMD_ATTR_FD = 0x1 | ||
867 | ) | ||
868 | |||
869 | type Genlmsghdr struct { | ||
870 | Cmd uint8 | ||
871 | Version uint8 | ||
872 | Reserved uint16 | ||
873 | } | ||
874 | |||
875 | const ( | ||
876 | CTRL_CMD_UNSPEC = 0x0 | ||
877 | CTRL_CMD_NEWFAMILY = 0x1 | ||
878 | CTRL_CMD_DELFAMILY = 0x2 | ||
879 | CTRL_CMD_GETFAMILY = 0x3 | ||
880 | CTRL_CMD_NEWOPS = 0x4 | ||
881 | CTRL_CMD_DELOPS = 0x5 | ||
882 | CTRL_CMD_GETOPS = 0x6 | ||
883 | CTRL_CMD_NEWMCAST_GRP = 0x7 | ||
884 | CTRL_CMD_DELMCAST_GRP = 0x8 | ||
885 | CTRL_CMD_GETMCAST_GRP = 0x9 | ||
886 | CTRL_ATTR_UNSPEC = 0x0 | ||
887 | CTRL_ATTR_FAMILY_ID = 0x1 | ||
888 | CTRL_ATTR_FAMILY_NAME = 0x2 | ||
889 | CTRL_ATTR_VERSION = 0x3 | ||
890 | CTRL_ATTR_HDRSIZE = 0x4 | ||
891 | CTRL_ATTR_MAXATTR = 0x5 | ||
892 | CTRL_ATTR_OPS = 0x6 | ||
893 | CTRL_ATTR_MCAST_GROUPS = 0x7 | ||
894 | CTRL_ATTR_OP_UNSPEC = 0x0 | ||
895 | CTRL_ATTR_OP_ID = 0x1 | ||
896 | CTRL_ATTR_OP_FLAGS = 0x2 | ||
897 | CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 | ||
898 | CTRL_ATTR_MCAST_GRP_NAME = 0x1 | ||
899 | CTRL_ATTR_MCAST_GRP_ID = 0x2 | ||
900 | ) | ||
901 | |||
902 | type cpuMask uint64 | ||
903 | |||
904 | const ( | ||
905 | _CPU_SETSIZE = 0x400 | ||
906 | _NCPUBITS = 0x40 | ||
907 | ) | ||
908 | |||
909 | const ( | ||
910 | BDADDR_BREDR = 0x0 | ||
911 | BDADDR_LE_PUBLIC = 0x1 | ||
912 | BDADDR_LE_RANDOM = 0x2 | ||
913 | ) | ||
914 | |||
915 | type PerfEventAttr struct { | ||
916 | Type uint32 | ||
917 | Size uint32 | ||
918 | Config uint64 | ||
919 | Sample uint64 | ||
920 | Sample_type uint64 | ||
921 | Read_format uint64 | ||
922 | Bits uint64 | ||
923 | Wakeup uint32 | ||
924 | Bp_type uint32 | ||
925 | Ext1 uint64 | ||
926 | Ext2 uint64 | ||
927 | Branch_sample_type uint64 | ||
928 | Sample_regs_user uint64 | ||
929 | Sample_stack_user uint32 | ||
930 | Clockid int32 | ||
931 | Sample_regs_intr uint64 | ||
932 | Aux_watermark uint32 | ||
933 | _ uint32 | ||
934 | } | ||
935 | |||
936 | type PerfEventMmapPage struct { | ||
937 | Version uint32 | ||
938 | Compat_version uint32 | ||
939 | Lock uint32 | ||
940 | Index uint32 | ||
941 | Offset int64 | ||
942 | Time_enabled uint64 | ||
943 | Time_running uint64 | ||
944 | Capabilities uint64 | ||
945 | Pmc_width uint16 | ||
946 | Time_shift uint16 | ||
947 | Time_mult uint32 | ||
948 | Time_offset uint64 | ||
949 | Time_zero uint64 | ||
950 | Size uint32 | ||
951 | _ [948]uint8 | ||
952 | Data_head uint64 | ||
953 | Data_tail uint64 | ||
954 | Data_offset uint64 | ||
955 | Data_size uint64 | ||
956 | Aux_head uint64 | ||
957 | Aux_tail uint64 | ||
958 | Aux_offset uint64 | ||
959 | Aux_size uint64 | ||
960 | } | ||
961 | |||
962 | const ( | ||
963 | PerfBitDisabled uint64 = CBitFieldMaskBit0 | ||
964 | PerfBitInherit = CBitFieldMaskBit1 | ||
965 | PerfBitPinned = CBitFieldMaskBit2 | ||
966 | PerfBitExclusive = CBitFieldMaskBit3 | ||
967 | PerfBitExcludeUser = CBitFieldMaskBit4 | ||
968 | PerfBitExcludeKernel = CBitFieldMaskBit5 | ||
969 | PerfBitExcludeHv = CBitFieldMaskBit6 | ||
970 | PerfBitExcludeIdle = CBitFieldMaskBit7 | ||
971 | PerfBitMmap = CBitFieldMaskBit8 | ||
972 | PerfBitComm = CBitFieldMaskBit9 | ||
973 | PerfBitFreq = CBitFieldMaskBit10 | ||
974 | PerfBitInheritStat = CBitFieldMaskBit11 | ||
975 | PerfBitEnableOnExec = CBitFieldMaskBit12 | ||
976 | PerfBitTask = CBitFieldMaskBit13 | ||
977 | PerfBitWatermark = CBitFieldMaskBit14 | ||
978 | PerfBitPreciseIPBit1 = CBitFieldMaskBit15 | ||
979 | PerfBitPreciseIPBit2 = CBitFieldMaskBit16 | ||
980 | PerfBitMmapData = CBitFieldMaskBit17 | ||
981 | PerfBitSampleIDAll = CBitFieldMaskBit18 | ||
982 | PerfBitExcludeHost = CBitFieldMaskBit19 | ||
983 | PerfBitExcludeGuest = CBitFieldMaskBit20 | ||
984 | PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 | ||
985 | PerfBitExcludeCallchainUser = CBitFieldMaskBit22 | ||
986 | PerfBitMmap2 = CBitFieldMaskBit23 | ||
987 | PerfBitCommExec = CBitFieldMaskBit24 | ||
988 | PerfBitUseClockID = CBitFieldMaskBit25 | ||
989 | PerfBitContextSwitch = CBitFieldMaskBit26 | ||
990 | ) | ||
991 | |||
992 | const ( | ||
993 | PERF_TYPE_HARDWARE = 0x0 | ||
994 | PERF_TYPE_SOFTWARE = 0x1 | ||
995 | PERF_TYPE_TRACEPOINT = 0x2 | ||
996 | PERF_TYPE_HW_CACHE = 0x3 | ||
997 | PERF_TYPE_RAW = 0x4 | ||
998 | PERF_TYPE_BREAKPOINT = 0x5 | ||
999 | |||
1000 | PERF_COUNT_HW_CPU_CYCLES = 0x0 | ||
1001 | PERF_COUNT_HW_INSTRUCTIONS = 0x1 | ||
1002 | PERF_COUNT_HW_CACHE_REFERENCES = 0x2 | ||
1003 | PERF_COUNT_HW_CACHE_MISSES = 0x3 | ||
1004 | PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 | ||
1005 | PERF_COUNT_HW_BRANCH_MISSES = 0x5 | ||
1006 | PERF_COUNT_HW_BUS_CYCLES = 0x6 | ||
1007 | PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 | ||
1008 | PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 | ||
1009 | PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 | ||
1010 | |||
1011 | PERF_COUNT_HW_CACHE_L1D = 0x0 | ||
1012 | PERF_COUNT_HW_CACHE_L1I = 0x1 | ||
1013 | PERF_COUNT_HW_CACHE_LL = 0x2 | ||
1014 | PERF_COUNT_HW_CACHE_DTLB = 0x3 | ||
1015 | PERF_COUNT_HW_CACHE_ITLB = 0x4 | ||
1016 | PERF_COUNT_HW_CACHE_BPU = 0x5 | ||
1017 | PERF_COUNT_HW_CACHE_NODE = 0x6 | ||
1018 | |||
1019 | PERF_COUNT_HW_CACHE_OP_READ = 0x0 | ||
1020 | PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 | ||
1021 | PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 | ||
1022 | |||
1023 | PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 | ||
1024 | PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 | ||
1025 | |||
1026 | PERF_COUNT_SW_CPU_CLOCK = 0x0 | ||
1027 | PERF_COUNT_SW_TASK_CLOCK = 0x1 | ||
1028 | PERF_COUNT_SW_PAGE_FAULTS = 0x2 | ||
1029 | PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 | ||
1030 | PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 | ||
1031 | PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 | ||
1032 | PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 | ||
1033 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 | ||
1034 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 | ||
1035 | PERF_COUNT_SW_DUMMY = 0x9 | ||
1036 | |||
1037 | PERF_SAMPLE_IP = 0x1 | ||
1038 | PERF_SAMPLE_TID = 0x2 | ||
1039 | PERF_SAMPLE_TIME = 0x4 | ||
1040 | PERF_SAMPLE_ADDR = 0x8 | ||
1041 | PERF_SAMPLE_READ = 0x10 | ||
1042 | PERF_SAMPLE_CALLCHAIN = 0x20 | ||
1043 | PERF_SAMPLE_ID = 0x40 | ||
1044 | PERF_SAMPLE_CPU = 0x80 | ||
1045 | PERF_SAMPLE_PERIOD = 0x100 | ||
1046 | PERF_SAMPLE_STREAM_ID = 0x200 | ||
1047 | PERF_SAMPLE_RAW = 0x400 | ||
1048 | PERF_SAMPLE_BRANCH_STACK = 0x800 | ||
1049 | |||
1050 | PERF_SAMPLE_BRANCH_USER = 0x1 | ||
1051 | PERF_SAMPLE_BRANCH_KERNEL = 0x2 | ||
1052 | PERF_SAMPLE_BRANCH_HV = 0x4 | ||
1053 | PERF_SAMPLE_BRANCH_ANY = 0x8 | ||
1054 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 | ||
1055 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 | ||
1056 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 | ||
1057 | |||
1058 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 | ||
1059 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 | ||
1060 | PERF_FORMAT_ID = 0x4 | ||
1061 | PERF_FORMAT_GROUP = 0x8 | ||
1062 | |||
1063 | PERF_RECORD_MMAP = 0x1 | ||
1064 | PERF_RECORD_LOST = 0x2 | ||
1065 | PERF_RECORD_COMM = 0x3 | ||
1066 | PERF_RECORD_EXIT = 0x4 | ||
1067 | PERF_RECORD_THROTTLE = 0x5 | ||
1068 | PERF_RECORD_UNTHROTTLE = 0x6 | ||
1069 | PERF_RECORD_FORK = 0x7 | ||
1070 | PERF_RECORD_READ = 0x8 | ||
1071 | PERF_RECORD_SAMPLE = 0x9 | ||
1072 | |||
1073 | PERF_CONTEXT_HV = -0x20 | ||
1074 | PERF_CONTEXT_KERNEL = -0x80 | ||
1075 | PERF_CONTEXT_USER = -0x200 | ||
1076 | |||
1077 | PERF_CONTEXT_GUEST = -0x800 | ||
1078 | PERF_CONTEXT_GUEST_KERNEL = -0x880 | ||
1079 | PERF_CONTEXT_GUEST_USER = -0xa00 | ||
1080 | |||
1081 | PERF_FLAG_FD_NO_GROUP = 0x1 | ||
1082 | PERF_FLAG_FD_OUTPUT = 0x2 | ||
1083 | PERF_FLAG_PID_CGROUP = 0x4 | ||
1084 | ) | ||
1085 | |||
1086 | const ( | ||
1087 | CBitFieldMaskBit0 = 0x1 | ||
1088 | CBitFieldMaskBit1 = 0x2 | ||
1089 | CBitFieldMaskBit2 = 0x4 | ||
1090 | CBitFieldMaskBit3 = 0x8 | ||
1091 | CBitFieldMaskBit4 = 0x10 | ||
1092 | CBitFieldMaskBit5 = 0x20 | ||
1093 | CBitFieldMaskBit6 = 0x40 | ||
1094 | CBitFieldMaskBit7 = 0x80 | ||
1095 | CBitFieldMaskBit8 = 0x100 | ||
1096 | CBitFieldMaskBit9 = 0x200 | ||
1097 | CBitFieldMaskBit10 = 0x400 | ||
1098 | CBitFieldMaskBit11 = 0x800 | ||
1099 | CBitFieldMaskBit12 = 0x1000 | ||
1100 | CBitFieldMaskBit13 = 0x2000 | ||
1101 | CBitFieldMaskBit14 = 0x4000 | ||
1102 | CBitFieldMaskBit15 = 0x8000 | ||
1103 | CBitFieldMaskBit16 = 0x10000 | ||
1104 | CBitFieldMaskBit17 = 0x20000 | ||
1105 | CBitFieldMaskBit18 = 0x40000 | ||
1106 | CBitFieldMaskBit19 = 0x80000 | ||
1107 | CBitFieldMaskBit20 = 0x100000 | ||
1108 | CBitFieldMaskBit21 = 0x200000 | ||
1109 | CBitFieldMaskBit22 = 0x400000 | ||
1110 | CBitFieldMaskBit23 = 0x800000 | ||
1111 | CBitFieldMaskBit24 = 0x1000000 | ||
1112 | CBitFieldMaskBit25 = 0x2000000 | ||
1113 | CBitFieldMaskBit26 = 0x4000000 | ||
1114 | CBitFieldMaskBit27 = 0x8000000 | ||
1115 | CBitFieldMaskBit28 = 0x10000000 | ||
1116 | CBitFieldMaskBit29 = 0x20000000 | ||
1117 | CBitFieldMaskBit30 = 0x40000000 | ||
1118 | CBitFieldMaskBit31 = 0x80000000 | ||
1119 | CBitFieldMaskBit32 = 0x100000000 | ||
1120 | CBitFieldMaskBit33 = 0x200000000 | ||
1121 | CBitFieldMaskBit34 = 0x400000000 | ||
1122 | CBitFieldMaskBit35 = 0x800000000 | ||
1123 | CBitFieldMaskBit36 = 0x1000000000 | ||
1124 | CBitFieldMaskBit37 = 0x2000000000 | ||
1125 | CBitFieldMaskBit38 = 0x4000000000 | ||
1126 | CBitFieldMaskBit39 = 0x8000000000 | ||
1127 | CBitFieldMaskBit40 = 0x10000000000 | ||
1128 | CBitFieldMaskBit41 = 0x20000000000 | ||
1129 | CBitFieldMaskBit42 = 0x40000000000 | ||
1130 | CBitFieldMaskBit43 = 0x80000000000 | ||
1131 | CBitFieldMaskBit44 = 0x100000000000 | ||
1132 | CBitFieldMaskBit45 = 0x200000000000 | ||
1133 | CBitFieldMaskBit46 = 0x400000000000 | ||
1134 | CBitFieldMaskBit47 = 0x800000000000 | ||
1135 | CBitFieldMaskBit48 = 0x1000000000000 | ||
1136 | CBitFieldMaskBit49 = 0x2000000000000 | ||
1137 | CBitFieldMaskBit50 = 0x4000000000000 | ||
1138 | CBitFieldMaskBit51 = 0x8000000000000 | ||
1139 | CBitFieldMaskBit52 = 0x10000000000000 | ||
1140 | CBitFieldMaskBit53 = 0x20000000000000 | ||
1141 | CBitFieldMaskBit54 = 0x40000000000000 | ||
1142 | CBitFieldMaskBit55 = 0x80000000000000 | ||
1143 | CBitFieldMaskBit56 = 0x100000000000000 | ||
1144 | CBitFieldMaskBit57 = 0x200000000000000 | ||
1145 | CBitFieldMaskBit58 = 0x400000000000000 | ||
1146 | CBitFieldMaskBit59 = 0x800000000000000 | ||
1147 | CBitFieldMaskBit60 = 0x1000000000000000 | ||
1148 | CBitFieldMaskBit61 = 0x2000000000000000 | ||
1149 | CBitFieldMaskBit62 = 0x4000000000000000 | ||
1150 | CBitFieldMaskBit63 = 0x8000000000000000 | ||
1151 | ) | ||
1152 | |||
1153 | type SockaddrStorage struct { | ||
1154 | Family uint16 | ||
1155 | _ [118]int8 | ||
1156 | _ uint64 | ||
1157 | } | ||
1158 | |||
1159 | type TCPMD5Sig struct { | ||
1160 | Addr SockaddrStorage | ||
1161 | Flags uint8 | ||
1162 | Prefixlen uint8 | ||
1163 | Keylen uint16 | ||
1164 | _ uint32 | ||
1165 | Key [80]uint8 | ||
1166 | } | ||
1167 | |||
1168 | type HDDriveCmdHdr struct { | ||
1169 | Command uint8 | ||
1170 | Number uint8 | ||
1171 | Feature uint8 | ||
1172 | Count uint8 | ||
1173 | } | ||
1174 | |||
1175 | type HDGeometry struct { | ||
1176 | Heads uint8 | ||
1177 | Sectors uint8 | ||
1178 | Cylinders uint16 | ||
1179 | _ [4]byte | ||
1180 | Start uint64 | ||
1181 | } | ||
1182 | |||
1183 | type HDDriveID struct { | ||
1184 | Config uint16 | ||
1185 | Cyls uint16 | ||
1186 | Reserved2 uint16 | ||
1187 | Heads uint16 | ||
1188 | Track_bytes uint16 | ||
1189 | Sector_bytes uint16 | ||
1190 | Sectors uint16 | ||
1191 | Vendor0 uint16 | ||
1192 | Vendor1 uint16 | ||
1193 | Vendor2 uint16 | ||
1194 | Serial_no [20]uint8 | ||
1195 | Buf_type uint16 | ||
1196 | Buf_size uint16 | ||
1197 | Ecc_bytes uint16 | ||
1198 | Fw_rev [8]uint8 | ||
1199 | Model [40]uint8 | ||
1200 | Max_multsect uint8 | ||
1201 | Vendor3 uint8 | ||
1202 | Dword_io uint16 | ||
1203 | Vendor4 uint8 | ||
1204 | Capability uint8 | ||
1205 | Reserved50 uint16 | ||
1206 | Vendor5 uint8 | ||
1207 | TPIO uint8 | ||
1208 | Vendor6 uint8 | ||
1209 | TDMA uint8 | ||
1210 | Field_valid uint16 | ||
1211 | Cur_cyls uint16 | ||
1212 | Cur_heads uint16 | ||
1213 | Cur_sectors uint16 | ||
1214 | Cur_capacity0 uint16 | ||
1215 | Cur_capacity1 uint16 | ||
1216 | Multsect uint8 | ||
1217 | Multsect_valid uint8 | ||
1218 | Lba_capacity uint32 | ||
1219 | Dma_1word uint16 | ||
1220 | Dma_mword uint16 | ||
1221 | Eide_pio_modes uint16 | ||
1222 | Eide_dma_min uint16 | ||
1223 | Eide_dma_time uint16 | ||
1224 | Eide_pio uint16 | ||
1225 | Eide_pio_iordy uint16 | ||
1226 | Words69_70 [2]uint16 | ||
1227 | Words71_74 [4]uint16 | ||
1228 | Queue_depth uint16 | ||
1229 | Words76_79 [4]uint16 | ||
1230 | Major_rev_num uint16 | ||
1231 | Minor_rev_num uint16 | ||
1232 | Command_set_1 uint16 | ||
1233 | Command_set_2 uint16 | ||
1234 | Cfsse uint16 | ||
1235 | Cfs_enable_1 uint16 | ||
1236 | Cfs_enable_2 uint16 | ||
1237 | Csf_default uint16 | ||
1238 | Dma_ultra uint16 | ||
1239 | Trseuc uint16 | ||
1240 | TrsEuc uint16 | ||
1241 | CurAPMvalues uint16 | ||
1242 | Mprc uint16 | ||
1243 | Hw_config uint16 | ||
1244 | Acoustic uint16 | ||
1245 | Msrqs uint16 | ||
1246 | Sxfert uint16 | ||
1247 | Sal uint16 | ||
1248 | Spg uint32 | ||
1249 | Lba_capacity_2 uint64 | ||
1250 | Words104_125 [22]uint16 | ||
1251 | Last_lun uint16 | ||
1252 | Word127 uint16 | ||
1253 | Dlf uint16 | ||
1254 | Csfo uint16 | ||
1255 | Words130_155 [26]uint16 | ||
1256 | Word156 uint16 | ||
1257 | Words157_159 [3]uint16 | ||
1258 | Cfa_power uint16 | ||
1259 | Words161_175 [15]uint16 | ||
1260 | Words176_205 [30]uint16 | ||
1261 | Words206_254 [49]uint16 | ||
1262 | Integrity_word uint16 | ||
1263 | } | ||
1264 | |||
1265 | type Statfs_t struct { | ||
1266 | Type int64 | ||
1267 | Bsize int64 | ||
1268 | Blocks uint64 | ||
1269 | Bfree uint64 | ||
1270 | Bavail uint64 | ||
1271 | Files uint64 | ||
1272 | Ffree uint64 | ||
1273 | Fsid Fsid | ||
1274 | Namelen int64 | ||
1275 | Frsize int64 | ||
1276 | Flags int64 | ||
1277 | Spare [4]int64 | ||
1278 | } | ||
1279 | |||
1280 | const ( | ||
1281 | ST_MANDLOCK = 0x40 | ||
1282 | ST_NOATIME = 0x400 | ||
1283 | ST_NODEV = 0x4 | ||
1284 | ST_NODIRATIME = 0x800 | ||
1285 | ST_NOEXEC = 0x8 | ||
1286 | ST_NOSUID = 0x2 | ||
1287 | ST_RDONLY = 0x1 | ||
1288 | ST_RELATIME = 0x1000 | ||
1289 | ST_SYNCHRONOUS = 0x10 | ||
1290 | ) | ||
1291 | |||
1292 | type TpacketHdr struct { | ||
1293 | Status uint64 | ||
1294 | Len uint32 | ||
1295 | Snaplen uint32 | ||
1296 | Mac uint16 | ||
1297 | Net uint16 | ||
1298 | Sec uint32 | ||
1299 | Usec uint32 | ||
1300 | _ [4]byte | ||
1301 | } | ||
1302 | |||
1303 | type Tpacket2Hdr struct { | ||
1304 | Status uint32 | ||
1305 | Len uint32 | ||
1306 | Snaplen uint32 | ||
1307 | Mac uint16 | ||
1308 | Net uint16 | ||
1309 | Sec uint32 | ||
1310 | Nsec uint32 | ||
1311 | Vlan_tci uint16 | ||
1312 | Vlan_tpid uint16 | ||
1313 | _ [4]uint8 | ||
1314 | } | ||
1315 | |||
1316 | type Tpacket3Hdr struct { | ||
1317 | Next_offset uint32 | ||
1318 | Sec uint32 | ||
1319 | Nsec uint32 | ||
1320 | Snaplen uint32 | ||
1321 | Len uint32 | ||
1322 | Status uint32 | ||
1323 | Mac uint16 | ||
1324 | Net uint16 | ||
1325 | Hv1 TpacketHdrVariant1 | ||
1326 | _ [8]uint8 | ||
1327 | } | ||
1328 | |||
1329 | type TpacketHdrVariant1 struct { | ||
1330 | Rxhash uint32 | ||
1331 | Vlan_tci uint32 | ||
1332 | Vlan_tpid uint16 | ||
1333 | _ uint16 | ||
1334 | } | ||
1335 | |||
1336 | type TpacketBlockDesc struct { | ||
1337 | Version uint32 | ||
1338 | To_priv uint32 | ||
1339 | Hdr [40]byte | ||
1340 | } | ||
1341 | |||
1342 | type TpacketReq struct { | ||
1343 | Block_size uint32 | ||
1344 | Block_nr uint32 | ||
1345 | Frame_size uint32 | ||
1346 | Frame_nr uint32 | ||
1347 | } | ||
1348 | |||
1349 | type TpacketReq3 struct { | ||
1350 | Block_size uint32 | ||
1351 | Block_nr uint32 | ||
1352 | Frame_size uint32 | ||
1353 | Frame_nr uint32 | ||
1354 | Retire_blk_tov uint32 | ||
1355 | Sizeof_priv uint32 | ||
1356 | Feature_req_word uint32 | ||
1357 | } | ||
1358 | |||
1359 | type TpacketStats struct { | ||
1360 | Packets uint32 | ||
1361 | Drops uint32 | ||
1362 | } | ||
1363 | |||
1364 | type TpacketStatsV3 struct { | ||
1365 | Packets uint32 | ||
1366 | Drops uint32 | ||
1367 | Freeze_q_cnt uint32 | ||
1368 | } | ||
1369 | |||
1370 | type TpacketAuxdata struct { | ||
1371 | Status uint32 | ||
1372 | Len uint32 | ||
1373 | Snaplen uint32 | ||
1374 | Mac uint16 | ||
1375 | Net uint16 | ||
1376 | Vlan_tci uint16 | ||
1377 | Vlan_tpid uint16 | ||
1378 | } | ||
1379 | |||
1380 | const ( | ||
1381 | TPACKET_V1 = 0x0 | ||
1382 | TPACKET_V2 = 0x1 | ||
1383 | TPACKET_V3 = 0x2 | ||
1384 | ) | ||
1385 | |||
1386 | const ( | ||
1387 | SizeofTpacketHdr = 0x20 | ||
1388 | SizeofTpacket2Hdr = 0x20 | ||
1389 | SizeofTpacket3Hdr = 0x30 | ||
1390 | ) | ||
1391 | |||
1392 | const ( | ||
1393 | NF_INET_PRE_ROUTING = 0x0 | ||
1394 | NF_INET_LOCAL_IN = 0x1 | ||
1395 | NF_INET_FORWARD = 0x2 | ||
1396 | NF_INET_LOCAL_OUT = 0x3 | ||
1397 | NF_INET_POST_ROUTING = 0x4 | ||
1398 | NF_INET_NUMHOOKS = 0x5 | ||
1399 | ) | ||
1400 | |||
1401 | const ( | ||
1402 | NF_NETDEV_INGRESS = 0x0 | ||
1403 | NF_NETDEV_NUMHOOKS = 0x1 | ||
1404 | ) | ||
1405 | |||
1406 | const ( | ||
1407 | NFPROTO_UNSPEC = 0x0 | ||
1408 | NFPROTO_INET = 0x1 | ||
1409 | NFPROTO_IPV4 = 0x2 | ||
1410 | NFPROTO_ARP = 0x3 | ||
1411 | NFPROTO_NETDEV = 0x5 | ||
1412 | NFPROTO_BRIDGE = 0x7 | ||
1413 | NFPROTO_IPV6 = 0xa | ||
1414 | NFPROTO_DECNET = 0xc | ||
1415 | NFPROTO_NUMPROTO = 0xd | ||
1416 | ) | ||
1417 | |||
1418 | type Nfgenmsg struct { | ||
1419 | Nfgen_family uint8 | ||
1420 | Version uint8 | ||
1421 | Res_id uint16 | ||
1422 | } | ||
1423 | |||
1424 | const ( | ||
1425 | NFNL_BATCH_UNSPEC = 0x0 | ||
1426 | NFNL_BATCH_GENID = 0x1 | ||
1427 | ) | ||
1428 | |||
1429 | const ( | ||
1430 | NFT_REG_VERDICT = 0x0 | ||
1431 | NFT_REG_1 = 0x1 | ||
1432 | NFT_REG_2 = 0x2 | ||
1433 | NFT_REG_3 = 0x3 | ||
1434 | NFT_REG_4 = 0x4 | ||
1435 | NFT_REG32_00 = 0x8 | ||
1436 | NFT_REG32_01 = 0x9 | ||
1437 | NFT_REG32_02 = 0xa | ||
1438 | NFT_REG32_03 = 0xb | ||
1439 | NFT_REG32_04 = 0xc | ||
1440 | NFT_REG32_05 = 0xd | ||
1441 | NFT_REG32_06 = 0xe | ||
1442 | NFT_REG32_07 = 0xf | ||
1443 | NFT_REG32_08 = 0x10 | ||
1444 | NFT_REG32_09 = 0x11 | ||
1445 | NFT_REG32_10 = 0x12 | ||
1446 | NFT_REG32_11 = 0x13 | ||
1447 | NFT_REG32_12 = 0x14 | ||
1448 | NFT_REG32_13 = 0x15 | ||
1449 | NFT_REG32_14 = 0x16 | ||
1450 | NFT_REG32_15 = 0x17 | ||
1451 | NFT_CONTINUE = -0x1 | ||
1452 | NFT_BREAK = -0x2 | ||
1453 | NFT_JUMP = -0x3 | ||
1454 | NFT_GOTO = -0x4 | ||
1455 | NFT_RETURN = -0x5 | ||
1456 | NFT_MSG_NEWTABLE = 0x0 | ||
1457 | NFT_MSG_GETTABLE = 0x1 | ||
1458 | NFT_MSG_DELTABLE = 0x2 | ||
1459 | NFT_MSG_NEWCHAIN = 0x3 | ||
1460 | NFT_MSG_GETCHAIN = 0x4 | ||
1461 | NFT_MSG_DELCHAIN = 0x5 | ||
1462 | NFT_MSG_NEWRULE = 0x6 | ||
1463 | NFT_MSG_GETRULE = 0x7 | ||
1464 | NFT_MSG_DELRULE = 0x8 | ||
1465 | NFT_MSG_NEWSET = 0x9 | ||
1466 | NFT_MSG_GETSET = 0xa | ||
1467 | NFT_MSG_DELSET = 0xb | ||
1468 | NFT_MSG_NEWSETELEM = 0xc | ||
1469 | NFT_MSG_GETSETELEM = 0xd | ||
1470 | NFT_MSG_DELSETELEM = 0xe | ||
1471 | NFT_MSG_NEWGEN = 0xf | ||
1472 | NFT_MSG_GETGEN = 0x10 | ||
1473 | NFT_MSG_TRACE = 0x11 | ||
1474 | NFT_MSG_NEWOBJ = 0x12 | ||
1475 | NFT_MSG_GETOBJ = 0x13 | ||
1476 | NFT_MSG_DELOBJ = 0x14 | ||
1477 | NFT_MSG_GETOBJ_RESET = 0x15 | ||
1478 | NFT_MSG_MAX = 0x19 | ||
1479 | NFTA_LIST_UNPEC = 0x0 | ||
1480 | NFTA_LIST_ELEM = 0x1 | ||
1481 | NFTA_HOOK_UNSPEC = 0x0 | ||
1482 | NFTA_HOOK_HOOKNUM = 0x1 | ||
1483 | NFTA_HOOK_PRIORITY = 0x2 | ||
1484 | NFTA_HOOK_DEV = 0x3 | ||
1485 | NFT_TABLE_F_DORMANT = 0x1 | ||
1486 | NFTA_TABLE_UNSPEC = 0x0 | ||
1487 | NFTA_TABLE_NAME = 0x1 | ||
1488 | NFTA_TABLE_FLAGS = 0x2 | ||
1489 | NFTA_TABLE_USE = 0x3 | ||
1490 | NFTA_CHAIN_UNSPEC = 0x0 | ||
1491 | NFTA_CHAIN_TABLE = 0x1 | ||
1492 | NFTA_CHAIN_HANDLE = 0x2 | ||
1493 | NFTA_CHAIN_NAME = 0x3 | ||
1494 | NFTA_CHAIN_HOOK = 0x4 | ||
1495 | NFTA_CHAIN_POLICY = 0x5 | ||
1496 | NFTA_CHAIN_USE = 0x6 | ||
1497 | NFTA_CHAIN_TYPE = 0x7 | ||
1498 | NFTA_CHAIN_COUNTERS = 0x8 | ||
1499 | NFTA_CHAIN_PAD = 0x9 | ||
1500 | NFTA_RULE_UNSPEC = 0x0 | ||
1501 | NFTA_RULE_TABLE = 0x1 | ||
1502 | NFTA_RULE_CHAIN = 0x2 | ||
1503 | NFTA_RULE_HANDLE = 0x3 | ||
1504 | NFTA_RULE_EXPRESSIONS = 0x4 | ||
1505 | NFTA_RULE_COMPAT = 0x5 | ||
1506 | NFTA_RULE_POSITION = 0x6 | ||
1507 | NFTA_RULE_USERDATA = 0x7 | ||
1508 | NFTA_RULE_PAD = 0x8 | ||
1509 | NFTA_RULE_ID = 0x9 | ||
1510 | NFT_RULE_COMPAT_F_INV = 0x2 | ||
1511 | NFT_RULE_COMPAT_F_MASK = 0x2 | ||
1512 | NFTA_RULE_COMPAT_UNSPEC = 0x0 | ||
1513 | NFTA_RULE_COMPAT_PROTO = 0x1 | ||
1514 | NFTA_RULE_COMPAT_FLAGS = 0x2 | ||
1515 | NFT_SET_ANONYMOUS = 0x1 | ||
1516 | NFT_SET_CONSTANT = 0x2 | ||
1517 | NFT_SET_INTERVAL = 0x4 | ||
1518 | NFT_SET_MAP = 0x8 | ||
1519 | NFT_SET_TIMEOUT = 0x10 | ||
1520 | NFT_SET_EVAL = 0x20 | ||
1521 | NFT_SET_OBJECT = 0x40 | ||
1522 | NFT_SET_POL_PERFORMANCE = 0x0 | ||
1523 | NFT_SET_POL_MEMORY = 0x1 | ||
1524 | NFTA_SET_DESC_UNSPEC = 0x0 | ||
1525 | NFTA_SET_DESC_SIZE = 0x1 | ||
1526 | NFTA_SET_UNSPEC = 0x0 | ||
1527 | NFTA_SET_TABLE = 0x1 | ||
1528 | NFTA_SET_NAME = 0x2 | ||
1529 | NFTA_SET_FLAGS = 0x3 | ||
1530 | NFTA_SET_KEY_TYPE = 0x4 | ||
1531 | NFTA_SET_KEY_LEN = 0x5 | ||
1532 | NFTA_SET_DATA_TYPE = 0x6 | ||
1533 | NFTA_SET_DATA_LEN = 0x7 | ||
1534 | NFTA_SET_POLICY = 0x8 | ||
1535 | NFTA_SET_DESC = 0x9 | ||
1536 | NFTA_SET_ID = 0xa | ||
1537 | NFTA_SET_TIMEOUT = 0xb | ||
1538 | NFTA_SET_GC_INTERVAL = 0xc | ||
1539 | NFTA_SET_USERDATA = 0xd | ||
1540 | NFTA_SET_PAD = 0xe | ||
1541 | NFTA_SET_OBJ_TYPE = 0xf | ||
1542 | NFT_SET_ELEM_INTERVAL_END = 0x1 | ||
1543 | NFTA_SET_ELEM_UNSPEC = 0x0 | ||
1544 | NFTA_SET_ELEM_KEY = 0x1 | ||
1545 | NFTA_SET_ELEM_DATA = 0x2 | ||
1546 | NFTA_SET_ELEM_FLAGS = 0x3 | ||
1547 | NFTA_SET_ELEM_TIMEOUT = 0x4 | ||
1548 | NFTA_SET_ELEM_EXPIRATION = 0x5 | ||
1549 | NFTA_SET_ELEM_USERDATA = 0x6 | ||
1550 | NFTA_SET_ELEM_EXPR = 0x7 | ||
1551 | NFTA_SET_ELEM_PAD = 0x8 | ||
1552 | NFTA_SET_ELEM_OBJREF = 0x9 | ||
1553 | NFTA_SET_ELEM_LIST_UNSPEC = 0x0 | ||
1554 | NFTA_SET_ELEM_LIST_TABLE = 0x1 | ||
1555 | NFTA_SET_ELEM_LIST_SET = 0x2 | ||
1556 | NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 | ||
1557 | NFTA_SET_ELEM_LIST_SET_ID = 0x4 | ||
1558 | NFT_DATA_VALUE = 0x0 | ||
1559 | NFT_DATA_VERDICT = 0xffffff00 | ||
1560 | NFTA_DATA_UNSPEC = 0x0 | ||
1561 | NFTA_DATA_VALUE = 0x1 | ||
1562 | NFTA_DATA_VERDICT = 0x2 | ||
1563 | NFTA_VERDICT_UNSPEC = 0x0 | ||
1564 | NFTA_VERDICT_CODE = 0x1 | ||
1565 | NFTA_VERDICT_CHAIN = 0x2 | ||
1566 | NFTA_EXPR_UNSPEC = 0x0 | ||
1567 | NFTA_EXPR_NAME = 0x1 | ||
1568 | NFTA_EXPR_DATA = 0x2 | ||
1569 | NFTA_IMMEDIATE_UNSPEC = 0x0 | ||
1570 | NFTA_IMMEDIATE_DREG = 0x1 | ||
1571 | NFTA_IMMEDIATE_DATA = 0x2 | ||
1572 | NFTA_BITWISE_UNSPEC = 0x0 | ||
1573 | NFTA_BITWISE_SREG = 0x1 | ||
1574 | NFTA_BITWISE_DREG = 0x2 | ||
1575 | NFTA_BITWISE_LEN = 0x3 | ||
1576 | NFTA_BITWISE_MASK = 0x4 | ||
1577 | NFTA_BITWISE_XOR = 0x5 | ||
1578 | NFT_BYTEORDER_NTOH = 0x0 | ||
1579 | NFT_BYTEORDER_HTON = 0x1 | ||
1580 | NFTA_BYTEORDER_UNSPEC = 0x0 | ||
1581 | NFTA_BYTEORDER_SREG = 0x1 | ||
1582 | NFTA_BYTEORDER_DREG = 0x2 | ||
1583 | NFTA_BYTEORDER_OP = 0x3 | ||
1584 | NFTA_BYTEORDER_LEN = 0x4 | ||
1585 | NFTA_BYTEORDER_SIZE = 0x5 | ||
1586 | NFT_CMP_EQ = 0x0 | ||
1587 | NFT_CMP_NEQ = 0x1 | ||
1588 | NFT_CMP_LT = 0x2 | ||
1589 | NFT_CMP_LTE = 0x3 | ||
1590 | NFT_CMP_GT = 0x4 | ||
1591 | NFT_CMP_GTE = 0x5 | ||
1592 | NFTA_CMP_UNSPEC = 0x0 | ||
1593 | NFTA_CMP_SREG = 0x1 | ||
1594 | NFTA_CMP_OP = 0x2 | ||
1595 | NFTA_CMP_DATA = 0x3 | ||
1596 | NFT_RANGE_EQ = 0x0 | ||
1597 | NFT_RANGE_NEQ = 0x1 | ||
1598 | NFTA_RANGE_UNSPEC = 0x0 | ||
1599 | NFTA_RANGE_SREG = 0x1 | ||
1600 | NFTA_RANGE_OP = 0x2 | ||
1601 | NFTA_RANGE_FROM_DATA = 0x3 | ||
1602 | NFTA_RANGE_TO_DATA = 0x4 | ||
1603 | NFT_LOOKUP_F_INV = 0x1 | ||
1604 | NFTA_LOOKUP_UNSPEC = 0x0 | ||
1605 | NFTA_LOOKUP_SET = 0x1 | ||
1606 | NFTA_LOOKUP_SREG = 0x2 | ||
1607 | NFTA_LOOKUP_DREG = 0x3 | ||
1608 | NFTA_LOOKUP_SET_ID = 0x4 | ||
1609 | NFTA_LOOKUP_FLAGS = 0x5 | ||
1610 | NFT_DYNSET_OP_ADD = 0x0 | ||
1611 | NFT_DYNSET_OP_UPDATE = 0x1 | ||
1612 | NFT_DYNSET_F_INV = 0x1 | ||
1613 | NFTA_DYNSET_UNSPEC = 0x0 | ||
1614 | NFTA_DYNSET_SET_NAME = 0x1 | ||
1615 | NFTA_DYNSET_SET_ID = 0x2 | ||
1616 | NFTA_DYNSET_OP = 0x3 | ||
1617 | NFTA_DYNSET_SREG_KEY = 0x4 | ||
1618 | NFTA_DYNSET_SREG_DATA = 0x5 | ||
1619 | NFTA_DYNSET_TIMEOUT = 0x6 | ||
1620 | NFTA_DYNSET_EXPR = 0x7 | ||
1621 | NFTA_DYNSET_PAD = 0x8 | ||
1622 | NFTA_DYNSET_FLAGS = 0x9 | ||
1623 | NFT_PAYLOAD_LL_HEADER = 0x0 | ||
1624 | NFT_PAYLOAD_NETWORK_HEADER = 0x1 | ||
1625 | NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 | ||
1626 | NFT_PAYLOAD_CSUM_NONE = 0x0 | ||
1627 | NFT_PAYLOAD_CSUM_INET = 0x1 | ||
1628 | NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 | ||
1629 | NFTA_PAYLOAD_UNSPEC = 0x0 | ||
1630 | NFTA_PAYLOAD_DREG = 0x1 | ||
1631 | NFTA_PAYLOAD_BASE = 0x2 | ||
1632 | NFTA_PAYLOAD_OFFSET = 0x3 | ||
1633 | NFTA_PAYLOAD_LEN = 0x4 | ||
1634 | NFTA_PAYLOAD_SREG = 0x5 | ||
1635 | NFTA_PAYLOAD_CSUM_TYPE = 0x6 | ||
1636 | NFTA_PAYLOAD_CSUM_OFFSET = 0x7 | ||
1637 | NFTA_PAYLOAD_CSUM_FLAGS = 0x8 | ||
1638 | NFT_EXTHDR_F_PRESENT = 0x1 | ||
1639 | NFT_EXTHDR_OP_IPV6 = 0x0 | ||
1640 | NFT_EXTHDR_OP_TCPOPT = 0x1 | ||
1641 | NFTA_EXTHDR_UNSPEC = 0x0 | ||
1642 | NFTA_EXTHDR_DREG = 0x1 | ||
1643 | NFTA_EXTHDR_TYPE = 0x2 | ||
1644 | NFTA_EXTHDR_OFFSET = 0x3 | ||
1645 | NFTA_EXTHDR_LEN = 0x4 | ||
1646 | NFTA_EXTHDR_FLAGS = 0x5 | ||
1647 | NFTA_EXTHDR_OP = 0x6 | ||
1648 | NFTA_EXTHDR_SREG = 0x7 | ||
1649 | NFT_META_LEN = 0x0 | ||
1650 | NFT_META_PROTOCOL = 0x1 | ||
1651 | NFT_META_PRIORITY = 0x2 | ||
1652 | NFT_META_MARK = 0x3 | ||
1653 | NFT_META_IIF = 0x4 | ||
1654 | NFT_META_OIF = 0x5 | ||
1655 | NFT_META_IIFNAME = 0x6 | ||
1656 | NFT_META_OIFNAME = 0x7 | ||
1657 | NFT_META_IIFTYPE = 0x8 | ||
1658 | NFT_META_OIFTYPE = 0x9 | ||
1659 | NFT_META_SKUID = 0xa | ||
1660 | NFT_META_SKGID = 0xb | ||
1661 | NFT_META_NFTRACE = 0xc | ||
1662 | NFT_META_RTCLASSID = 0xd | ||
1663 | NFT_META_SECMARK = 0xe | ||
1664 | NFT_META_NFPROTO = 0xf | ||
1665 | NFT_META_L4PROTO = 0x10 | ||
1666 | NFT_META_BRI_IIFNAME = 0x11 | ||
1667 | NFT_META_BRI_OIFNAME = 0x12 | ||
1668 | NFT_META_PKTTYPE = 0x13 | ||
1669 | NFT_META_CPU = 0x14 | ||
1670 | NFT_META_IIFGROUP = 0x15 | ||
1671 | NFT_META_OIFGROUP = 0x16 | ||
1672 | NFT_META_CGROUP = 0x17 | ||
1673 | NFT_META_PRANDOM = 0x18 | ||
1674 | NFT_RT_CLASSID = 0x0 | ||
1675 | NFT_RT_NEXTHOP4 = 0x1 | ||
1676 | NFT_RT_NEXTHOP6 = 0x2 | ||
1677 | NFT_RT_TCPMSS = 0x3 | ||
1678 | NFT_HASH_JENKINS = 0x0 | ||
1679 | NFT_HASH_SYM = 0x1 | ||
1680 | NFTA_HASH_UNSPEC = 0x0 | ||
1681 | NFTA_HASH_SREG = 0x1 | ||
1682 | NFTA_HASH_DREG = 0x2 | ||
1683 | NFTA_HASH_LEN = 0x3 | ||
1684 | NFTA_HASH_MODULUS = 0x4 | ||
1685 | NFTA_HASH_SEED = 0x5 | ||
1686 | NFTA_HASH_OFFSET = 0x6 | ||
1687 | NFTA_HASH_TYPE = 0x7 | ||
1688 | NFTA_META_UNSPEC = 0x0 | ||
1689 | NFTA_META_DREG = 0x1 | ||
1690 | NFTA_META_KEY = 0x2 | ||
1691 | NFTA_META_SREG = 0x3 | ||
1692 | NFTA_RT_UNSPEC = 0x0 | ||
1693 | NFTA_RT_DREG = 0x1 | ||
1694 | NFTA_RT_KEY = 0x2 | ||
1695 | NFT_CT_STATE = 0x0 | ||
1696 | NFT_CT_DIRECTION = 0x1 | ||
1697 | NFT_CT_STATUS = 0x2 | ||
1698 | NFT_CT_MARK = 0x3 | ||
1699 | NFT_CT_SECMARK = 0x4 | ||
1700 | NFT_CT_EXPIRATION = 0x5 | ||
1701 | NFT_CT_HELPER = 0x6 | ||
1702 | NFT_CT_L3PROTOCOL = 0x7 | ||
1703 | NFT_CT_SRC = 0x8 | ||
1704 | NFT_CT_DST = 0x9 | ||
1705 | NFT_CT_PROTOCOL = 0xa | ||
1706 | NFT_CT_PROTO_SRC = 0xb | ||
1707 | NFT_CT_PROTO_DST = 0xc | ||
1708 | NFT_CT_LABELS = 0xd | ||
1709 | NFT_CT_PKTS = 0xe | ||
1710 | NFT_CT_BYTES = 0xf | ||
1711 | NFT_CT_AVGPKT = 0x10 | ||
1712 | NFT_CT_ZONE = 0x11 | ||
1713 | NFT_CT_EVENTMASK = 0x12 | ||
1714 | NFTA_CT_UNSPEC = 0x0 | ||
1715 | NFTA_CT_DREG = 0x1 | ||
1716 | NFTA_CT_KEY = 0x2 | ||
1717 | NFTA_CT_DIRECTION = 0x3 | ||
1718 | NFTA_CT_SREG = 0x4 | ||
1719 | NFT_LIMIT_PKTS = 0x0 | ||
1720 | NFT_LIMIT_PKT_BYTES = 0x1 | ||
1721 | NFT_LIMIT_F_INV = 0x1 | ||
1722 | NFTA_LIMIT_UNSPEC = 0x0 | ||
1723 | NFTA_LIMIT_RATE = 0x1 | ||
1724 | NFTA_LIMIT_UNIT = 0x2 | ||
1725 | NFTA_LIMIT_BURST = 0x3 | ||
1726 | NFTA_LIMIT_TYPE = 0x4 | ||
1727 | NFTA_LIMIT_FLAGS = 0x5 | ||
1728 | NFTA_LIMIT_PAD = 0x6 | ||
1729 | NFTA_COUNTER_UNSPEC = 0x0 | ||
1730 | NFTA_COUNTER_BYTES = 0x1 | ||
1731 | NFTA_COUNTER_PACKETS = 0x2 | ||
1732 | NFTA_COUNTER_PAD = 0x3 | ||
1733 | NFTA_LOG_UNSPEC = 0x0 | ||
1734 | NFTA_LOG_GROUP = 0x1 | ||
1735 | NFTA_LOG_PREFIX = 0x2 | ||
1736 | NFTA_LOG_SNAPLEN = 0x3 | ||
1737 | NFTA_LOG_QTHRESHOLD = 0x4 | ||
1738 | NFTA_LOG_LEVEL = 0x5 | ||
1739 | NFTA_LOG_FLAGS = 0x6 | ||
1740 | NFTA_QUEUE_UNSPEC = 0x0 | ||
1741 | NFTA_QUEUE_NUM = 0x1 | ||
1742 | NFTA_QUEUE_TOTAL = 0x2 | ||
1743 | NFTA_QUEUE_FLAGS = 0x3 | ||
1744 | NFTA_QUEUE_SREG_QNUM = 0x4 | ||
1745 | NFT_QUOTA_F_INV = 0x1 | ||
1746 | NFT_QUOTA_F_DEPLETED = 0x2 | ||
1747 | NFTA_QUOTA_UNSPEC = 0x0 | ||
1748 | NFTA_QUOTA_BYTES = 0x1 | ||
1749 | NFTA_QUOTA_FLAGS = 0x2 | ||
1750 | NFTA_QUOTA_PAD = 0x3 | ||
1751 | NFTA_QUOTA_CONSUMED = 0x4 | ||
1752 | NFT_REJECT_ICMP_UNREACH = 0x0 | ||
1753 | NFT_REJECT_TCP_RST = 0x1 | ||
1754 | NFT_REJECT_ICMPX_UNREACH = 0x2 | ||
1755 | NFT_REJECT_ICMPX_NO_ROUTE = 0x0 | ||
1756 | NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 | ||
1757 | NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 | ||
1758 | NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 | ||
1759 | NFTA_REJECT_UNSPEC = 0x0 | ||
1760 | NFTA_REJECT_TYPE = 0x1 | ||
1761 | NFTA_REJECT_ICMP_CODE = 0x2 | ||
1762 | NFT_NAT_SNAT = 0x0 | ||
1763 | NFT_NAT_DNAT = 0x1 | ||
1764 | NFTA_NAT_UNSPEC = 0x0 | ||
1765 | NFTA_NAT_TYPE = 0x1 | ||
1766 | NFTA_NAT_FAMILY = 0x2 | ||
1767 | NFTA_NAT_REG_ADDR_MIN = 0x3 | ||
1768 | NFTA_NAT_REG_ADDR_MAX = 0x4 | ||
1769 | NFTA_NAT_REG_PROTO_MIN = 0x5 | ||
1770 | NFTA_NAT_REG_PROTO_MAX = 0x6 | ||
1771 | NFTA_NAT_FLAGS = 0x7 | ||
1772 | NFTA_MASQ_UNSPEC = 0x0 | ||
1773 | NFTA_MASQ_FLAGS = 0x1 | ||
1774 | NFTA_MASQ_REG_PROTO_MIN = 0x2 | ||
1775 | NFTA_MASQ_REG_PROTO_MAX = 0x3 | ||
1776 | NFTA_REDIR_UNSPEC = 0x0 | ||
1777 | NFTA_REDIR_REG_PROTO_MIN = 0x1 | ||
1778 | NFTA_REDIR_REG_PROTO_MAX = 0x2 | ||
1779 | NFTA_REDIR_FLAGS = 0x3 | ||
1780 | NFTA_DUP_UNSPEC = 0x0 | ||
1781 | NFTA_DUP_SREG_ADDR = 0x1 | ||
1782 | NFTA_DUP_SREG_DEV = 0x2 | ||
1783 | NFTA_FWD_UNSPEC = 0x0 | ||
1784 | NFTA_FWD_SREG_DEV = 0x1 | ||
1785 | NFTA_OBJREF_UNSPEC = 0x0 | ||
1786 | NFTA_OBJREF_IMM_TYPE = 0x1 | ||
1787 | NFTA_OBJREF_IMM_NAME = 0x2 | ||
1788 | NFTA_OBJREF_SET_SREG = 0x3 | ||
1789 | NFTA_OBJREF_SET_NAME = 0x4 | ||
1790 | NFTA_OBJREF_SET_ID = 0x5 | ||
1791 | NFTA_GEN_UNSPEC = 0x0 | ||
1792 | NFTA_GEN_ID = 0x1 | ||
1793 | NFTA_GEN_PROC_PID = 0x2 | ||
1794 | NFTA_GEN_PROC_NAME = 0x3 | ||
1795 | NFTA_FIB_UNSPEC = 0x0 | ||
1796 | NFTA_FIB_DREG = 0x1 | ||
1797 | NFTA_FIB_RESULT = 0x2 | ||
1798 | NFTA_FIB_FLAGS = 0x3 | ||
1799 | NFT_FIB_RESULT_UNSPEC = 0x0 | ||
1800 | NFT_FIB_RESULT_OIF = 0x1 | ||
1801 | NFT_FIB_RESULT_OIFNAME = 0x2 | ||
1802 | NFT_FIB_RESULT_ADDRTYPE = 0x3 | ||
1803 | NFTA_FIB_F_SADDR = 0x1 | ||
1804 | NFTA_FIB_F_DADDR = 0x2 | ||
1805 | NFTA_FIB_F_MARK = 0x4 | ||
1806 | NFTA_FIB_F_IIF = 0x8 | ||
1807 | NFTA_FIB_F_OIF = 0x10 | ||
1808 | NFTA_FIB_F_PRESENT = 0x20 | ||
1809 | NFTA_CT_HELPER_UNSPEC = 0x0 | ||
1810 | NFTA_CT_HELPER_NAME = 0x1 | ||
1811 | NFTA_CT_HELPER_L3PROTO = 0x2 | ||
1812 | NFTA_CT_HELPER_L4PROTO = 0x3 | ||
1813 | NFTA_OBJ_UNSPEC = 0x0 | ||
1814 | NFTA_OBJ_TABLE = 0x1 | ||
1815 | NFTA_OBJ_NAME = 0x2 | ||
1816 | NFTA_OBJ_TYPE = 0x3 | ||
1817 | NFTA_OBJ_DATA = 0x4 | ||
1818 | NFTA_OBJ_USE = 0x5 | ||
1819 | NFTA_TRACE_UNSPEC = 0x0 | ||
1820 | NFTA_TRACE_TABLE = 0x1 | ||
1821 | NFTA_TRACE_CHAIN = 0x2 | ||
1822 | NFTA_TRACE_RULE_HANDLE = 0x3 | ||
1823 | NFTA_TRACE_TYPE = 0x4 | ||
1824 | NFTA_TRACE_VERDICT = 0x5 | ||
1825 | NFTA_TRACE_ID = 0x6 | ||
1826 | NFTA_TRACE_LL_HEADER = 0x7 | ||
1827 | NFTA_TRACE_NETWORK_HEADER = 0x8 | ||
1828 | NFTA_TRACE_TRANSPORT_HEADER = 0x9 | ||
1829 | NFTA_TRACE_IIF = 0xa | ||
1830 | NFTA_TRACE_IIFTYPE = 0xb | ||
1831 | NFTA_TRACE_OIF = 0xc | ||
1832 | NFTA_TRACE_OIFTYPE = 0xd | ||
1833 | NFTA_TRACE_MARK = 0xe | ||
1834 | NFTA_TRACE_NFPROTO = 0xf | ||
1835 | NFTA_TRACE_POLICY = 0x10 | ||
1836 | NFTA_TRACE_PAD = 0x11 | ||
1837 | NFT_TRACETYPE_UNSPEC = 0x0 | ||
1838 | NFT_TRACETYPE_POLICY = 0x1 | ||
1839 | NFT_TRACETYPE_RETURN = 0x2 | ||
1840 | NFT_TRACETYPE_RULE = 0x3 | ||
1841 | NFTA_NG_UNSPEC = 0x0 | ||
1842 | NFTA_NG_DREG = 0x1 | ||
1843 | NFTA_NG_MODULUS = 0x2 | ||
1844 | NFTA_NG_TYPE = 0x3 | ||
1845 | NFTA_NG_OFFSET = 0x4 | ||
1846 | NFT_NG_INCREMENTAL = 0x0 | ||
1847 | NFT_NG_RANDOM = 0x1 | ||
1848 | ) | ||
1849 | |||
1850 | type RTCTime struct { | ||
1851 | Sec int32 | ||
1852 | Min int32 | ||
1853 | Hour int32 | ||
1854 | Mday int32 | ||
1855 | Mon int32 | ||
1856 | Year int32 | ||
1857 | Wday int32 | ||
1858 | Yday int32 | ||
1859 | Isdst int32 | ||
1860 | } | ||
1861 | |||
1862 | type RTCWkAlrm struct { | ||
1863 | Enabled uint8 | ||
1864 | Pending uint8 | ||
1865 | _ [2]byte | ||
1866 | Time RTCTime | ||
1867 | } | ||
1868 | |||
1869 | type RTCPLLInfo struct { | ||
1870 | Ctrl int32 | ||
1871 | Value int32 | ||
1872 | Max int32 | ||
1873 | Min int32 | ||
1874 | Posmult int32 | ||
1875 | Negmult int32 | ||
1876 | Clock int64 | ||
1877 | } | ||
1878 | |||
1879 | type BlkpgIoctlArg struct { | ||
1880 | Op int32 | ||
1881 | Flags int32 | ||
1882 | Datalen int32 | ||
1883 | _ [4]byte | ||
1884 | Data *byte | ||
1885 | } | ||
1886 | |||
1887 | type BlkpgPartition struct { | ||
1888 | Start int64 | ||
1889 | Length int64 | ||
1890 | Pno int32 | ||
1891 | Devname [64]uint8 | ||
1892 | Volname [64]uint8 | ||
1893 | _ [4]byte | ||
1894 | } | ||
1895 | |||
1896 | const ( | ||
1897 | BLKPG = 0x1269 | ||
1898 | BLKPG_ADD_PARTITION = 0x1 | ||
1899 | BLKPG_DEL_PARTITION = 0x2 | ||
1900 | BLKPG_RESIZE_PARTITION = 0x3 | ||
1901 | ) | ||
1902 | |||
1903 | const ( | ||
1904 | NETNSA_NONE = 0x0 | ||
1905 | NETNSA_NSID = 0x1 | ||
1906 | NETNSA_PID = 0x2 | ||
1907 | NETNSA_FD = 0x3 | ||
1908 | ) | ||
1909 | |||
1910 | type XDPRingOffset struct { | ||
1911 | Producer uint64 | ||
1912 | Consumer uint64 | ||
1913 | Desc uint64 | ||
1914 | } | ||
1915 | |||
1916 | type XDPMmapOffsets struct { | ||
1917 | Rx XDPRingOffset | ||
1918 | Tx XDPRingOffset | ||
1919 | Fr XDPRingOffset | ||
1920 | Cr XDPRingOffset | ||
1921 | } | ||
1922 | |||
1923 | type XDPUmemReg struct { | ||
1924 | Addr uint64 | ||
1925 | Len uint64 | ||
1926 | Size uint32 | ||
1927 | Headroom uint32 | ||
1928 | } | ||
1929 | |||
1930 | type XDPStatistics struct { | ||
1931 | Rx_dropped uint64 | ||
1932 | Rx_invalid_descs uint64 | ||
1933 | Tx_invalid_descs uint64 | ||
1934 | } | ||
1935 | |||
1936 | type XDPDesc struct { | ||
1937 | Addr uint64 | ||
1938 | Len uint32 | ||
1939 | Options uint32 | ||
1940 | } | ||
1941 | |||
1942 | const ( | ||
1943 | NCSI_CMD_UNSPEC = 0x0 | ||
1944 | NCSI_CMD_PKG_INFO = 0x1 | ||
1945 | NCSI_CMD_SET_INTERFACE = 0x2 | ||
1946 | NCSI_CMD_CLEAR_INTERFACE = 0x3 | ||
1947 | NCSI_ATTR_UNSPEC = 0x0 | ||
1948 | NCSI_ATTR_IFINDEX = 0x1 | ||
1949 | NCSI_ATTR_PACKAGE_LIST = 0x2 | ||
1950 | NCSI_ATTR_PACKAGE_ID = 0x3 | ||
1951 | NCSI_ATTR_CHANNEL_ID = 0x4 | ||
1952 | NCSI_PKG_ATTR_UNSPEC = 0x0 | ||
1953 | NCSI_PKG_ATTR = 0x1 | ||
1954 | NCSI_PKG_ATTR_ID = 0x2 | ||
1955 | NCSI_PKG_ATTR_FORCED = 0x3 | ||
1956 | NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 | ||
1957 | NCSI_CHANNEL_ATTR_UNSPEC = 0x0 | ||
1958 | NCSI_CHANNEL_ATTR = 0x1 | ||
1959 | NCSI_CHANNEL_ATTR_ID = 0x2 | ||
1960 | NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 | ||
1961 | NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 | ||
1962 | NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 | ||
1963 | NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 | ||
1964 | NCSI_CHANNEL_ATTR_ACTIVE = 0x7 | ||
1965 | NCSI_CHANNEL_ATTR_FORCED = 0x8 | ||
1966 | NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 | ||
1967 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa | ||
1968 | ) | ||
1969 | |||
1970 | const ( | ||
1971 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 | ||
1972 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 | ||
1973 | SOF_TIMESTAMPING_RX_HARDWARE = 0x4 | ||
1974 | SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 | ||
1975 | SOF_TIMESTAMPING_SOFTWARE = 0x10 | ||
1976 | SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 | ||
1977 | SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 | ||
1978 | SOF_TIMESTAMPING_OPT_ID = 0x80 | ||
1979 | SOF_TIMESTAMPING_TX_SCHED = 0x100 | ||
1980 | SOF_TIMESTAMPING_TX_ACK = 0x200 | ||
1981 | SOF_TIMESTAMPING_OPT_CMSG = 0x400 | ||
1982 | SOF_TIMESTAMPING_OPT_TSONLY = 0x800 | ||
1983 | SOF_TIMESTAMPING_OPT_STATS = 0x1000 | ||
1984 | SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 | ||
1985 | SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 | ||
1986 | |||
1987 | SOF_TIMESTAMPING_LAST = 0x4000 | ||
1988 | SOF_TIMESTAMPING_MASK = 0x7fff | ||
1989 | ) | ||