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