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