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