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