Elia Battiston | be9edc1 | 2022-03-09 11:35:58 +0100 | [diff] [blame^] | 1 | // Code generated by mkmerge.go; DO NOT EDIT. |
| 2 | |
| 3 | //go:build linux |
| 4 | // +build linux |
| 5 | |
| 6 | package unix |
| 7 | |
| 8 | const ( |
| 9 | SizeofShort = 0x2 |
| 10 | SizeofInt = 0x4 |
| 11 | SizeofLongLong = 0x8 |
| 12 | PathMax = 0x1000 |
| 13 | ) |
| 14 | |
| 15 | type ( |
| 16 | _C_short int16 |
| 17 | _C_int int32 |
| 18 | |
| 19 | _C_long_long int64 |
| 20 | ) |
| 21 | |
| 22 | type ItimerSpec struct { |
| 23 | Interval Timespec |
| 24 | Value Timespec |
| 25 | } |
| 26 | |
| 27 | const ( |
| 28 | TIME_OK = 0x0 |
| 29 | TIME_INS = 0x1 |
| 30 | TIME_DEL = 0x2 |
| 31 | TIME_OOP = 0x3 |
| 32 | TIME_WAIT = 0x4 |
| 33 | TIME_ERROR = 0x5 |
| 34 | TIME_BAD = 0x5 |
| 35 | ) |
| 36 | |
| 37 | type Rlimit struct { |
| 38 | Cur uint64 |
| 39 | Max uint64 |
| 40 | } |
| 41 | |
| 42 | type _Gid_t uint32 |
| 43 | |
| 44 | type StatxTimestamp struct { |
| 45 | Sec int64 |
| 46 | Nsec uint32 |
| 47 | _ int32 |
| 48 | } |
| 49 | |
| 50 | type Statx_t struct { |
| 51 | Mask uint32 |
| 52 | Blksize uint32 |
| 53 | Attributes uint64 |
| 54 | Nlink uint32 |
| 55 | Uid uint32 |
| 56 | Gid uint32 |
| 57 | Mode uint16 |
| 58 | _ [1]uint16 |
| 59 | Ino uint64 |
| 60 | Size uint64 |
| 61 | Blocks uint64 |
| 62 | Attributes_mask uint64 |
| 63 | Atime StatxTimestamp |
| 64 | Btime StatxTimestamp |
| 65 | Ctime StatxTimestamp |
| 66 | Mtime StatxTimestamp |
| 67 | Rdev_major uint32 |
| 68 | Rdev_minor uint32 |
| 69 | Dev_major uint32 |
| 70 | Dev_minor uint32 |
| 71 | Mnt_id uint64 |
| 72 | _ uint64 |
| 73 | _ [12]uint64 |
| 74 | } |
| 75 | |
| 76 | type Fsid struct { |
| 77 | Val [2]int32 |
| 78 | } |
| 79 | |
| 80 | type FileCloneRange struct { |
| 81 | Src_fd int64 |
| 82 | Src_offset uint64 |
| 83 | Src_length uint64 |
| 84 | Dest_offset uint64 |
| 85 | } |
| 86 | |
| 87 | type RawFileDedupeRange struct { |
| 88 | Src_offset uint64 |
| 89 | Src_length uint64 |
| 90 | Dest_count uint16 |
| 91 | Reserved1 uint16 |
| 92 | Reserved2 uint32 |
| 93 | } |
| 94 | |
| 95 | type RawFileDedupeRangeInfo struct { |
| 96 | Dest_fd int64 |
| 97 | Dest_offset uint64 |
| 98 | Bytes_deduped uint64 |
| 99 | Status int32 |
| 100 | Reserved uint32 |
| 101 | } |
| 102 | |
| 103 | const ( |
| 104 | SizeofRawFileDedupeRange = 0x18 |
| 105 | SizeofRawFileDedupeRangeInfo = 0x20 |
| 106 | FILE_DEDUPE_RANGE_SAME = 0x0 |
| 107 | FILE_DEDUPE_RANGE_DIFFERS = 0x1 |
| 108 | ) |
| 109 | |
| 110 | type FscryptPolicy struct { |
| 111 | Version uint8 |
| 112 | Contents_encryption_mode uint8 |
| 113 | Filenames_encryption_mode uint8 |
| 114 | Flags uint8 |
| 115 | Master_key_descriptor [8]uint8 |
| 116 | } |
| 117 | |
| 118 | type FscryptKey struct { |
| 119 | Mode uint32 |
| 120 | Raw [64]uint8 |
| 121 | Size uint32 |
| 122 | } |
| 123 | |
| 124 | type FscryptPolicyV1 struct { |
| 125 | Version uint8 |
| 126 | Contents_encryption_mode uint8 |
| 127 | Filenames_encryption_mode uint8 |
| 128 | Flags uint8 |
| 129 | Master_key_descriptor [8]uint8 |
| 130 | } |
| 131 | |
| 132 | type FscryptPolicyV2 struct { |
| 133 | Version uint8 |
| 134 | Contents_encryption_mode uint8 |
| 135 | Filenames_encryption_mode uint8 |
| 136 | Flags uint8 |
| 137 | _ [4]uint8 |
| 138 | Master_key_identifier [16]uint8 |
| 139 | } |
| 140 | |
| 141 | type FscryptGetPolicyExArg struct { |
| 142 | Size uint64 |
| 143 | Policy [24]byte |
| 144 | } |
| 145 | |
| 146 | type FscryptKeySpecifier struct { |
| 147 | Type uint32 |
| 148 | _ uint32 |
| 149 | U [32]byte |
| 150 | } |
| 151 | |
| 152 | type FscryptAddKeyArg struct { |
| 153 | Key_spec FscryptKeySpecifier |
| 154 | Raw_size uint32 |
| 155 | Key_id uint32 |
| 156 | _ [8]uint32 |
| 157 | } |
| 158 | |
| 159 | type FscryptRemoveKeyArg struct { |
| 160 | Key_spec FscryptKeySpecifier |
| 161 | Removal_status_flags uint32 |
| 162 | _ [5]uint32 |
| 163 | } |
| 164 | |
| 165 | type FscryptGetKeyStatusArg struct { |
| 166 | Key_spec FscryptKeySpecifier |
| 167 | _ [6]uint32 |
| 168 | Status uint32 |
| 169 | Status_flags uint32 |
| 170 | User_count uint32 |
| 171 | _ [13]uint32 |
| 172 | } |
| 173 | |
| 174 | type DmIoctl struct { |
| 175 | Version [3]uint32 |
| 176 | Data_size uint32 |
| 177 | Data_start uint32 |
| 178 | Target_count uint32 |
| 179 | Open_count int32 |
| 180 | Flags uint32 |
| 181 | Event_nr uint32 |
| 182 | _ uint32 |
| 183 | Dev uint64 |
| 184 | Name [128]byte |
| 185 | Uuid [129]byte |
| 186 | Data [7]byte |
| 187 | } |
| 188 | |
| 189 | type DmTargetSpec struct { |
| 190 | Sector_start uint64 |
| 191 | Length uint64 |
| 192 | Status int32 |
| 193 | Next uint32 |
| 194 | Target_type [16]byte |
| 195 | } |
| 196 | |
| 197 | type DmTargetDeps struct { |
| 198 | Count uint32 |
| 199 | _ uint32 |
| 200 | } |
| 201 | |
| 202 | type DmTargetVersions struct { |
| 203 | Next uint32 |
| 204 | Version [3]uint32 |
| 205 | } |
| 206 | |
| 207 | type DmTargetMsg struct { |
| 208 | Sector uint64 |
| 209 | } |
| 210 | |
| 211 | const ( |
| 212 | SizeofDmIoctl = 0x138 |
| 213 | SizeofDmTargetSpec = 0x28 |
| 214 | ) |
| 215 | |
| 216 | type KeyctlDHParams struct { |
| 217 | Private int32 |
| 218 | Prime int32 |
| 219 | Base int32 |
| 220 | } |
| 221 | |
| 222 | const ( |
| 223 | FADV_NORMAL = 0x0 |
| 224 | FADV_RANDOM = 0x1 |
| 225 | FADV_SEQUENTIAL = 0x2 |
| 226 | FADV_WILLNEED = 0x3 |
| 227 | ) |
| 228 | |
| 229 | type RawSockaddrInet4 struct { |
| 230 | Family uint16 |
| 231 | Port uint16 |
| 232 | Addr [4]byte /* in_addr */ |
| 233 | Zero [8]uint8 |
| 234 | } |
| 235 | |
| 236 | type RawSockaddrInet6 struct { |
| 237 | Family uint16 |
| 238 | Port uint16 |
| 239 | Flowinfo uint32 |
| 240 | Addr [16]byte /* in6_addr */ |
| 241 | Scope_id uint32 |
| 242 | } |
| 243 | |
| 244 | type RawSockaddrUnix struct { |
| 245 | Family uint16 |
| 246 | Path [108]int8 |
| 247 | } |
| 248 | |
| 249 | type RawSockaddrLinklayer struct { |
| 250 | Family uint16 |
| 251 | Protocol uint16 |
| 252 | Ifindex int32 |
| 253 | Hatype uint16 |
| 254 | Pkttype uint8 |
| 255 | Halen uint8 |
| 256 | Addr [8]uint8 |
| 257 | } |
| 258 | |
| 259 | type RawSockaddrNetlink struct { |
| 260 | Family uint16 |
| 261 | Pad uint16 |
| 262 | Pid uint32 |
| 263 | Groups uint32 |
| 264 | } |
| 265 | |
| 266 | type RawSockaddrHCI struct { |
| 267 | Family uint16 |
| 268 | Dev uint16 |
| 269 | Channel uint16 |
| 270 | } |
| 271 | |
| 272 | type RawSockaddrL2 struct { |
| 273 | Family uint16 |
| 274 | Psm uint16 |
| 275 | Bdaddr [6]uint8 |
| 276 | Cid uint16 |
| 277 | Bdaddr_type uint8 |
| 278 | _ [1]byte |
| 279 | } |
| 280 | |
| 281 | type RawSockaddrRFCOMM struct { |
| 282 | Family uint16 |
| 283 | Bdaddr [6]uint8 |
| 284 | Channel uint8 |
| 285 | _ [1]byte |
| 286 | } |
| 287 | |
| 288 | type RawSockaddrCAN struct { |
| 289 | Family uint16 |
| 290 | Ifindex int32 |
| 291 | Addr [16]byte |
| 292 | } |
| 293 | |
| 294 | type RawSockaddrALG struct { |
| 295 | Family uint16 |
| 296 | Type [14]uint8 |
| 297 | Feat uint32 |
| 298 | Mask uint32 |
| 299 | Name [64]uint8 |
| 300 | } |
| 301 | |
| 302 | type RawSockaddrVM struct { |
| 303 | Family uint16 |
| 304 | Reserved1 uint16 |
| 305 | Port uint32 |
| 306 | Cid uint32 |
| 307 | Flags uint8 |
| 308 | Zero [3]uint8 |
| 309 | } |
| 310 | |
| 311 | type RawSockaddrXDP struct { |
| 312 | Family uint16 |
| 313 | Flags uint16 |
| 314 | Ifindex uint32 |
| 315 | Queue_id uint32 |
| 316 | Shared_umem_fd uint32 |
| 317 | } |
| 318 | |
| 319 | type RawSockaddrPPPoX [0x1e]byte |
| 320 | |
| 321 | type RawSockaddrTIPC struct { |
| 322 | Family uint16 |
| 323 | Addrtype uint8 |
| 324 | Scope int8 |
| 325 | Addr [12]byte |
| 326 | } |
| 327 | |
| 328 | type RawSockaddrL2TPIP struct { |
| 329 | Family uint16 |
| 330 | Unused uint16 |
| 331 | Addr [4]byte /* in_addr */ |
| 332 | Conn_id uint32 |
| 333 | _ [4]uint8 |
| 334 | } |
| 335 | |
| 336 | type RawSockaddrL2TPIP6 struct { |
| 337 | Family uint16 |
| 338 | Unused uint16 |
| 339 | Flowinfo uint32 |
| 340 | Addr [16]byte /* in6_addr */ |
| 341 | Scope_id uint32 |
| 342 | Conn_id uint32 |
| 343 | } |
| 344 | |
| 345 | type RawSockaddrIUCV struct { |
| 346 | Family uint16 |
| 347 | Port uint16 |
| 348 | Addr uint32 |
| 349 | Nodeid [8]int8 |
| 350 | User_id [8]int8 |
| 351 | Name [8]int8 |
| 352 | } |
| 353 | |
| 354 | type RawSockaddrNFC struct { |
| 355 | Sa_family uint16 |
| 356 | Dev_idx uint32 |
| 357 | Target_idx uint32 |
| 358 | Nfc_protocol uint32 |
| 359 | } |
| 360 | |
| 361 | type _Socklen uint32 |
| 362 | |
| 363 | type Linger struct { |
| 364 | Onoff int32 |
| 365 | Linger int32 |
| 366 | } |
| 367 | |
| 368 | type IPMreq struct { |
| 369 | Multiaddr [4]byte /* in_addr */ |
| 370 | Interface [4]byte /* in_addr */ |
| 371 | } |
| 372 | |
| 373 | type IPMreqn struct { |
| 374 | Multiaddr [4]byte /* in_addr */ |
| 375 | Address [4]byte /* in_addr */ |
| 376 | Ifindex int32 |
| 377 | } |
| 378 | |
| 379 | type IPv6Mreq struct { |
| 380 | Multiaddr [16]byte /* in6_addr */ |
| 381 | Interface uint32 |
| 382 | } |
| 383 | |
| 384 | type PacketMreq struct { |
| 385 | Ifindex int32 |
| 386 | Type uint16 |
| 387 | Alen uint16 |
| 388 | Address [8]uint8 |
| 389 | } |
| 390 | |
| 391 | type Inet4Pktinfo struct { |
| 392 | Ifindex int32 |
| 393 | Spec_dst [4]byte /* in_addr */ |
| 394 | Addr [4]byte /* in_addr */ |
| 395 | } |
| 396 | |
| 397 | type Inet6Pktinfo struct { |
| 398 | Addr [16]byte /* in6_addr */ |
| 399 | Ifindex uint32 |
| 400 | } |
| 401 | |
| 402 | type IPv6MTUInfo struct { |
| 403 | Addr RawSockaddrInet6 |
| 404 | Mtu uint32 |
| 405 | } |
| 406 | |
| 407 | type ICMPv6Filter struct { |
| 408 | Data [8]uint32 |
| 409 | } |
| 410 | |
| 411 | type Ucred struct { |
| 412 | Pid int32 |
| 413 | Uid uint32 |
| 414 | Gid uint32 |
| 415 | } |
| 416 | |
| 417 | type TCPInfo struct { |
| 418 | State uint8 |
| 419 | Ca_state uint8 |
| 420 | Retransmits uint8 |
| 421 | Probes uint8 |
| 422 | Backoff uint8 |
| 423 | Options uint8 |
| 424 | Rto uint32 |
| 425 | Ato uint32 |
| 426 | Snd_mss uint32 |
| 427 | Rcv_mss uint32 |
| 428 | Unacked uint32 |
| 429 | Sacked uint32 |
| 430 | Lost uint32 |
| 431 | Retrans uint32 |
| 432 | Fackets uint32 |
| 433 | Last_data_sent uint32 |
| 434 | Last_ack_sent uint32 |
| 435 | Last_data_recv uint32 |
| 436 | Last_ack_recv uint32 |
| 437 | Pmtu uint32 |
| 438 | Rcv_ssthresh uint32 |
| 439 | Rtt uint32 |
| 440 | Rttvar uint32 |
| 441 | Snd_ssthresh uint32 |
| 442 | Snd_cwnd uint32 |
| 443 | Advmss uint32 |
| 444 | Reordering uint32 |
| 445 | Rcv_rtt uint32 |
| 446 | Rcv_space uint32 |
| 447 | Total_retrans uint32 |
| 448 | } |
| 449 | |
| 450 | type CanFilter struct { |
| 451 | Id uint32 |
| 452 | Mask uint32 |
| 453 | } |
| 454 | |
| 455 | const ( |
| 456 | SizeofSockaddrInet4 = 0x10 |
| 457 | SizeofSockaddrInet6 = 0x1c |
| 458 | SizeofSockaddrAny = 0x70 |
| 459 | SizeofSockaddrUnix = 0x6e |
| 460 | SizeofSockaddrLinklayer = 0x14 |
| 461 | SizeofSockaddrNetlink = 0xc |
| 462 | SizeofSockaddrHCI = 0x6 |
| 463 | SizeofSockaddrL2 = 0xe |
| 464 | SizeofSockaddrRFCOMM = 0xa |
| 465 | SizeofSockaddrCAN = 0x18 |
| 466 | SizeofSockaddrALG = 0x58 |
| 467 | SizeofSockaddrVM = 0x10 |
| 468 | SizeofSockaddrXDP = 0x10 |
| 469 | SizeofSockaddrPPPoX = 0x1e |
| 470 | SizeofSockaddrTIPC = 0x10 |
| 471 | SizeofSockaddrL2TPIP = 0x10 |
| 472 | SizeofSockaddrL2TPIP6 = 0x20 |
| 473 | SizeofSockaddrIUCV = 0x20 |
| 474 | SizeofSockaddrNFC = 0x10 |
| 475 | SizeofLinger = 0x8 |
| 476 | SizeofIPMreq = 0x8 |
| 477 | SizeofIPMreqn = 0xc |
| 478 | SizeofIPv6Mreq = 0x14 |
| 479 | SizeofPacketMreq = 0x10 |
| 480 | SizeofInet4Pktinfo = 0xc |
| 481 | SizeofInet6Pktinfo = 0x14 |
| 482 | SizeofIPv6MTUInfo = 0x20 |
| 483 | SizeofICMPv6Filter = 0x20 |
| 484 | SizeofUcred = 0xc |
| 485 | SizeofTCPInfo = 0x68 |
| 486 | SizeofCanFilter = 0x8 |
| 487 | ) |
| 488 | |
| 489 | const ( |
| 490 | NDA_UNSPEC = 0x0 |
| 491 | NDA_DST = 0x1 |
| 492 | NDA_LLADDR = 0x2 |
| 493 | NDA_CACHEINFO = 0x3 |
| 494 | NDA_PROBES = 0x4 |
| 495 | NDA_VLAN = 0x5 |
| 496 | NDA_PORT = 0x6 |
| 497 | NDA_VNI = 0x7 |
| 498 | NDA_IFINDEX = 0x8 |
| 499 | NDA_MASTER = 0x9 |
| 500 | NDA_LINK_NETNSID = 0xa |
| 501 | NDA_SRC_VNI = 0xb |
| 502 | NTF_USE = 0x1 |
| 503 | NTF_SELF = 0x2 |
| 504 | NTF_MASTER = 0x4 |
| 505 | NTF_PROXY = 0x8 |
| 506 | NTF_EXT_LEARNED = 0x10 |
| 507 | NTF_OFFLOADED = 0x20 |
| 508 | NTF_ROUTER = 0x80 |
| 509 | NUD_INCOMPLETE = 0x1 |
| 510 | NUD_REACHABLE = 0x2 |
| 511 | NUD_STALE = 0x4 |
| 512 | NUD_DELAY = 0x8 |
| 513 | NUD_PROBE = 0x10 |
| 514 | NUD_FAILED = 0x20 |
| 515 | NUD_NOARP = 0x40 |
| 516 | NUD_PERMANENT = 0x80 |
| 517 | NUD_NONE = 0x0 |
| 518 | IFA_UNSPEC = 0x0 |
| 519 | IFA_ADDRESS = 0x1 |
| 520 | IFA_LOCAL = 0x2 |
| 521 | IFA_LABEL = 0x3 |
| 522 | IFA_BROADCAST = 0x4 |
| 523 | IFA_ANYCAST = 0x5 |
| 524 | IFA_CACHEINFO = 0x6 |
| 525 | IFA_MULTICAST = 0x7 |
| 526 | IFA_FLAGS = 0x8 |
| 527 | IFA_RT_PRIORITY = 0x9 |
| 528 | IFA_TARGET_NETNSID = 0xa |
| 529 | RT_SCOPE_UNIVERSE = 0x0 |
| 530 | RT_SCOPE_SITE = 0xc8 |
| 531 | RT_SCOPE_LINK = 0xfd |
| 532 | RT_SCOPE_HOST = 0xfe |
| 533 | RT_SCOPE_NOWHERE = 0xff |
| 534 | RT_TABLE_UNSPEC = 0x0 |
| 535 | RT_TABLE_COMPAT = 0xfc |
| 536 | RT_TABLE_DEFAULT = 0xfd |
| 537 | RT_TABLE_MAIN = 0xfe |
| 538 | RT_TABLE_LOCAL = 0xff |
| 539 | RT_TABLE_MAX = 0xffffffff |
| 540 | RTA_UNSPEC = 0x0 |
| 541 | RTA_DST = 0x1 |
| 542 | RTA_SRC = 0x2 |
| 543 | RTA_IIF = 0x3 |
| 544 | RTA_OIF = 0x4 |
| 545 | RTA_GATEWAY = 0x5 |
| 546 | RTA_PRIORITY = 0x6 |
| 547 | RTA_PREFSRC = 0x7 |
| 548 | RTA_METRICS = 0x8 |
| 549 | RTA_MULTIPATH = 0x9 |
| 550 | RTA_FLOW = 0xb |
| 551 | RTA_CACHEINFO = 0xc |
| 552 | RTA_TABLE = 0xf |
| 553 | RTA_MARK = 0x10 |
| 554 | RTA_MFC_STATS = 0x11 |
| 555 | RTA_VIA = 0x12 |
| 556 | RTA_NEWDST = 0x13 |
| 557 | RTA_PREF = 0x14 |
| 558 | RTA_ENCAP_TYPE = 0x15 |
| 559 | RTA_ENCAP = 0x16 |
| 560 | RTA_EXPIRES = 0x17 |
| 561 | RTA_PAD = 0x18 |
| 562 | RTA_UID = 0x19 |
| 563 | RTA_TTL_PROPAGATE = 0x1a |
| 564 | RTA_IP_PROTO = 0x1b |
| 565 | RTA_SPORT = 0x1c |
| 566 | RTA_DPORT = 0x1d |
| 567 | RTN_UNSPEC = 0x0 |
| 568 | RTN_UNICAST = 0x1 |
| 569 | RTN_LOCAL = 0x2 |
| 570 | RTN_BROADCAST = 0x3 |
| 571 | RTN_ANYCAST = 0x4 |
| 572 | RTN_MULTICAST = 0x5 |
| 573 | RTN_BLACKHOLE = 0x6 |
| 574 | RTN_UNREACHABLE = 0x7 |
| 575 | RTN_PROHIBIT = 0x8 |
| 576 | RTN_THROW = 0x9 |
| 577 | RTN_NAT = 0xa |
| 578 | RTN_XRESOLVE = 0xb |
| 579 | SizeofNlMsghdr = 0x10 |
| 580 | SizeofNlMsgerr = 0x14 |
| 581 | SizeofRtGenmsg = 0x1 |
| 582 | SizeofNlAttr = 0x4 |
| 583 | SizeofRtAttr = 0x4 |
| 584 | SizeofIfInfomsg = 0x10 |
| 585 | SizeofIfAddrmsg = 0x8 |
| 586 | SizeofIfaCacheinfo = 0x10 |
| 587 | SizeofRtMsg = 0xc |
| 588 | SizeofRtNexthop = 0x8 |
| 589 | SizeofNdUseroptmsg = 0x10 |
| 590 | SizeofNdMsg = 0xc |
| 591 | ) |
| 592 | |
| 593 | type NlMsghdr struct { |
| 594 | Len uint32 |
| 595 | Type uint16 |
| 596 | Flags uint16 |
| 597 | Seq uint32 |
| 598 | Pid uint32 |
| 599 | } |
| 600 | |
| 601 | type NlMsgerr struct { |
| 602 | Error int32 |
| 603 | Msg NlMsghdr |
| 604 | } |
| 605 | |
| 606 | type RtGenmsg struct { |
| 607 | Family uint8 |
| 608 | } |
| 609 | |
| 610 | type NlAttr struct { |
| 611 | Len uint16 |
| 612 | Type uint16 |
| 613 | } |
| 614 | |
| 615 | type RtAttr struct { |
| 616 | Len uint16 |
| 617 | Type uint16 |
| 618 | } |
| 619 | |
| 620 | type IfInfomsg struct { |
| 621 | Family uint8 |
| 622 | _ uint8 |
| 623 | Type uint16 |
| 624 | Index int32 |
| 625 | Flags uint32 |
| 626 | Change uint32 |
| 627 | } |
| 628 | |
| 629 | type IfAddrmsg struct { |
| 630 | Family uint8 |
| 631 | Prefixlen uint8 |
| 632 | Flags uint8 |
| 633 | Scope uint8 |
| 634 | Index uint32 |
| 635 | } |
| 636 | |
| 637 | type IfaCacheinfo struct { |
| 638 | Prefered uint32 |
| 639 | Valid uint32 |
| 640 | Cstamp uint32 |
| 641 | Tstamp uint32 |
| 642 | } |
| 643 | |
| 644 | type RtMsg struct { |
| 645 | Family uint8 |
| 646 | Dst_len uint8 |
| 647 | Src_len uint8 |
| 648 | Tos uint8 |
| 649 | Table uint8 |
| 650 | Protocol uint8 |
| 651 | Scope uint8 |
| 652 | Type uint8 |
| 653 | Flags uint32 |
| 654 | } |
| 655 | |
| 656 | type RtNexthop struct { |
| 657 | Len uint16 |
| 658 | Flags uint8 |
| 659 | Hops uint8 |
| 660 | Ifindex int32 |
| 661 | } |
| 662 | |
| 663 | type NdUseroptmsg struct { |
| 664 | Family uint8 |
| 665 | Pad1 uint8 |
| 666 | Opts_len uint16 |
| 667 | Ifindex int32 |
| 668 | Icmp_type uint8 |
| 669 | Icmp_code uint8 |
| 670 | Pad2 uint16 |
| 671 | Pad3 uint32 |
| 672 | } |
| 673 | |
| 674 | type NdMsg struct { |
| 675 | Family uint8 |
| 676 | Pad1 uint8 |
| 677 | Pad2 uint16 |
| 678 | Ifindex int32 |
| 679 | State uint16 |
| 680 | Flags uint8 |
| 681 | Type uint8 |
| 682 | } |
| 683 | |
| 684 | const ( |
| 685 | SizeofSockFilter = 0x8 |
| 686 | ) |
| 687 | |
| 688 | type SockFilter struct { |
| 689 | Code uint16 |
| 690 | Jt uint8 |
| 691 | Jf uint8 |
| 692 | K uint32 |
| 693 | } |
| 694 | |
| 695 | type SockFprog struct { |
| 696 | Len uint16 |
| 697 | Filter *SockFilter |
| 698 | } |
| 699 | |
| 700 | type InotifyEvent struct { |
| 701 | Wd int32 |
| 702 | Mask uint32 |
| 703 | Cookie uint32 |
| 704 | Len uint32 |
| 705 | } |
| 706 | |
| 707 | const SizeofInotifyEvent = 0x10 |
| 708 | |
| 709 | const SI_LOAD_SHIFT = 0x10 |
| 710 | |
| 711 | type Utsname struct { |
| 712 | Sysname [65]byte |
| 713 | Nodename [65]byte |
| 714 | Release [65]byte |
| 715 | Version [65]byte |
| 716 | Machine [65]byte |
| 717 | Domainname [65]byte |
| 718 | } |
| 719 | |
| 720 | const ( |
| 721 | AT_EMPTY_PATH = 0x1000 |
| 722 | AT_FDCWD = -0x64 |
| 723 | AT_NO_AUTOMOUNT = 0x800 |
| 724 | AT_REMOVEDIR = 0x200 |
| 725 | |
| 726 | AT_STATX_SYNC_AS_STAT = 0x0 |
| 727 | AT_STATX_FORCE_SYNC = 0x2000 |
| 728 | AT_STATX_DONT_SYNC = 0x4000 |
| 729 | |
| 730 | AT_SYMLINK_FOLLOW = 0x400 |
| 731 | AT_SYMLINK_NOFOLLOW = 0x100 |
| 732 | |
| 733 | AT_EACCESS = 0x200 |
| 734 | ) |
| 735 | |
| 736 | type OpenHow struct { |
| 737 | Flags uint64 |
| 738 | Mode uint64 |
| 739 | Resolve uint64 |
| 740 | } |
| 741 | |
| 742 | const SizeofOpenHow = 0x18 |
| 743 | |
| 744 | const ( |
| 745 | RESOLVE_BENEATH = 0x8 |
| 746 | RESOLVE_IN_ROOT = 0x10 |
| 747 | RESOLVE_NO_MAGICLINKS = 0x2 |
| 748 | RESOLVE_NO_SYMLINKS = 0x4 |
| 749 | RESOLVE_NO_XDEV = 0x1 |
| 750 | ) |
| 751 | |
| 752 | type PollFd struct { |
| 753 | Fd int32 |
| 754 | Events int16 |
| 755 | Revents int16 |
| 756 | } |
| 757 | |
| 758 | const ( |
| 759 | POLLIN = 0x1 |
| 760 | POLLPRI = 0x2 |
| 761 | POLLOUT = 0x4 |
| 762 | POLLERR = 0x8 |
| 763 | POLLHUP = 0x10 |
| 764 | POLLNVAL = 0x20 |
| 765 | ) |
| 766 | |
| 767 | type SignalfdSiginfo struct { |
| 768 | Signo uint32 |
| 769 | Errno int32 |
| 770 | Code int32 |
| 771 | Pid uint32 |
| 772 | Uid uint32 |
| 773 | Fd int32 |
| 774 | Tid uint32 |
| 775 | Band uint32 |
| 776 | Overrun uint32 |
| 777 | Trapno uint32 |
| 778 | Status int32 |
| 779 | Int int32 |
| 780 | Ptr uint64 |
| 781 | Utime uint64 |
| 782 | Stime uint64 |
| 783 | Addr uint64 |
| 784 | Addr_lsb uint16 |
| 785 | _ uint16 |
| 786 | Syscall int32 |
| 787 | Call_addr uint64 |
| 788 | Arch uint32 |
| 789 | _ [28]uint8 |
| 790 | } |
| 791 | |
| 792 | type Winsize struct { |
| 793 | Row uint16 |
| 794 | Col uint16 |
| 795 | Xpixel uint16 |
| 796 | Ypixel uint16 |
| 797 | } |
| 798 | |
| 799 | const ( |
| 800 | TASKSTATS_CMD_UNSPEC = 0x0 |
| 801 | TASKSTATS_CMD_GET = 0x1 |
| 802 | TASKSTATS_CMD_NEW = 0x2 |
| 803 | TASKSTATS_TYPE_UNSPEC = 0x0 |
| 804 | TASKSTATS_TYPE_PID = 0x1 |
| 805 | TASKSTATS_TYPE_TGID = 0x2 |
| 806 | TASKSTATS_TYPE_STATS = 0x3 |
| 807 | TASKSTATS_TYPE_AGGR_PID = 0x4 |
| 808 | TASKSTATS_TYPE_AGGR_TGID = 0x5 |
| 809 | TASKSTATS_TYPE_NULL = 0x6 |
| 810 | TASKSTATS_CMD_ATTR_UNSPEC = 0x0 |
| 811 | TASKSTATS_CMD_ATTR_PID = 0x1 |
| 812 | TASKSTATS_CMD_ATTR_TGID = 0x2 |
| 813 | TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 |
| 814 | TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 |
| 815 | ) |
| 816 | |
| 817 | type CGroupStats struct { |
| 818 | Sleeping uint64 |
| 819 | Running uint64 |
| 820 | Stopped uint64 |
| 821 | Uninterruptible uint64 |
| 822 | Io_wait uint64 |
| 823 | } |
| 824 | |
| 825 | const ( |
| 826 | CGROUPSTATS_CMD_UNSPEC = 0x3 |
| 827 | CGROUPSTATS_CMD_GET = 0x4 |
| 828 | CGROUPSTATS_CMD_NEW = 0x5 |
| 829 | CGROUPSTATS_TYPE_UNSPEC = 0x0 |
| 830 | CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 |
| 831 | CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 |
| 832 | CGROUPSTATS_CMD_ATTR_FD = 0x1 |
| 833 | ) |
| 834 | |
| 835 | type Genlmsghdr struct { |
| 836 | Cmd uint8 |
| 837 | Version uint8 |
| 838 | Reserved uint16 |
| 839 | } |
| 840 | |
| 841 | const ( |
| 842 | CTRL_CMD_UNSPEC = 0x0 |
| 843 | CTRL_CMD_NEWFAMILY = 0x1 |
| 844 | CTRL_CMD_DELFAMILY = 0x2 |
| 845 | CTRL_CMD_GETFAMILY = 0x3 |
| 846 | CTRL_CMD_NEWOPS = 0x4 |
| 847 | CTRL_CMD_DELOPS = 0x5 |
| 848 | CTRL_CMD_GETOPS = 0x6 |
| 849 | CTRL_CMD_NEWMCAST_GRP = 0x7 |
| 850 | CTRL_CMD_DELMCAST_GRP = 0x8 |
| 851 | CTRL_CMD_GETMCAST_GRP = 0x9 |
| 852 | CTRL_ATTR_UNSPEC = 0x0 |
| 853 | CTRL_ATTR_FAMILY_ID = 0x1 |
| 854 | CTRL_ATTR_FAMILY_NAME = 0x2 |
| 855 | CTRL_ATTR_VERSION = 0x3 |
| 856 | CTRL_ATTR_HDRSIZE = 0x4 |
| 857 | CTRL_ATTR_MAXATTR = 0x5 |
| 858 | CTRL_ATTR_OPS = 0x6 |
| 859 | CTRL_ATTR_MCAST_GROUPS = 0x7 |
| 860 | CTRL_ATTR_OP_UNSPEC = 0x0 |
| 861 | CTRL_ATTR_OP_ID = 0x1 |
| 862 | CTRL_ATTR_OP_FLAGS = 0x2 |
| 863 | CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 |
| 864 | CTRL_ATTR_MCAST_GRP_NAME = 0x1 |
| 865 | CTRL_ATTR_MCAST_GRP_ID = 0x2 |
| 866 | ) |
| 867 | |
| 868 | const ( |
| 869 | _CPU_SETSIZE = 0x400 |
| 870 | ) |
| 871 | |
| 872 | const ( |
| 873 | BDADDR_BREDR = 0x0 |
| 874 | BDADDR_LE_PUBLIC = 0x1 |
| 875 | BDADDR_LE_RANDOM = 0x2 |
| 876 | ) |
| 877 | |
| 878 | type PerfEventAttr struct { |
| 879 | Type uint32 |
| 880 | Size uint32 |
| 881 | Config uint64 |
| 882 | Sample uint64 |
| 883 | Sample_type uint64 |
| 884 | Read_format uint64 |
| 885 | Bits uint64 |
| 886 | Wakeup uint32 |
| 887 | Bp_type uint32 |
| 888 | Ext1 uint64 |
| 889 | Ext2 uint64 |
| 890 | Branch_sample_type uint64 |
| 891 | Sample_regs_user uint64 |
| 892 | Sample_stack_user uint32 |
| 893 | Clockid int32 |
| 894 | Sample_regs_intr uint64 |
| 895 | Aux_watermark uint32 |
| 896 | Sample_max_stack uint16 |
| 897 | _ uint16 |
| 898 | } |
| 899 | |
| 900 | type PerfEventMmapPage struct { |
| 901 | Version uint32 |
| 902 | Compat_version uint32 |
| 903 | Lock uint32 |
| 904 | Index uint32 |
| 905 | Offset int64 |
| 906 | Time_enabled uint64 |
| 907 | Time_running uint64 |
| 908 | Capabilities uint64 |
| 909 | Pmc_width uint16 |
| 910 | Time_shift uint16 |
| 911 | Time_mult uint32 |
| 912 | Time_offset uint64 |
| 913 | Time_zero uint64 |
| 914 | Size uint32 |
| 915 | _ uint32 |
| 916 | Time_cycles uint64 |
| 917 | Time_mask uint64 |
| 918 | _ [928]uint8 |
| 919 | Data_head uint64 |
| 920 | Data_tail uint64 |
| 921 | Data_offset uint64 |
| 922 | Data_size uint64 |
| 923 | Aux_head uint64 |
| 924 | Aux_tail uint64 |
| 925 | Aux_offset uint64 |
| 926 | Aux_size uint64 |
| 927 | } |
| 928 | |
| 929 | const ( |
| 930 | PerfBitDisabled uint64 = CBitFieldMaskBit0 |
| 931 | PerfBitInherit = CBitFieldMaskBit1 |
| 932 | PerfBitPinned = CBitFieldMaskBit2 |
| 933 | PerfBitExclusive = CBitFieldMaskBit3 |
| 934 | PerfBitExcludeUser = CBitFieldMaskBit4 |
| 935 | PerfBitExcludeKernel = CBitFieldMaskBit5 |
| 936 | PerfBitExcludeHv = CBitFieldMaskBit6 |
| 937 | PerfBitExcludeIdle = CBitFieldMaskBit7 |
| 938 | PerfBitMmap = CBitFieldMaskBit8 |
| 939 | PerfBitComm = CBitFieldMaskBit9 |
| 940 | PerfBitFreq = CBitFieldMaskBit10 |
| 941 | PerfBitInheritStat = CBitFieldMaskBit11 |
| 942 | PerfBitEnableOnExec = CBitFieldMaskBit12 |
| 943 | PerfBitTask = CBitFieldMaskBit13 |
| 944 | PerfBitWatermark = CBitFieldMaskBit14 |
| 945 | PerfBitPreciseIPBit1 = CBitFieldMaskBit15 |
| 946 | PerfBitPreciseIPBit2 = CBitFieldMaskBit16 |
| 947 | PerfBitMmapData = CBitFieldMaskBit17 |
| 948 | PerfBitSampleIDAll = CBitFieldMaskBit18 |
| 949 | PerfBitExcludeHost = CBitFieldMaskBit19 |
| 950 | PerfBitExcludeGuest = CBitFieldMaskBit20 |
| 951 | PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 |
| 952 | PerfBitExcludeCallchainUser = CBitFieldMaskBit22 |
| 953 | PerfBitMmap2 = CBitFieldMaskBit23 |
| 954 | PerfBitCommExec = CBitFieldMaskBit24 |
| 955 | PerfBitUseClockID = CBitFieldMaskBit25 |
| 956 | PerfBitContextSwitch = CBitFieldMaskBit26 |
| 957 | ) |
| 958 | |
| 959 | const ( |
| 960 | PERF_TYPE_HARDWARE = 0x0 |
| 961 | PERF_TYPE_SOFTWARE = 0x1 |
| 962 | PERF_TYPE_TRACEPOINT = 0x2 |
| 963 | PERF_TYPE_HW_CACHE = 0x3 |
| 964 | PERF_TYPE_RAW = 0x4 |
| 965 | PERF_TYPE_BREAKPOINT = 0x5 |
| 966 | PERF_TYPE_MAX = 0x6 |
| 967 | PERF_COUNT_HW_CPU_CYCLES = 0x0 |
| 968 | PERF_COUNT_HW_INSTRUCTIONS = 0x1 |
| 969 | PERF_COUNT_HW_CACHE_REFERENCES = 0x2 |
| 970 | PERF_COUNT_HW_CACHE_MISSES = 0x3 |
| 971 | PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 |
| 972 | PERF_COUNT_HW_BRANCH_MISSES = 0x5 |
| 973 | PERF_COUNT_HW_BUS_CYCLES = 0x6 |
| 974 | PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 |
| 975 | PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 |
| 976 | PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 |
| 977 | PERF_COUNT_HW_MAX = 0xa |
| 978 | PERF_COUNT_HW_CACHE_L1D = 0x0 |
| 979 | PERF_COUNT_HW_CACHE_L1I = 0x1 |
| 980 | PERF_COUNT_HW_CACHE_LL = 0x2 |
| 981 | PERF_COUNT_HW_CACHE_DTLB = 0x3 |
| 982 | PERF_COUNT_HW_CACHE_ITLB = 0x4 |
| 983 | PERF_COUNT_HW_CACHE_BPU = 0x5 |
| 984 | PERF_COUNT_HW_CACHE_NODE = 0x6 |
| 985 | PERF_COUNT_HW_CACHE_MAX = 0x7 |
| 986 | PERF_COUNT_HW_CACHE_OP_READ = 0x0 |
| 987 | PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 |
| 988 | PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 |
| 989 | PERF_COUNT_HW_CACHE_OP_MAX = 0x3 |
| 990 | PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 |
| 991 | PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 |
| 992 | PERF_COUNT_HW_CACHE_RESULT_MAX = 0x2 |
| 993 | PERF_COUNT_SW_CPU_CLOCK = 0x0 |
| 994 | PERF_COUNT_SW_TASK_CLOCK = 0x1 |
| 995 | PERF_COUNT_SW_PAGE_FAULTS = 0x2 |
| 996 | PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 |
| 997 | PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 |
| 998 | PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 |
| 999 | PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 |
| 1000 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 |
| 1001 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 |
| 1002 | PERF_COUNT_SW_DUMMY = 0x9 |
| 1003 | PERF_COUNT_SW_BPF_OUTPUT = 0xa |
| 1004 | PERF_COUNT_SW_MAX = 0xb |
| 1005 | PERF_SAMPLE_IP = 0x1 |
| 1006 | PERF_SAMPLE_TID = 0x2 |
| 1007 | PERF_SAMPLE_TIME = 0x4 |
| 1008 | PERF_SAMPLE_ADDR = 0x8 |
| 1009 | PERF_SAMPLE_READ = 0x10 |
| 1010 | PERF_SAMPLE_CALLCHAIN = 0x20 |
| 1011 | PERF_SAMPLE_ID = 0x40 |
| 1012 | PERF_SAMPLE_CPU = 0x80 |
| 1013 | PERF_SAMPLE_PERIOD = 0x100 |
| 1014 | PERF_SAMPLE_STREAM_ID = 0x200 |
| 1015 | PERF_SAMPLE_RAW = 0x400 |
| 1016 | PERF_SAMPLE_BRANCH_STACK = 0x800 |
| 1017 | PERF_SAMPLE_REGS_USER = 0x1000 |
| 1018 | PERF_SAMPLE_STACK_USER = 0x2000 |
| 1019 | PERF_SAMPLE_WEIGHT = 0x4000 |
| 1020 | PERF_SAMPLE_DATA_SRC = 0x8000 |
| 1021 | PERF_SAMPLE_IDENTIFIER = 0x10000 |
| 1022 | PERF_SAMPLE_TRANSACTION = 0x20000 |
| 1023 | PERF_SAMPLE_REGS_INTR = 0x40000 |
| 1024 | PERF_SAMPLE_PHYS_ADDR = 0x80000 |
| 1025 | PERF_SAMPLE_AUX = 0x100000 |
| 1026 | PERF_SAMPLE_CGROUP = 0x200000 |
| 1027 | PERF_SAMPLE_DATA_PAGE_SIZE = 0x400000 |
| 1028 | PERF_SAMPLE_CODE_PAGE_SIZE = 0x800000 |
| 1029 | PERF_SAMPLE_WEIGHT_STRUCT = 0x1000000 |
| 1030 | PERF_SAMPLE_MAX = 0x2000000 |
| 1031 | PERF_SAMPLE_BRANCH_USER_SHIFT = 0x0 |
| 1032 | PERF_SAMPLE_BRANCH_KERNEL_SHIFT = 0x1 |
| 1033 | PERF_SAMPLE_BRANCH_HV_SHIFT = 0x2 |
| 1034 | PERF_SAMPLE_BRANCH_ANY_SHIFT = 0x3 |
| 1035 | PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT = 0x4 |
| 1036 | PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT = 0x5 |
| 1037 | PERF_SAMPLE_BRANCH_IND_CALL_SHIFT = 0x6 |
| 1038 | PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT = 0x7 |
| 1039 | PERF_SAMPLE_BRANCH_IN_TX_SHIFT = 0x8 |
| 1040 | PERF_SAMPLE_BRANCH_NO_TX_SHIFT = 0x9 |
| 1041 | PERF_SAMPLE_BRANCH_COND_SHIFT = 0xa |
| 1042 | PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 0xb |
| 1043 | PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT = 0xc |
| 1044 | PERF_SAMPLE_BRANCH_CALL_SHIFT = 0xd |
| 1045 | PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT = 0xe |
| 1046 | PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT = 0xf |
| 1047 | PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 0x10 |
| 1048 | PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 0x11 |
| 1049 | PERF_SAMPLE_BRANCH_MAX_SHIFT = 0x12 |
| 1050 | PERF_SAMPLE_BRANCH_USER = 0x1 |
| 1051 | PERF_SAMPLE_BRANCH_KERNEL = 0x2 |
| 1052 | PERF_SAMPLE_BRANCH_HV = 0x4 |
| 1053 | PERF_SAMPLE_BRANCH_ANY = 0x8 |
| 1054 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 |
| 1055 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 |
| 1056 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 |
| 1057 | PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 |
| 1058 | PERF_SAMPLE_BRANCH_IN_TX = 0x100 |
| 1059 | PERF_SAMPLE_BRANCH_NO_TX = 0x200 |
| 1060 | PERF_SAMPLE_BRANCH_COND = 0x400 |
| 1061 | PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 |
| 1062 | PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 |
| 1063 | PERF_SAMPLE_BRANCH_CALL = 0x2000 |
| 1064 | PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 |
| 1065 | PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 |
| 1066 | PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 |
| 1067 | PERF_SAMPLE_BRANCH_HW_INDEX = 0x20000 |
| 1068 | PERF_SAMPLE_BRANCH_MAX = 0x40000 |
| 1069 | PERF_BR_UNKNOWN = 0x0 |
| 1070 | PERF_BR_COND = 0x1 |
| 1071 | PERF_BR_UNCOND = 0x2 |
| 1072 | PERF_BR_IND = 0x3 |
| 1073 | PERF_BR_CALL = 0x4 |
| 1074 | PERF_BR_IND_CALL = 0x5 |
| 1075 | PERF_BR_RET = 0x6 |
| 1076 | PERF_BR_SYSCALL = 0x7 |
| 1077 | PERF_BR_SYSRET = 0x8 |
| 1078 | PERF_BR_COND_CALL = 0x9 |
| 1079 | PERF_BR_COND_RET = 0xa |
| 1080 | PERF_BR_MAX = 0xb |
| 1081 | PERF_SAMPLE_REGS_ABI_NONE = 0x0 |
| 1082 | PERF_SAMPLE_REGS_ABI_32 = 0x1 |
| 1083 | PERF_SAMPLE_REGS_ABI_64 = 0x2 |
| 1084 | PERF_TXN_ELISION = 0x1 |
| 1085 | PERF_TXN_TRANSACTION = 0x2 |
| 1086 | PERF_TXN_SYNC = 0x4 |
| 1087 | PERF_TXN_ASYNC = 0x8 |
| 1088 | PERF_TXN_RETRY = 0x10 |
| 1089 | PERF_TXN_CONFLICT = 0x20 |
| 1090 | PERF_TXN_CAPACITY_WRITE = 0x40 |
| 1091 | PERF_TXN_CAPACITY_READ = 0x80 |
| 1092 | PERF_TXN_MAX = 0x100 |
| 1093 | PERF_TXN_ABORT_MASK = -0x100000000 |
| 1094 | PERF_TXN_ABORT_SHIFT = 0x20 |
| 1095 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 |
| 1096 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 |
| 1097 | PERF_FORMAT_ID = 0x4 |
| 1098 | PERF_FORMAT_GROUP = 0x8 |
| 1099 | PERF_FORMAT_MAX = 0x10 |
| 1100 | PERF_IOC_FLAG_GROUP = 0x1 |
| 1101 | PERF_RECORD_MMAP = 0x1 |
| 1102 | PERF_RECORD_LOST = 0x2 |
| 1103 | PERF_RECORD_COMM = 0x3 |
| 1104 | PERF_RECORD_EXIT = 0x4 |
| 1105 | PERF_RECORD_THROTTLE = 0x5 |
| 1106 | PERF_RECORD_UNTHROTTLE = 0x6 |
| 1107 | PERF_RECORD_FORK = 0x7 |
| 1108 | PERF_RECORD_READ = 0x8 |
| 1109 | PERF_RECORD_SAMPLE = 0x9 |
| 1110 | PERF_RECORD_MMAP2 = 0xa |
| 1111 | PERF_RECORD_AUX = 0xb |
| 1112 | PERF_RECORD_ITRACE_START = 0xc |
| 1113 | PERF_RECORD_LOST_SAMPLES = 0xd |
| 1114 | PERF_RECORD_SWITCH = 0xe |
| 1115 | PERF_RECORD_SWITCH_CPU_WIDE = 0xf |
| 1116 | PERF_RECORD_NAMESPACES = 0x10 |
| 1117 | PERF_RECORD_KSYMBOL = 0x11 |
| 1118 | PERF_RECORD_BPF_EVENT = 0x12 |
| 1119 | PERF_RECORD_CGROUP = 0x13 |
| 1120 | PERF_RECORD_TEXT_POKE = 0x14 |
| 1121 | PERF_RECORD_MAX = 0x15 |
| 1122 | PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0x0 |
| 1123 | PERF_RECORD_KSYMBOL_TYPE_BPF = 0x1 |
| 1124 | PERF_RECORD_KSYMBOL_TYPE_OOL = 0x2 |
| 1125 | PERF_RECORD_KSYMBOL_TYPE_MAX = 0x3 |
| 1126 | PERF_BPF_EVENT_UNKNOWN = 0x0 |
| 1127 | PERF_BPF_EVENT_PROG_LOAD = 0x1 |
| 1128 | PERF_BPF_EVENT_PROG_UNLOAD = 0x2 |
| 1129 | PERF_BPF_EVENT_MAX = 0x3 |
| 1130 | PERF_CONTEXT_HV = -0x20 |
| 1131 | PERF_CONTEXT_KERNEL = -0x80 |
| 1132 | PERF_CONTEXT_USER = -0x200 |
| 1133 | PERF_CONTEXT_GUEST = -0x800 |
| 1134 | PERF_CONTEXT_GUEST_KERNEL = -0x880 |
| 1135 | PERF_CONTEXT_GUEST_USER = -0xa00 |
| 1136 | PERF_CONTEXT_MAX = -0xfff |
| 1137 | ) |
| 1138 | |
| 1139 | type TCPMD5Sig struct { |
| 1140 | Addr SockaddrStorage |
| 1141 | Flags uint8 |
| 1142 | Prefixlen uint8 |
| 1143 | Keylen uint16 |
| 1144 | _ uint32 |
| 1145 | Key [80]uint8 |
| 1146 | } |
| 1147 | |
| 1148 | type HDDriveCmdHdr struct { |
| 1149 | Command uint8 |
| 1150 | Number uint8 |
| 1151 | Feature uint8 |
| 1152 | Count uint8 |
| 1153 | } |
| 1154 | |
| 1155 | type HDDriveID struct { |
| 1156 | Config uint16 |
| 1157 | Cyls uint16 |
| 1158 | Reserved2 uint16 |
| 1159 | Heads uint16 |
| 1160 | Track_bytes uint16 |
| 1161 | Sector_bytes uint16 |
| 1162 | Sectors uint16 |
| 1163 | Vendor0 uint16 |
| 1164 | Vendor1 uint16 |
| 1165 | Vendor2 uint16 |
| 1166 | Serial_no [20]uint8 |
| 1167 | Buf_type uint16 |
| 1168 | Buf_size uint16 |
| 1169 | Ecc_bytes uint16 |
| 1170 | Fw_rev [8]uint8 |
| 1171 | Model [40]uint8 |
| 1172 | Max_multsect uint8 |
| 1173 | Vendor3 uint8 |
| 1174 | Dword_io uint16 |
| 1175 | Vendor4 uint8 |
| 1176 | Capability uint8 |
| 1177 | Reserved50 uint16 |
| 1178 | Vendor5 uint8 |
| 1179 | TPIO uint8 |
| 1180 | Vendor6 uint8 |
| 1181 | TDMA uint8 |
| 1182 | Field_valid uint16 |
| 1183 | Cur_cyls uint16 |
| 1184 | Cur_heads uint16 |
| 1185 | Cur_sectors uint16 |
| 1186 | Cur_capacity0 uint16 |
| 1187 | Cur_capacity1 uint16 |
| 1188 | Multsect uint8 |
| 1189 | Multsect_valid uint8 |
| 1190 | Lba_capacity uint32 |
| 1191 | Dma_1word uint16 |
| 1192 | Dma_mword uint16 |
| 1193 | Eide_pio_modes uint16 |
| 1194 | Eide_dma_min uint16 |
| 1195 | Eide_dma_time uint16 |
| 1196 | Eide_pio uint16 |
| 1197 | Eide_pio_iordy uint16 |
| 1198 | Words69_70 [2]uint16 |
| 1199 | Words71_74 [4]uint16 |
| 1200 | Queue_depth uint16 |
| 1201 | Words76_79 [4]uint16 |
| 1202 | Major_rev_num uint16 |
| 1203 | Minor_rev_num uint16 |
| 1204 | Command_set_1 uint16 |
| 1205 | Command_set_2 uint16 |
| 1206 | Cfsse uint16 |
| 1207 | Cfs_enable_1 uint16 |
| 1208 | Cfs_enable_2 uint16 |
| 1209 | Csf_default uint16 |
| 1210 | Dma_ultra uint16 |
| 1211 | Trseuc uint16 |
| 1212 | TrsEuc uint16 |
| 1213 | CurAPMvalues uint16 |
| 1214 | Mprc uint16 |
| 1215 | Hw_config uint16 |
| 1216 | Acoustic uint16 |
| 1217 | Msrqs uint16 |
| 1218 | Sxfert uint16 |
| 1219 | Sal uint16 |
| 1220 | Spg uint32 |
| 1221 | Lba_capacity_2 uint64 |
| 1222 | Words104_125 [22]uint16 |
| 1223 | Last_lun uint16 |
| 1224 | Word127 uint16 |
| 1225 | Dlf uint16 |
| 1226 | Csfo uint16 |
| 1227 | Words130_155 [26]uint16 |
| 1228 | Word156 uint16 |
| 1229 | Words157_159 [3]uint16 |
| 1230 | Cfa_power uint16 |
| 1231 | Words161_175 [15]uint16 |
| 1232 | Words176_205 [30]uint16 |
| 1233 | Words206_254 [49]uint16 |
| 1234 | Integrity_word uint16 |
| 1235 | } |
| 1236 | |
| 1237 | const ( |
| 1238 | ST_MANDLOCK = 0x40 |
| 1239 | ST_NOATIME = 0x400 |
| 1240 | ST_NODEV = 0x4 |
| 1241 | ST_NODIRATIME = 0x800 |
| 1242 | ST_NOEXEC = 0x8 |
| 1243 | ST_NOSUID = 0x2 |
| 1244 | ST_RDONLY = 0x1 |
| 1245 | ST_RELATIME = 0x1000 |
| 1246 | ST_SYNCHRONOUS = 0x10 |
| 1247 | ) |
| 1248 | |
| 1249 | type Tpacket2Hdr struct { |
| 1250 | Status uint32 |
| 1251 | Len uint32 |
| 1252 | Snaplen uint32 |
| 1253 | Mac uint16 |
| 1254 | Net uint16 |
| 1255 | Sec uint32 |
| 1256 | Nsec uint32 |
| 1257 | Vlan_tci uint16 |
| 1258 | Vlan_tpid uint16 |
| 1259 | _ [4]uint8 |
| 1260 | } |
| 1261 | |
| 1262 | type Tpacket3Hdr struct { |
| 1263 | Next_offset uint32 |
| 1264 | Sec uint32 |
| 1265 | Nsec uint32 |
| 1266 | Snaplen uint32 |
| 1267 | Len uint32 |
| 1268 | Status uint32 |
| 1269 | Mac uint16 |
| 1270 | Net uint16 |
| 1271 | Hv1 TpacketHdrVariant1 |
| 1272 | _ [8]uint8 |
| 1273 | } |
| 1274 | |
| 1275 | type TpacketHdrVariant1 struct { |
| 1276 | Rxhash uint32 |
| 1277 | Vlan_tci uint32 |
| 1278 | Vlan_tpid uint16 |
| 1279 | _ uint16 |
| 1280 | } |
| 1281 | |
| 1282 | type TpacketBlockDesc struct { |
| 1283 | Version uint32 |
| 1284 | To_priv uint32 |
| 1285 | Hdr [40]byte |
| 1286 | } |
| 1287 | |
| 1288 | type TpacketBDTS struct { |
| 1289 | Sec uint32 |
| 1290 | Usec uint32 |
| 1291 | } |
| 1292 | |
| 1293 | type TpacketHdrV1 struct { |
| 1294 | Block_status uint32 |
| 1295 | Num_pkts uint32 |
| 1296 | Offset_to_first_pkt uint32 |
| 1297 | Blk_len uint32 |
| 1298 | Seq_num uint64 |
| 1299 | Ts_first_pkt TpacketBDTS |
| 1300 | Ts_last_pkt TpacketBDTS |
| 1301 | } |
| 1302 | |
| 1303 | type TpacketReq struct { |
| 1304 | Block_size uint32 |
| 1305 | Block_nr uint32 |
| 1306 | Frame_size uint32 |
| 1307 | Frame_nr uint32 |
| 1308 | } |
| 1309 | |
| 1310 | type TpacketReq3 struct { |
| 1311 | Block_size uint32 |
| 1312 | Block_nr uint32 |
| 1313 | Frame_size uint32 |
| 1314 | Frame_nr uint32 |
| 1315 | Retire_blk_tov uint32 |
| 1316 | Sizeof_priv uint32 |
| 1317 | Feature_req_word uint32 |
| 1318 | } |
| 1319 | |
| 1320 | type TpacketStats struct { |
| 1321 | Packets uint32 |
| 1322 | Drops uint32 |
| 1323 | } |
| 1324 | |
| 1325 | type TpacketStatsV3 struct { |
| 1326 | Packets uint32 |
| 1327 | Drops uint32 |
| 1328 | Freeze_q_cnt uint32 |
| 1329 | } |
| 1330 | |
| 1331 | type TpacketAuxdata struct { |
| 1332 | Status uint32 |
| 1333 | Len uint32 |
| 1334 | Snaplen uint32 |
| 1335 | Mac uint16 |
| 1336 | Net uint16 |
| 1337 | Vlan_tci uint16 |
| 1338 | Vlan_tpid uint16 |
| 1339 | } |
| 1340 | |
| 1341 | const ( |
| 1342 | TPACKET_V1 = 0x0 |
| 1343 | TPACKET_V2 = 0x1 |
| 1344 | TPACKET_V3 = 0x2 |
| 1345 | ) |
| 1346 | |
| 1347 | const ( |
| 1348 | SizeofTpacket2Hdr = 0x20 |
| 1349 | SizeofTpacket3Hdr = 0x30 |
| 1350 | |
| 1351 | SizeofTpacketStats = 0x8 |
| 1352 | SizeofTpacketStatsV3 = 0xc |
| 1353 | ) |
| 1354 | |
| 1355 | const ( |
| 1356 | IFLA_UNSPEC = 0x0 |
| 1357 | IFLA_ADDRESS = 0x1 |
| 1358 | IFLA_BROADCAST = 0x2 |
| 1359 | IFLA_IFNAME = 0x3 |
| 1360 | IFLA_MTU = 0x4 |
| 1361 | IFLA_LINK = 0x5 |
| 1362 | IFLA_QDISC = 0x6 |
| 1363 | IFLA_STATS = 0x7 |
| 1364 | IFLA_COST = 0x8 |
| 1365 | IFLA_PRIORITY = 0x9 |
| 1366 | IFLA_MASTER = 0xa |
| 1367 | IFLA_WIRELESS = 0xb |
| 1368 | IFLA_PROTINFO = 0xc |
| 1369 | IFLA_TXQLEN = 0xd |
| 1370 | IFLA_MAP = 0xe |
| 1371 | IFLA_WEIGHT = 0xf |
| 1372 | IFLA_OPERSTATE = 0x10 |
| 1373 | IFLA_LINKMODE = 0x11 |
| 1374 | IFLA_LINKINFO = 0x12 |
| 1375 | IFLA_NET_NS_PID = 0x13 |
| 1376 | IFLA_IFALIAS = 0x14 |
| 1377 | IFLA_NUM_VF = 0x15 |
| 1378 | IFLA_VFINFO_LIST = 0x16 |
| 1379 | IFLA_STATS64 = 0x17 |
| 1380 | IFLA_VF_PORTS = 0x18 |
| 1381 | IFLA_PORT_SELF = 0x19 |
| 1382 | IFLA_AF_SPEC = 0x1a |
| 1383 | IFLA_GROUP = 0x1b |
| 1384 | IFLA_NET_NS_FD = 0x1c |
| 1385 | IFLA_EXT_MASK = 0x1d |
| 1386 | IFLA_PROMISCUITY = 0x1e |
| 1387 | IFLA_NUM_TX_QUEUES = 0x1f |
| 1388 | IFLA_NUM_RX_QUEUES = 0x20 |
| 1389 | IFLA_CARRIER = 0x21 |
| 1390 | IFLA_PHYS_PORT_ID = 0x22 |
| 1391 | IFLA_CARRIER_CHANGES = 0x23 |
| 1392 | IFLA_PHYS_SWITCH_ID = 0x24 |
| 1393 | IFLA_LINK_NETNSID = 0x25 |
| 1394 | IFLA_PHYS_PORT_NAME = 0x26 |
| 1395 | IFLA_PROTO_DOWN = 0x27 |
| 1396 | IFLA_GSO_MAX_SEGS = 0x28 |
| 1397 | IFLA_GSO_MAX_SIZE = 0x29 |
| 1398 | IFLA_PAD = 0x2a |
| 1399 | IFLA_XDP = 0x2b |
| 1400 | IFLA_EVENT = 0x2c |
| 1401 | IFLA_NEW_NETNSID = 0x2d |
| 1402 | IFLA_IF_NETNSID = 0x2e |
| 1403 | IFLA_TARGET_NETNSID = 0x2e |
| 1404 | IFLA_CARRIER_UP_COUNT = 0x2f |
| 1405 | IFLA_CARRIER_DOWN_COUNT = 0x30 |
| 1406 | IFLA_NEW_IFINDEX = 0x31 |
| 1407 | IFLA_MIN_MTU = 0x32 |
| 1408 | IFLA_MAX_MTU = 0x33 |
| 1409 | IFLA_PROP_LIST = 0x34 |
| 1410 | IFLA_ALT_IFNAME = 0x35 |
| 1411 | IFLA_PERM_ADDRESS = 0x36 |
| 1412 | IFLA_PROTO_DOWN_REASON = 0x37 |
| 1413 | IFLA_PROTO_DOWN_REASON_UNSPEC = 0x0 |
| 1414 | IFLA_PROTO_DOWN_REASON_MASK = 0x1 |
| 1415 | IFLA_PROTO_DOWN_REASON_VALUE = 0x2 |
| 1416 | IFLA_PROTO_DOWN_REASON_MAX = 0x2 |
| 1417 | IFLA_INET_UNSPEC = 0x0 |
| 1418 | IFLA_INET_CONF = 0x1 |
| 1419 | IFLA_INET6_UNSPEC = 0x0 |
| 1420 | IFLA_INET6_FLAGS = 0x1 |
| 1421 | IFLA_INET6_CONF = 0x2 |
| 1422 | IFLA_INET6_STATS = 0x3 |
| 1423 | IFLA_INET6_MCAST = 0x4 |
| 1424 | IFLA_INET6_CACHEINFO = 0x5 |
| 1425 | IFLA_INET6_ICMP6STATS = 0x6 |
| 1426 | IFLA_INET6_TOKEN = 0x7 |
| 1427 | IFLA_INET6_ADDR_GEN_MODE = 0x8 |
| 1428 | IFLA_BR_UNSPEC = 0x0 |
| 1429 | IFLA_BR_FORWARD_DELAY = 0x1 |
| 1430 | IFLA_BR_HELLO_TIME = 0x2 |
| 1431 | IFLA_BR_MAX_AGE = 0x3 |
| 1432 | IFLA_BR_AGEING_TIME = 0x4 |
| 1433 | IFLA_BR_STP_STATE = 0x5 |
| 1434 | IFLA_BR_PRIORITY = 0x6 |
| 1435 | IFLA_BR_VLAN_FILTERING = 0x7 |
| 1436 | IFLA_BR_VLAN_PROTOCOL = 0x8 |
| 1437 | IFLA_BR_GROUP_FWD_MASK = 0x9 |
| 1438 | IFLA_BR_ROOT_ID = 0xa |
| 1439 | IFLA_BR_BRIDGE_ID = 0xb |
| 1440 | IFLA_BR_ROOT_PORT = 0xc |
| 1441 | IFLA_BR_ROOT_PATH_COST = 0xd |
| 1442 | IFLA_BR_TOPOLOGY_CHANGE = 0xe |
| 1443 | IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 0xf |
| 1444 | IFLA_BR_HELLO_TIMER = 0x10 |
| 1445 | IFLA_BR_TCN_TIMER = 0x11 |
| 1446 | IFLA_BR_TOPOLOGY_CHANGE_TIMER = 0x12 |
| 1447 | IFLA_BR_GC_TIMER = 0x13 |
| 1448 | IFLA_BR_GROUP_ADDR = 0x14 |
| 1449 | IFLA_BR_FDB_FLUSH = 0x15 |
| 1450 | IFLA_BR_MCAST_ROUTER = 0x16 |
| 1451 | IFLA_BR_MCAST_SNOOPING = 0x17 |
| 1452 | IFLA_BR_MCAST_QUERY_USE_IFADDR = 0x18 |
| 1453 | IFLA_BR_MCAST_QUERIER = 0x19 |
| 1454 | IFLA_BR_MCAST_HASH_ELASTICITY = 0x1a |
| 1455 | IFLA_BR_MCAST_HASH_MAX = 0x1b |
| 1456 | IFLA_BR_MCAST_LAST_MEMBER_CNT = 0x1c |
| 1457 | IFLA_BR_MCAST_STARTUP_QUERY_CNT = 0x1d |
| 1458 | IFLA_BR_MCAST_LAST_MEMBER_INTVL = 0x1e |
| 1459 | IFLA_BR_MCAST_MEMBERSHIP_INTVL = 0x1f |
| 1460 | IFLA_BR_MCAST_QUERIER_INTVL = 0x20 |
| 1461 | IFLA_BR_MCAST_QUERY_INTVL = 0x21 |
| 1462 | IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 0x22 |
| 1463 | IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 0x23 |
| 1464 | IFLA_BR_NF_CALL_IPTABLES = 0x24 |
| 1465 | IFLA_BR_NF_CALL_IP6TABLES = 0x25 |
| 1466 | IFLA_BR_NF_CALL_ARPTABLES = 0x26 |
| 1467 | IFLA_BR_VLAN_DEFAULT_PVID = 0x27 |
| 1468 | IFLA_BR_PAD = 0x28 |
| 1469 | IFLA_BR_VLAN_STATS_ENABLED = 0x29 |
| 1470 | IFLA_BR_MCAST_STATS_ENABLED = 0x2a |
| 1471 | IFLA_BR_MCAST_IGMP_VERSION = 0x2b |
| 1472 | IFLA_BR_MCAST_MLD_VERSION = 0x2c |
| 1473 | IFLA_BR_VLAN_STATS_PER_PORT = 0x2d |
| 1474 | IFLA_BR_MULTI_BOOLOPT = 0x2e |
| 1475 | IFLA_BRPORT_UNSPEC = 0x0 |
| 1476 | IFLA_BRPORT_STATE = 0x1 |
| 1477 | IFLA_BRPORT_PRIORITY = 0x2 |
| 1478 | IFLA_BRPORT_COST = 0x3 |
| 1479 | IFLA_BRPORT_MODE = 0x4 |
| 1480 | IFLA_BRPORT_GUARD = 0x5 |
| 1481 | IFLA_BRPORT_PROTECT = 0x6 |
| 1482 | IFLA_BRPORT_FAST_LEAVE = 0x7 |
| 1483 | IFLA_BRPORT_LEARNING = 0x8 |
| 1484 | IFLA_BRPORT_UNICAST_FLOOD = 0x9 |
| 1485 | IFLA_BRPORT_PROXYARP = 0xa |
| 1486 | IFLA_BRPORT_LEARNING_SYNC = 0xb |
| 1487 | IFLA_BRPORT_PROXYARP_WIFI = 0xc |
| 1488 | IFLA_BRPORT_ROOT_ID = 0xd |
| 1489 | IFLA_BRPORT_BRIDGE_ID = 0xe |
| 1490 | IFLA_BRPORT_DESIGNATED_PORT = 0xf |
| 1491 | IFLA_BRPORT_DESIGNATED_COST = 0x10 |
| 1492 | IFLA_BRPORT_ID = 0x11 |
| 1493 | IFLA_BRPORT_NO = 0x12 |
| 1494 | IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 0x13 |
| 1495 | IFLA_BRPORT_CONFIG_PENDING = 0x14 |
| 1496 | IFLA_BRPORT_MESSAGE_AGE_TIMER = 0x15 |
| 1497 | IFLA_BRPORT_FORWARD_DELAY_TIMER = 0x16 |
| 1498 | IFLA_BRPORT_HOLD_TIMER = 0x17 |
| 1499 | IFLA_BRPORT_FLUSH = 0x18 |
| 1500 | IFLA_BRPORT_MULTICAST_ROUTER = 0x19 |
| 1501 | IFLA_BRPORT_PAD = 0x1a |
| 1502 | IFLA_BRPORT_MCAST_FLOOD = 0x1b |
| 1503 | IFLA_BRPORT_MCAST_TO_UCAST = 0x1c |
| 1504 | IFLA_BRPORT_VLAN_TUNNEL = 0x1d |
| 1505 | IFLA_BRPORT_BCAST_FLOOD = 0x1e |
| 1506 | IFLA_BRPORT_GROUP_FWD_MASK = 0x1f |
| 1507 | IFLA_BRPORT_NEIGH_SUPPRESS = 0x20 |
| 1508 | IFLA_BRPORT_ISOLATED = 0x21 |
| 1509 | IFLA_BRPORT_BACKUP_PORT = 0x22 |
| 1510 | IFLA_BRPORT_MRP_RING_OPEN = 0x23 |
| 1511 | IFLA_BRPORT_MRP_IN_OPEN = 0x24 |
| 1512 | IFLA_INFO_UNSPEC = 0x0 |
| 1513 | IFLA_INFO_KIND = 0x1 |
| 1514 | IFLA_INFO_DATA = 0x2 |
| 1515 | IFLA_INFO_XSTATS = 0x3 |
| 1516 | IFLA_INFO_SLAVE_KIND = 0x4 |
| 1517 | IFLA_INFO_SLAVE_DATA = 0x5 |
| 1518 | IFLA_VLAN_UNSPEC = 0x0 |
| 1519 | IFLA_VLAN_ID = 0x1 |
| 1520 | IFLA_VLAN_FLAGS = 0x2 |
| 1521 | IFLA_VLAN_EGRESS_QOS = 0x3 |
| 1522 | IFLA_VLAN_INGRESS_QOS = 0x4 |
| 1523 | IFLA_VLAN_PROTOCOL = 0x5 |
| 1524 | IFLA_VLAN_QOS_UNSPEC = 0x0 |
| 1525 | IFLA_VLAN_QOS_MAPPING = 0x1 |
| 1526 | IFLA_MACVLAN_UNSPEC = 0x0 |
| 1527 | IFLA_MACVLAN_MODE = 0x1 |
| 1528 | IFLA_MACVLAN_FLAGS = 0x2 |
| 1529 | IFLA_MACVLAN_MACADDR_MODE = 0x3 |
| 1530 | IFLA_MACVLAN_MACADDR = 0x4 |
| 1531 | IFLA_MACVLAN_MACADDR_DATA = 0x5 |
| 1532 | IFLA_MACVLAN_MACADDR_COUNT = 0x6 |
| 1533 | IFLA_VRF_UNSPEC = 0x0 |
| 1534 | IFLA_VRF_TABLE = 0x1 |
| 1535 | IFLA_VRF_PORT_UNSPEC = 0x0 |
| 1536 | IFLA_VRF_PORT_TABLE = 0x1 |
| 1537 | IFLA_MACSEC_UNSPEC = 0x0 |
| 1538 | IFLA_MACSEC_SCI = 0x1 |
| 1539 | IFLA_MACSEC_PORT = 0x2 |
| 1540 | IFLA_MACSEC_ICV_LEN = 0x3 |
| 1541 | IFLA_MACSEC_CIPHER_SUITE = 0x4 |
| 1542 | IFLA_MACSEC_WINDOW = 0x5 |
| 1543 | IFLA_MACSEC_ENCODING_SA = 0x6 |
| 1544 | IFLA_MACSEC_ENCRYPT = 0x7 |
| 1545 | IFLA_MACSEC_PROTECT = 0x8 |
| 1546 | IFLA_MACSEC_INC_SCI = 0x9 |
| 1547 | IFLA_MACSEC_ES = 0xa |
| 1548 | IFLA_MACSEC_SCB = 0xb |
| 1549 | IFLA_MACSEC_REPLAY_PROTECT = 0xc |
| 1550 | IFLA_MACSEC_VALIDATION = 0xd |
| 1551 | IFLA_MACSEC_PAD = 0xe |
| 1552 | IFLA_MACSEC_OFFLOAD = 0xf |
| 1553 | IFLA_XFRM_UNSPEC = 0x0 |
| 1554 | IFLA_XFRM_LINK = 0x1 |
| 1555 | IFLA_XFRM_IF_ID = 0x2 |
| 1556 | IFLA_IPVLAN_UNSPEC = 0x0 |
| 1557 | IFLA_IPVLAN_MODE = 0x1 |
| 1558 | IFLA_IPVLAN_FLAGS = 0x2 |
| 1559 | IFLA_VXLAN_UNSPEC = 0x0 |
| 1560 | IFLA_VXLAN_ID = 0x1 |
| 1561 | IFLA_VXLAN_GROUP = 0x2 |
| 1562 | IFLA_VXLAN_LINK = 0x3 |
| 1563 | IFLA_VXLAN_LOCAL = 0x4 |
| 1564 | IFLA_VXLAN_TTL = 0x5 |
| 1565 | IFLA_VXLAN_TOS = 0x6 |
| 1566 | IFLA_VXLAN_LEARNING = 0x7 |
| 1567 | IFLA_VXLAN_AGEING = 0x8 |
| 1568 | IFLA_VXLAN_LIMIT = 0x9 |
| 1569 | IFLA_VXLAN_PORT_RANGE = 0xa |
| 1570 | IFLA_VXLAN_PROXY = 0xb |
| 1571 | IFLA_VXLAN_RSC = 0xc |
| 1572 | IFLA_VXLAN_L2MISS = 0xd |
| 1573 | IFLA_VXLAN_L3MISS = 0xe |
| 1574 | IFLA_VXLAN_PORT = 0xf |
| 1575 | IFLA_VXLAN_GROUP6 = 0x10 |
| 1576 | IFLA_VXLAN_LOCAL6 = 0x11 |
| 1577 | IFLA_VXLAN_UDP_CSUM = 0x12 |
| 1578 | IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 0x13 |
| 1579 | IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 0x14 |
| 1580 | IFLA_VXLAN_REMCSUM_TX = 0x15 |
| 1581 | IFLA_VXLAN_REMCSUM_RX = 0x16 |
| 1582 | IFLA_VXLAN_GBP = 0x17 |
| 1583 | IFLA_VXLAN_REMCSUM_NOPARTIAL = 0x18 |
| 1584 | IFLA_VXLAN_COLLECT_METADATA = 0x19 |
| 1585 | IFLA_VXLAN_LABEL = 0x1a |
| 1586 | IFLA_VXLAN_GPE = 0x1b |
| 1587 | IFLA_VXLAN_TTL_INHERIT = 0x1c |
| 1588 | IFLA_VXLAN_DF = 0x1d |
| 1589 | IFLA_GENEVE_UNSPEC = 0x0 |
| 1590 | IFLA_GENEVE_ID = 0x1 |
| 1591 | IFLA_GENEVE_REMOTE = 0x2 |
| 1592 | IFLA_GENEVE_TTL = 0x3 |
| 1593 | IFLA_GENEVE_TOS = 0x4 |
| 1594 | IFLA_GENEVE_PORT = 0x5 |
| 1595 | IFLA_GENEVE_COLLECT_METADATA = 0x6 |
| 1596 | IFLA_GENEVE_REMOTE6 = 0x7 |
| 1597 | IFLA_GENEVE_UDP_CSUM = 0x8 |
| 1598 | IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 0x9 |
| 1599 | IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 0xa |
| 1600 | IFLA_GENEVE_LABEL = 0xb |
| 1601 | IFLA_GENEVE_TTL_INHERIT = 0xc |
| 1602 | IFLA_GENEVE_DF = 0xd |
| 1603 | IFLA_BAREUDP_UNSPEC = 0x0 |
| 1604 | IFLA_BAREUDP_PORT = 0x1 |
| 1605 | IFLA_BAREUDP_ETHERTYPE = 0x2 |
| 1606 | IFLA_BAREUDP_SRCPORT_MIN = 0x3 |
| 1607 | IFLA_BAREUDP_MULTIPROTO_MODE = 0x4 |
| 1608 | IFLA_PPP_UNSPEC = 0x0 |
| 1609 | IFLA_PPP_DEV_FD = 0x1 |
| 1610 | IFLA_GTP_UNSPEC = 0x0 |
| 1611 | IFLA_GTP_FD0 = 0x1 |
| 1612 | IFLA_GTP_FD1 = 0x2 |
| 1613 | IFLA_GTP_PDP_HASHSIZE = 0x3 |
| 1614 | IFLA_GTP_ROLE = 0x4 |
| 1615 | IFLA_BOND_UNSPEC = 0x0 |
| 1616 | IFLA_BOND_MODE = 0x1 |
| 1617 | IFLA_BOND_ACTIVE_SLAVE = 0x2 |
| 1618 | IFLA_BOND_MIIMON = 0x3 |
| 1619 | IFLA_BOND_UPDELAY = 0x4 |
| 1620 | IFLA_BOND_DOWNDELAY = 0x5 |
| 1621 | IFLA_BOND_USE_CARRIER = 0x6 |
| 1622 | IFLA_BOND_ARP_INTERVAL = 0x7 |
| 1623 | IFLA_BOND_ARP_IP_TARGET = 0x8 |
| 1624 | IFLA_BOND_ARP_VALIDATE = 0x9 |
| 1625 | IFLA_BOND_ARP_ALL_TARGETS = 0xa |
| 1626 | IFLA_BOND_PRIMARY = 0xb |
| 1627 | IFLA_BOND_PRIMARY_RESELECT = 0xc |
| 1628 | IFLA_BOND_FAIL_OVER_MAC = 0xd |
| 1629 | IFLA_BOND_XMIT_HASH_POLICY = 0xe |
| 1630 | IFLA_BOND_RESEND_IGMP = 0xf |
| 1631 | IFLA_BOND_NUM_PEER_NOTIF = 0x10 |
| 1632 | IFLA_BOND_ALL_SLAVES_ACTIVE = 0x11 |
| 1633 | IFLA_BOND_MIN_LINKS = 0x12 |
| 1634 | IFLA_BOND_LP_INTERVAL = 0x13 |
| 1635 | IFLA_BOND_PACKETS_PER_SLAVE = 0x14 |
| 1636 | IFLA_BOND_AD_LACP_RATE = 0x15 |
| 1637 | IFLA_BOND_AD_SELECT = 0x16 |
| 1638 | IFLA_BOND_AD_INFO = 0x17 |
| 1639 | IFLA_BOND_AD_ACTOR_SYS_PRIO = 0x18 |
| 1640 | IFLA_BOND_AD_USER_PORT_KEY = 0x19 |
| 1641 | IFLA_BOND_AD_ACTOR_SYSTEM = 0x1a |
| 1642 | IFLA_BOND_TLB_DYNAMIC_LB = 0x1b |
| 1643 | IFLA_BOND_PEER_NOTIF_DELAY = 0x1c |
| 1644 | IFLA_BOND_AD_INFO_UNSPEC = 0x0 |
| 1645 | IFLA_BOND_AD_INFO_AGGREGATOR = 0x1 |
| 1646 | IFLA_BOND_AD_INFO_NUM_PORTS = 0x2 |
| 1647 | IFLA_BOND_AD_INFO_ACTOR_KEY = 0x3 |
| 1648 | IFLA_BOND_AD_INFO_PARTNER_KEY = 0x4 |
| 1649 | IFLA_BOND_AD_INFO_PARTNER_MAC = 0x5 |
| 1650 | IFLA_BOND_SLAVE_UNSPEC = 0x0 |
| 1651 | IFLA_BOND_SLAVE_STATE = 0x1 |
| 1652 | IFLA_BOND_SLAVE_MII_STATUS = 0x2 |
| 1653 | IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 0x3 |
| 1654 | IFLA_BOND_SLAVE_PERM_HWADDR = 0x4 |
| 1655 | IFLA_BOND_SLAVE_QUEUE_ID = 0x5 |
| 1656 | IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 0x6 |
| 1657 | IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 0x7 |
| 1658 | IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 0x8 |
| 1659 | IFLA_VF_INFO_UNSPEC = 0x0 |
| 1660 | IFLA_VF_INFO = 0x1 |
| 1661 | IFLA_VF_UNSPEC = 0x0 |
| 1662 | IFLA_VF_MAC = 0x1 |
| 1663 | IFLA_VF_VLAN = 0x2 |
| 1664 | IFLA_VF_TX_RATE = 0x3 |
| 1665 | IFLA_VF_SPOOFCHK = 0x4 |
| 1666 | IFLA_VF_LINK_STATE = 0x5 |
| 1667 | IFLA_VF_RATE = 0x6 |
| 1668 | IFLA_VF_RSS_QUERY_EN = 0x7 |
| 1669 | IFLA_VF_STATS = 0x8 |
| 1670 | IFLA_VF_TRUST = 0x9 |
| 1671 | IFLA_VF_IB_NODE_GUID = 0xa |
| 1672 | IFLA_VF_IB_PORT_GUID = 0xb |
| 1673 | IFLA_VF_VLAN_LIST = 0xc |
| 1674 | IFLA_VF_BROADCAST = 0xd |
| 1675 | IFLA_VF_VLAN_INFO_UNSPEC = 0x0 |
| 1676 | IFLA_VF_VLAN_INFO = 0x1 |
| 1677 | IFLA_VF_LINK_STATE_AUTO = 0x0 |
| 1678 | IFLA_VF_LINK_STATE_ENABLE = 0x1 |
| 1679 | IFLA_VF_LINK_STATE_DISABLE = 0x2 |
| 1680 | IFLA_VF_STATS_RX_PACKETS = 0x0 |
| 1681 | IFLA_VF_STATS_TX_PACKETS = 0x1 |
| 1682 | IFLA_VF_STATS_RX_BYTES = 0x2 |
| 1683 | IFLA_VF_STATS_TX_BYTES = 0x3 |
| 1684 | IFLA_VF_STATS_BROADCAST = 0x4 |
| 1685 | IFLA_VF_STATS_MULTICAST = 0x5 |
| 1686 | IFLA_VF_STATS_PAD = 0x6 |
| 1687 | IFLA_VF_STATS_RX_DROPPED = 0x7 |
| 1688 | IFLA_VF_STATS_TX_DROPPED = 0x8 |
| 1689 | IFLA_VF_PORT_UNSPEC = 0x0 |
| 1690 | IFLA_VF_PORT = 0x1 |
| 1691 | IFLA_PORT_UNSPEC = 0x0 |
| 1692 | IFLA_PORT_VF = 0x1 |
| 1693 | IFLA_PORT_PROFILE = 0x2 |
| 1694 | IFLA_PORT_VSI_TYPE = 0x3 |
| 1695 | IFLA_PORT_INSTANCE_UUID = 0x4 |
| 1696 | IFLA_PORT_HOST_UUID = 0x5 |
| 1697 | IFLA_PORT_REQUEST = 0x6 |
| 1698 | IFLA_PORT_RESPONSE = 0x7 |
| 1699 | IFLA_IPOIB_UNSPEC = 0x0 |
| 1700 | IFLA_IPOIB_PKEY = 0x1 |
| 1701 | IFLA_IPOIB_MODE = 0x2 |
| 1702 | IFLA_IPOIB_UMCAST = 0x3 |
| 1703 | IFLA_HSR_UNSPEC = 0x0 |
| 1704 | IFLA_HSR_SLAVE1 = 0x1 |
| 1705 | IFLA_HSR_SLAVE2 = 0x2 |
| 1706 | IFLA_HSR_MULTICAST_SPEC = 0x3 |
| 1707 | IFLA_HSR_SUPERVISION_ADDR = 0x4 |
| 1708 | IFLA_HSR_SEQ_NR = 0x5 |
| 1709 | IFLA_HSR_VERSION = 0x6 |
| 1710 | IFLA_HSR_PROTOCOL = 0x7 |
| 1711 | IFLA_STATS_UNSPEC = 0x0 |
| 1712 | IFLA_STATS_LINK_64 = 0x1 |
| 1713 | IFLA_STATS_LINK_XSTATS = 0x2 |
| 1714 | IFLA_STATS_LINK_XSTATS_SLAVE = 0x3 |
| 1715 | IFLA_STATS_LINK_OFFLOAD_XSTATS = 0x4 |
| 1716 | IFLA_STATS_AF_SPEC = 0x5 |
| 1717 | IFLA_OFFLOAD_XSTATS_UNSPEC = 0x0 |
| 1718 | IFLA_OFFLOAD_XSTATS_CPU_HIT = 0x1 |
| 1719 | IFLA_XDP_UNSPEC = 0x0 |
| 1720 | IFLA_XDP_FD = 0x1 |
| 1721 | IFLA_XDP_ATTACHED = 0x2 |
| 1722 | IFLA_XDP_FLAGS = 0x3 |
| 1723 | IFLA_XDP_PROG_ID = 0x4 |
| 1724 | IFLA_XDP_DRV_PROG_ID = 0x5 |
| 1725 | IFLA_XDP_SKB_PROG_ID = 0x6 |
| 1726 | IFLA_XDP_HW_PROG_ID = 0x7 |
| 1727 | IFLA_XDP_EXPECTED_FD = 0x8 |
| 1728 | IFLA_EVENT_NONE = 0x0 |
| 1729 | IFLA_EVENT_REBOOT = 0x1 |
| 1730 | IFLA_EVENT_FEATURES = 0x2 |
| 1731 | IFLA_EVENT_BONDING_FAILOVER = 0x3 |
| 1732 | IFLA_EVENT_NOTIFY_PEERS = 0x4 |
| 1733 | IFLA_EVENT_IGMP_RESEND = 0x5 |
| 1734 | IFLA_EVENT_BONDING_OPTIONS = 0x6 |
| 1735 | IFLA_TUN_UNSPEC = 0x0 |
| 1736 | IFLA_TUN_OWNER = 0x1 |
| 1737 | IFLA_TUN_GROUP = 0x2 |
| 1738 | IFLA_TUN_TYPE = 0x3 |
| 1739 | IFLA_TUN_PI = 0x4 |
| 1740 | IFLA_TUN_VNET_HDR = 0x5 |
| 1741 | IFLA_TUN_PERSIST = 0x6 |
| 1742 | IFLA_TUN_MULTI_QUEUE = 0x7 |
| 1743 | IFLA_TUN_NUM_QUEUES = 0x8 |
| 1744 | IFLA_TUN_NUM_DISABLED_QUEUES = 0x9 |
| 1745 | IFLA_RMNET_UNSPEC = 0x0 |
| 1746 | IFLA_RMNET_MUX_ID = 0x1 |
| 1747 | IFLA_RMNET_FLAGS = 0x2 |
| 1748 | ) |
| 1749 | |
| 1750 | const ( |
| 1751 | NF_INET_PRE_ROUTING = 0x0 |
| 1752 | NF_INET_LOCAL_IN = 0x1 |
| 1753 | NF_INET_FORWARD = 0x2 |
| 1754 | NF_INET_LOCAL_OUT = 0x3 |
| 1755 | NF_INET_POST_ROUTING = 0x4 |
| 1756 | NF_INET_NUMHOOKS = 0x5 |
| 1757 | ) |
| 1758 | |
| 1759 | const ( |
| 1760 | NF_NETDEV_INGRESS = 0x0 |
| 1761 | NF_NETDEV_NUMHOOKS = 0x1 |
| 1762 | ) |
| 1763 | |
| 1764 | const ( |
| 1765 | NFPROTO_UNSPEC = 0x0 |
| 1766 | NFPROTO_INET = 0x1 |
| 1767 | NFPROTO_IPV4 = 0x2 |
| 1768 | NFPROTO_ARP = 0x3 |
| 1769 | NFPROTO_NETDEV = 0x5 |
| 1770 | NFPROTO_BRIDGE = 0x7 |
| 1771 | NFPROTO_IPV6 = 0xa |
| 1772 | NFPROTO_DECNET = 0xc |
| 1773 | NFPROTO_NUMPROTO = 0xd |
| 1774 | ) |
| 1775 | |
| 1776 | type Nfgenmsg struct { |
| 1777 | Nfgen_family uint8 |
| 1778 | Version uint8 |
| 1779 | Res_id uint16 |
| 1780 | } |
| 1781 | |
| 1782 | const ( |
| 1783 | NFNL_BATCH_UNSPEC = 0x0 |
| 1784 | NFNL_BATCH_GENID = 0x1 |
| 1785 | ) |
| 1786 | |
| 1787 | const ( |
| 1788 | NFT_REG_VERDICT = 0x0 |
| 1789 | NFT_REG_1 = 0x1 |
| 1790 | NFT_REG_2 = 0x2 |
| 1791 | NFT_REG_3 = 0x3 |
| 1792 | NFT_REG_4 = 0x4 |
| 1793 | NFT_REG32_00 = 0x8 |
| 1794 | NFT_REG32_01 = 0x9 |
| 1795 | NFT_REG32_02 = 0xa |
| 1796 | NFT_REG32_03 = 0xb |
| 1797 | NFT_REG32_04 = 0xc |
| 1798 | NFT_REG32_05 = 0xd |
| 1799 | NFT_REG32_06 = 0xe |
| 1800 | NFT_REG32_07 = 0xf |
| 1801 | NFT_REG32_08 = 0x10 |
| 1802 | NFT_REG32_09 = 0x11 |
| 1803 | NFT_REG32_10 = 0x12 |
| 1804 | NFT_REG32_11 = 0x13 |
| 1805 | NFT_REG32_12 = 0x14 |
| 1806 | NFT_REG32_13 = 0x15 |
| 1807 | NFT_REG32_14 = 0x16 |
| 1808 | NFT_REG32_15 = 0x17 |
| 1809 | NFT_CONTINUE = -0x1 |
| 1810 | NFT_BREAK = -0x2 |
| 1811 | NFT_JUMP = -0x3 |
| 1812 | NFT_GOTO = -0x4 |
| 1813 | NFT_RETURN = -0x5 |
| 1814 | NFT_MSG_NEWTABLE = 0x0 |
| 1815 | NFT_MSG_GETTABLE = 0x1 |
| 1816 | NFT_MSG_DELTABLE = 0x2 |
| 1817 | NFT_MSG_NEWCHAIN = 0x3 |
| 1818 | NFT_MSG_GETCHAIN = 0x4 |
| 1819 | NFT_MSG_DELCHAIN = 0x5 |
| 1820 | NFT_MSG_NEWRULE = 0x6 |
| 1821 | NFT_MSG_GETRULE = 0x7 |
| 1822 | NFT_MSG_DELRULE = 0x8 |
| 1823 | NFT_MSG_NEWSET = 0x9 |
| 1824 | NFT_MSG_GETSET = 0xa |
| 1825 | NFT_MSG_DELSET = 0xb |
| 1826 | NFT_MSG_NEWSETELEM = 0xc |
| 1827 | NFT_MSG_GETSETELEM = 0xd |
| 1828 | NFT_MSG_DELSETELEM = 0xe |
| 1829 | NFT_MSG_NEWGEN = 0xf |
| 1830 | NFT_MSG_GETGEN = 0x10 |
| 1831 | NFT_MSG_TRACE = 0x11 |
| 1832 | NFT_MSG_NEWOBJ = 0x12 |
| 1833 | NFT_MSG_GETOBJ = 0x13 |
| 1834 | NFT_MSG_DELOBJ = 0x14 |
| 1835 | NFT_MSG_GETOBJ_RESET = 0x15 |
| 1836 | NFT_MSG_MAX = 0x19 |
| 1837 | NFTA_LIST_UNSPEC = 0x0 |
| 1838 | NFTA_LIST_ELEM = 0x1 |
| 1839 | NFTA_HOOK_UNSPEC = 0x0 |
| 1840 | NFTA_HOOK_HOOKNUM = 0x1 |
| 1841 | NFTA_HOOK_PRIORITY = 0x2 |
| 1842 | NFTA_HOOK_DEV = 0x3 |
| 1843 | NFT_TABLE_F_DORMANT = 0x1 |
| 1844 | NFTA_TABLE_UNSPEC = 0x0 |
| 1845 | NFTA_TABLE_NAME = 0x1 |
| 1846 | NFTA_TABLE_FLAGS = 0x2 |
| 1847 | NFTA_TABLE_USE = 0x3 |
| 1848 | NFTA_CHAIN_UNSPEC = 0x0 |
| 1849 | NFTA_CHAIN_TABLE = 0x1 |
| 1850 | NFTA_CHAIN_HANDLE = 0x2 |
| 1851 | NFTA_CHAIN_NAME = 0x3 |
| 1852 | NFTA_CHAIN_HOOK = 0x4 |
| 1853 | NFTA_CHAIN_POLICY = 0x5 |
| 1854 | NFTA_CHAIN_USE = 0x6 |
| 1855 | NFTA_CHAIN_TYPE = 0x7 |
| 1856 | NFTA_CHAIN_COUNTERS = 0x8 |
| 1857 | NFTA_CHAIN_PAD = 0x9 |
| 1858 | NFTA_RULE_UNSPEC = 0x0 |
| 1859 | NFTA_RULE_TABLE = 0x1 |
| 1860 | NFTA_RULE_CHAIN = 0x2 |
| 1861 | NFTA_RULE_HANDLE = 0x3 |
| 1862 | NFTA_RULE_EXPRESSIONS = 0x4 |
| 1863 | NFTA_RULE_COMPAT = 0x5 |
| 1864 | NFTA_RULE_POSITION = 0x6 |
| 1865 | NFTA_RULE_USERDATA = 0x7 |
| 1866 | NFTA_RULE_PAD = 0x8 |
| 1867 | NFTA_RULE_ID = 0x9 |
| 1868 | NFT_RULE_COMPAT_F_INV = 0x2 |
| 1869 | NFT_RULE_COMPAT_F_MASK = 0x2 |
| 1870 | NFTA_RULE_COMPAT_UNSPEC = 0x0 |
| 1871 | NFTA_RULE_COMPAT_PROTO = 0x1 |
| 1872 | NFTA_RULE_COMPAT_FLAGS = 0x2 |
| 1873 | NFT_SET_ANONYMOUS = 0x1 |
| 1874 | NFT_SET_CONSTANT = 0x2 |
| 1875 | NFT_SET_INTERVAL = 0x4 |
| 1876 | NFT_SET_MAP = 0x8 |
| 1877 | NFT_SET_TIMEOUT = 0x10 |
| 1878 | NFT_SET_EVAL = 0x20 |
| 1879 | NFT_SET_OBJECT = 0x40 |
| 1880 | NFT_SET_POL_PERFORMANCE = 0x0 |
| 1881 | NFT_SET_POL_MEMORY = 0x1 |
| 1882 | NFTA_SET_DESC_UNSPEC = 0x0 |
| 1883 | NFTA_SET_DESC_SIZE = 0x1 |
| 1884 | NFTA_SET_UNSPEC = 0x0 |
| 1885 | NFTA_SET_TABLE = 0x1 |
| 1886 | NFTA_SET_NAME = 0x2 |
| 1887 | NFTA_SET_FLAGS = 0x3 |
| 1888 | NFTA_SET_KEY_TYPE = 0x4 |
| 1889 | NFTA_SET_KEY_LEN = 0x5 |
| 1890 | NFTA_SET_DATA_TYPE = 0x6 |
| 1891 | NFTA_SET_DATA_LEN = 0x7 |
| 1892 | NFTA_SET_POLICY = 0x8 |
| 1893 | NFTA_SET_DESC = 0x9 |
| 1894 | NFTA_SET_ID = 0xa |
| 1895 | NFTA_SET_TIMEOUT = 0xb |
| 1896 | NFTA_SET_GC_INTERVAL = 0xc |
| 1897 | NFTA_SET_USERDATA = 0xd |
| 1898 | NFTA_SET_PAD = 0xe |
| 1899 | NFTA_SET_OBJ_TYPE = 0xf |
| 1900 | NFT_SET_ELEM_INTERVAL_END = 0x1 |
| 1901 | NFTA_SET_ELEM_UNSPEC = 0x0 |
| 1902 | NFTA_SET_ELEM_KEY = 0x1 |
| 1903 | NFTA_SET_ELEM_DATA = 0x2 |
| 1904 | NFTA_SET_ELEM_FLAGS = 0x3 |
| 1905 | NFTA_SET_ELEM_TIMEOUT = 0x4 |
| 1906 | NFTA_SET_ELEM_EXPIRATION = 0x5 |
| 1907 | NFTA_SET_ELEM_USERDATA = 0x6 |
| 1908 | NFTA_SET_ELEM_EXPR = 0x7 |
| 1909 | NFTA_SET_ELEM_PAD = 0x8 |
| 1910 | NFTA_SET_ELEM_OBJREF = 0x9 |
| 1911 | NFTA_SET_ELEM_LIST_UNSPEC = 0x0 |
| 1912 | NFTA_SET_ELEM_LIST_TABLE = 0x1 |
| 1913 | NFTA_SET_ELEM_LIST_SET = 0x2 |
| 1914 | NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 |
| 1915 | NFTA_SET_ELEM_LIST_SET_ID = 0x4 |
| 1916 | NFT_DATA_VALUE = 0x0 |
| 1917 | NFT_DATA_VERDICT = 0xffffff00 |
| 1918 | NFTA_DATA_UNSPEC = 0x0 |
| 1919 | NFTA_DATA_VALUE = 0x1 |
| 1920 | NFTA_DATA_VERDICT = 0x2 |
| 1921 | NFTA_VERDICT_UNSPEC = 0x0 |
| 1922 | NFTA_VERDICT_CODE = 0x1 |
| 1923 | NFTA_VERDICT_CHAIN = 0x2 |
| 1924 | NFTA_EXPR_UNSPEC = 0x0 |
| 1925 | NFTA_EXPR_NAME = 0x1 |
| 1926 | NFTA_EXPR_DATA = 0x2 |
| 1927 | NFTA_IMMEDIATE_UNSPEC = 0x0 |
| 1928 | NFTA_IMMEDIATE_DREG = 0x1 |
| 1929 | NFTA_IMMEDIATE_DATA = 0x2 |
| 1930 | NFTA_BITWISE_UNSPEC = 0x0 |
| 1931 | NFTA_BITWISE_SREG = 0x1 |
| 1932 | NFTA_BITWISE_DREG = 0x2 |
| 1933 | NFTA_BITWISE_LEN = 0x3 |
| 1934 | NFTA_BITWISE_MASK = 0x4 |
| 1935 | NFTA_BITWISE_XOR = 0x5 |
| 1936 | NFT_BYTEORDER_NTOH = 0x0 |
| 1937 | NFT_BYTEORDER_HTON = 0x1 |
| 1938 | NFTA_BYTEORDER_UNSPEC = 0x0 |
| 1939 | NFTA_BYTEORDER_SREG = 0x1 |
| 1940 | NFTA_BYTEORDER_DREG = 0x2 |
| 1941 | NFTA_BYTEORDER_OP = 0x3 |
| 1942 | NFTA_BYTEORDER_LEN = 0x4 |
| 1943 | NFTA_BYTEORDER_SIZE = 0x5 |
| 1944 | NFT_CMP_EQ = 0x0 |
| 1945 | NFT_CMP_NEQ = 0x1 |
| 1946 | NFT_CMP_LT = 0x2 |
| 1947 | NFT_CMP_LTE = 0x3 |
| 1948 | NFT_CMP_GT = 0x4 |
| 1949 | NFT_CMP_GTE = 0x5 |
| 1950 | NFTA_CMP_UNSPEC = 0x0 |
| 1951 | NFTA_CMP_SREG = 0x1 |
| 1952 | NFTA_CMP_OP = 0x2 |
| 1953 | NFTA_CMP_DATA = 0x3 |
| 1954 | NFT_RANGE_EQ = 0x0 |
| 1955 | NFT_RANGE_NEQ = 0x1 |
| 1956 | NFTA_RANGE_UNSPEC = 0x0 |
| 1957 | NFTA_RANGE_SREG = 0x1 |
| 1958 | NFTA_RANGE_OP = 0x2 |
| 1959 | NFTA_RANGE_FROM_DATA = 0x3 |
| 1960 | NFTA_RANGE_TO_DATA = 0x4 |
| 1961 | NFT_LOOKUP_F_INV = 0x1 |
| 1962 | NFTA_LOOKUP_UNSPEC = 0x0 |
| 1963 | NFTA_LOOKUP_SET = 0x1 |
| 1964 | NFTA_LOOKUP_SREG = 0x2 |
| 1965 | NFTA_LOOKUP_DREG = 0x3 |
| 1966 | NFTA_LOOKUP_SET_ID = 0x4 |
| 1967 | NFTA_LOOKUP_FLAGS = 0x5 |
| 1968 | NFT_DYNSET_OP_ADD = 0x0 |
| 1969 | NFT_DYNSET_OP_UPDATE = 0x1 |
| 1970 | NFT_DYNSET_F_INV = 0x1 |
| 1971 | NFTA_DYNSET_UNSPEC = 0x0 |
| 1972 | NFTA_DYNSET_SET_NAME = 0x1 |
| 1973 | NFTA_DYNSET_SET_ID = 0x2 |
| 1974 | NFTA_DYNSET_OP = 0x3 |
| 1975 | NFTA_DYNSET_SREG_KEY = 0x4 |
| 1976 | NFTA_DYNSET_SREG_DATA = 0x5 |
| 1977 | NFTA_DYNSET_TIMEOUT = 0x6 |
| 1978 | NFTA_DYNSET_EXPR = 0x7 |
| 1979 | NFTA_DYNSET_PAD = 0x8 |
| 1980 | NFTA_DYNSET_FLAGS = 0x9 |
| 1981 | NFT_PAYLOAD_LL_HEADER = 0x0 |
| 1982 | NFT_PAYLOAD_NETWORK_HEADER = 0x1 |
| 1983 | NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 |
| 1984 | NFT_PAYLOAD_CSUM_NONE = 0x0 |
| 1985 | NFT_PAYLOAD_CSUM_INET = 0x1 |
| 1986 | NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 |
| 1987 | NFTA_PAYLOAD_UNSPEC = 0x0 |
| 1988 | NFTA_PAYLOAD_DREG = 0x1 |
| 1989 | NFTA_PAYLOAD_BASE = 0x2 |
| 1990 | NFTA_PAYLOAD_OFFSET = 0x3 |
| 1991 | NFTA_PAYLOAD_LEN = 0x4 |
| 1992 | NFTA_PAYLOAD_SREG = 0x5 |
| 1993 | NFTA_PAYLOAD_CSUM_TYPE = 0x6 |
| 1994 | NFTA_PAYLOAD_CSUM_OFFSET = 0x7 |
| 1995 | NFTA_PAYLOAD_CSUM_FLAGS = 0x8 |
| 1996 | NFT_EXTHDR_F_PRESENT = 0x1 |
| 1997 | NFT_EXTHDR_OP_IPV6 = 0x0 |
| 1998 | NFT_EXTHDR_OP_TCPOPT = 0x1 |
| 1999 | NFTA_EXTHDR_UNSPEC = 0x0 |
| 2000 | NFTA_EXTHDR_DREG = 0x1 |
| 2001 | NFTA_EXTHDR_TYPE = 0x2 |
| 2002 | NFTA_EXTHDR_OFFSET = 0x3 |
| 2003 | NFTA_EXTHDR_LEN = 0x4 |
| 2004 | NFTA_EXTHDR_FLAGS = 0x5 |
| 2005 | NFTA_EXTHDR_OP = 0x6 |
| 2006 | NFTA_EXTHDR_SREG = 0x7 |
| 2007 | NFT_META_LEN = 0x0 |
| 2008 | NFT_META_PROTOCOL = 0x1 |
| 2009 | NFT_META_PRIORITY = 0x2 |
| 2010 | NFT_META_MARK = 0x3 |
| 2011 | NFT_META_IIF = 0x4 |
| 2012 | NFT_META_OIF = 0x5 |
| 2013 | NFT_META_IIFNAME = 0x6 |
| 2014 | NFT_META_OIFNAME = 0x7 |
| 2015 | NFT_META_IIFTYPE = 0x8 |
| 2016 | NFT_META_OIFTYPE = 0x9 |
| 2017 | NFT_META_SKUID = 0xa |
| 2018 | NFT_META_SKGID = 0xb |
| 2019 | NFT_META_NFTRACE = 0xc |
| 2020 | NFT_META_RTCLASSID = 0xd |
| 2021 | NFT_META_SECMARK = 0xe |
| 2022 | NFT_META_NFPROTO = 0xf |
| 2023 | NFT_META_L4PROTO = 0x10 |
| 2024 | NFT_META_BRI_IIFNAME = 0x11 |
| 2025 | NFT_META_BRI_OIFNAME = 0x12 |
| 2026 | NFT_META_PKTTYPE = 0x13 |
| 2027 | NFT_META_CPU = 0x14 |
| 2028 | NFT_META_IIFGROUP = 0x15 |
| 2029 | NFT_META_OIFGROUP = 0x16 |
| 2030 | NFT_META_CGROUP = 0x17 |
| 2031 | NFT_META_PRANDOM = 0x18 |
| 2032 | NFT_RT_CLASSID = 0x0 |
| 2033 | NFT_RT_NEXTHOP4 = 0x1 |
| 2034 | NFT_RT_NEXTHOP6 = 0x2 |
| 2035 | NFT_RT_TCPMSS = 0x3 |
| 2036 | NFT_HASH_JENKINS = 0x0 |
| 2037 | NFT_HASH_SYM = 0x1 |
| 2038 | NFTA_HASH_UNSPEC = 0x0 |
| 2039 | NFTA_HASH_SREG = 0x1 |
| 2040 | NFTA_HASH_DREG = 0x2 |
| 2041 | NFTA_HASH_LEN = 0x3 |
| 2042 | NFTA_HASH_MODULUS = 0x4 |
| 2043 | NFTA_HASH_SEED = 0x5 |
| 2044 | NFTA_HASH_OFFSET = 0x6 |
| 2045 | NFTA_HASH_TYPE = 0x7 |
| 2046 | NFTA_META_UNSPEC = 0x0 |
| 2047 | NFTA_META_DREG = 0x1 |
| 2048 | NFTA_META_KEY = 0x2 |
| 2049 | NFTA_META_SREG = 0x3 |
| 2050 | NFTA_RT_UNSPEC = 0x0 |
| 2051 | NFTA_RT_DREG = 0x1 |
| 2052 | NFTA_RT_KEY = 0x2 |
| 2053 | NFT_CT_STATE = 0x0 |
| 2054 | NFT_CT_DIRECTION = 0x1 |
| 2055 | NFT_CT_STATUS = 0x2 |
| 2056 | NFT_CT_MARK = 0x3 |
| 2057 | NFT_CT_SECMARK = 0x4 |
| 2058 | NFT_CT_EXPIRATION = 0x5 |
| 2059 | NFT_CT_HELPER = 0x6 |
| 2060 | NFT_CT_L3PROTOCOL = 0x7 |
| 2061 | NFT_CT_SRC = 0x8 |
| 2062 | NFT_CT_DST = 0x9 |
| 2063 | NFT_CT_PROTOCOL = 0xa |
| 2064 | NFT_CT_PROTO_SRC = 0xb |
| 2065 | NFT_CT_PROTO_DST = 0xc |
| 2066 | NFT_CT_LABELS = 0xd |
| 2067 | NFT_CT_PKTS = 0xe |
| 2068 | NFT_CT_BYTES = 0xf |
| 2069 | NFT_CT_AVGPKT = 0x10 |
| 2070 | NFT_CT_ZONE = 0x11 |
| 2071 | NFT_CT_EVENTMASK = 0x12 |
| 2072 | NFTA_CT_UNSPEC = 0x0 |
| 2073 | NFTA_CT_DREG = 0x1 |
| 2074 | NFTA_CT_KEY = 0x2 |
| 2075 | NFTA_CT_DIRECTION = 0x3 |
| 2076 | NFTA_CT_SREG = 0x4 |
| 2077 | NFT_LIMIT_PKTS = 0x0 |
| 2078 | NFT_LIMIT_PKT_BYTES = 0x1 |
| 2079 | NFT_LIMIT_F_INV = 0x1 |
| 2080 | NFTA_LIMIT_UNSPEC = 0x0 |
| 2081 | NFTA_LIMIT_RATE = 0x1 |
| 2082 | NFTA_LIMIT_UNIT = 0x2 |
| 2083 | NFTA_LIMIT_BURST = 0x3 |
| 2084 | NFTA_LIMIT_TYPE = 0x4 |
| 2085 | NFTA_LIMIT_FLAGS = 0x5 |
| 2086 | NFTA_LIMIT_PAD = 0x6 |
| 2087 | NFTA_COUNTER_UNSPEC = 0x0 |
| 2088 | NFTA_COUNTER_BYTES = 0x1 |
| 2089 | NFTA_COUNTER_PACKETS = 0x2 |
| 2090 | NFTA_COUNTER_PAD = 0x3 |
| 2091 | NFTA_LOG_UNSPEC = 0x0 |
| 2092 | NFTA_LOG_GROUP = 0x1 |
| 2093 | NFTA_LOG_PREFIX = 0x2 |
| 2094 | NFTA_LOG_SNAPLEN = 0x3 |
| 2095 | NFTA_LOG_QTHRESHOLD = 0x4 |
| 2096 | NFTA_LOG_LEVEL = 0x5 |
| 2097 | NFTA_LOG_FLAGS = 0x6 |
| 2098 | NFTA_QUEUE_UNSPEC = 0x0 |
| 2099 | NFTA_QUEUE_NUM = 0x1 |
| 2100 | NFTA_QUEUE_TOTAL = 0x2 |
| 2101 | NFTA_QUEUE_FLAGS = 0x3 |
| 2102 | NFTA_QUEUE_SREG_QNUM = 0x4 |
| 2103 | NFT_QUOTA_F_INV = 0x1 |
| 2104 | NFT_QUOTA_F_DEPLETED = 0x2 |
| 2105 | NFTA_QUOTA_UNSPEC = 0x0 |
| 2106 | NFTA_QUOTA_BYTES = 0x1 |
| 2107 | NFTA_QUOTA_FLAGS = 0x2 |
| 2108 | NFTA_QUOTA_PAD = 0x3 |
| 2109 | NFTA_QUOTA_CONSUMED = 0x4 |
| 2110 | NFT_REJECT_ICMP_UNREACH = 0x0 |
| 2111 | NFT_REJECT_TCP_RST = 0x1 |
| 2112 | NFT_REJECT_ICMPX_UNREACH = 0x2 |
| 2113 | NFT_REJECT_ICMPX_NO_ROUTE = 0x0 |
| 2114 | NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 |
| 2115 | NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 |
| 2116 | NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 |
| 2117 | NFTA_REJECT_UNSPEC = 0x0 |
| 2118 | NFTA_REJECT_TYPE = 0x1 |
| 2119 | NFTA_REJECT_ICMP_CODE = 0x2 |
| 2120 | NFT_NAT_SNAT = 0x0 |
| 2121 | NFT_NAT_DNAT = 0x1 |
| 2122 | NFTA_NAT_UNSPEC = 0x0 |
| 2123 | NFTA_NAT_TYPE = 0x1 |
| 2124 | NFTA_NAT_FAMILY = 0x2 |
| 2125 | NFTA_NAT_REG_ADDR_MIN = 0x3 |
| 2126 | NFTA_NAT_REG_ADDR_MAX = 0x4 |
| 2127 | NFTA_NAT_REG_PROTO_MIN = 0x5 |
| 2128 | NFTA_NAT_REG_PROTO_MAX = 0x6 |
| 2129 | NFTA_NAT_FLAGS = 0x7 |
| 2130 | NFTA_MASQ_UNSPEC = 0x0 |
| 2131 | NFTA_MASQ_FLAGS = 0x1 |
| 2132 | NFTA_MASQ_REG_PROTO_MIN = 0x2 |
| 2133 | NFTA_MASQ_REG_PROTO_MAX = 0x3 |
| 2134 | NFTA_REDIR_UNSPEC = 0x0 |
| 2135 | NFTA_REDIR_REG_PROTO_MIN = 0x1 |
| 2136 | NFTA_REDIR_REG_PROTO_MAX = 0x2 |
| 2137 | NFTA_REDIR_FLAGS = 0x3 |
| 2138 | NFTA_DUP_UNSPEC = 0x0 |
| 2139 | NFTA_DUP_SREG_ADDR = 0x1 |
| 2140 | NFTA_DUP_SREG_DEV = 0x2 |
| 2141 | NFTA_FWD_UNSPEC = 0x0 |
| 2142 | NFTA_FWD_SREG_DEV = 0x1 |
| 2143 | NFTA_OBJREF_UNSPEC = 0x0 |
| 2144 | NFTA_OBJREF_IMM_TYPE = 0x1 |
| 2145 | NFTA_OBJREF_IMM_NAME = 0x2 |
| 2146 | NFTA_OBJREF_SET_SREG = 0x3 |
| 2147 | NFTA_OBJREF_SET_NAME = 0x4 |
| 2148 | NFTA_OBJREF_SET_ID = 0x5 |
| 2149 | NFTA_GEN_UNSPEC = 0x0 |
| 2150 | NFTA_GEN_ID = 0x1 |
| 2151 | NFTA_GEN_PROC_PID = 0x2 |
| 2152 | NFTA_GEN_PROC_NAME = 0x3 |
| 2153 | NFTA_FIB_UNSPEC = 0x0 |
| 2154 | NFTA_FIB_DREG = 0x1 |
| 2155 | NFTA_FIB_RESULT = 0x2 |
| 2156 | NFTA_FIB_FLAGS = 0x3 |
| 2157 | NFT_FIB_RESULT_UNSPEC = 0x0 |
| 2158 | NFT_FIB_RESULT_OIF = 0x1 |
| 2159 | NFT_FIB_RESULT_OIFNAME = 0x2 |
| 2160 | NFT_FIB_RESULT_ADDRTYPE = 0x3 |
| 2161 | NFTA_FIB_F_SADDR = 0x1 |
| 2162 | NFTA_FIB_F_DADDR = 0x2 |
| 2163 | NFTA_FIB_F_MARK = 0x4 |
| 2164 | NFTA_FIB_F_IIF = 0x8 |
| 2165 | NFTA_FIB_F_OIF = 0x10 |
| 2166 | NFTA_FIB_F_PRESENT = 0x20 |
| 2167 | NFTA_CT_HELPER_UNSPEC = 0x0 |
| 2168 | NFTA_CT_HELPER_NAME = 0x1 |
| 2169 | NFTA_CT_HELPER_L3PROTO = 0x2 |
| 2170 | NFTA_CT_HELPER_L4PROTO = 0x3 |
| 2171 | NFTA_OBJ_UNSPEC = 0x0 |
| 2172 | NFTA_OBJ_TABLE = 0x1 |
| 2173 | NFTA_OBJ_NAME = 0x2 |
| 2174 | NFTA_OBJ_TYPE = 0x3 |
| 2175 | NFTA_OBJ_DATA = 0x4 |
| 2176 | NFTA_OBJ_USE = 0x5 |
| 2177 | NFTA_TRACE_UNSPEC = 0x0 |
| 2178 | NFTA_TRACE_TABLE = 0x1 |
| 2179 | NFTA_TRACE_CHAIN = 0x2 |
| 2180 | NFTA_TRACE_RULE_HANDLE = 0x3 |
| 2181 | NFTA_TRACE_TYPE = 0x4 |
| 2182 | NFTA_TRACE_VERDICT = 0x5 |
| 2183 | NFTA_TRACE_ID = 0x6 |
| 2184 | NFTA_TRACE_LL_HEADER = 0x7 |
| 2185 | NFTA_TRACE_NETWORK_HEADER = 0x8 |
| 2186 | NFTA_TRACE_TRANSPORT_HEADER = 0x9 |
| 2187 | NFTA_TRACE_IIF = 0xa |
| 2188 | NFTA_TRACE_IIFTYPE = 0xb |
| 2189 | NFTA_TRACE_OIF = 0xc |
| 2190 | NFTA_TRACE_OIFTYPE = 0xd |
| 2191 | NFTA_TRACE_MARK = 0xe |
| 2192 | NFTA_TRACE_NFPROTO = 0xf |
| 2193 | NFTA_TRACE_POLICY = 0x10 |
| 2194 | NFTA_TRACE_PAD = 0x11 |
| 2195 | NFT_TRACETYPE_UNSPEC = 0x0 |
| 2196 | NFT_TRACETYPE_POLICY = 0x1 |
| 2197 | NFT_TRACETYPE_RETURN = 0x2 |
| 2198 | NFT_TRACETYPE_RULE = 0x3 |
| 2199 | NFTA_NG_UNSPEC = 0x0 |
| 2200 | NFTA_NG_DREG = 0x1 |
| 2201 | NFTA_NG_MODULUS = 0x2 |
| 2202 | NFTA_NG_TYPE = 0x3 |
| 2203 | NFTA_NG_OFFSET = 0x4 |
| 2204 | NFT_NG_INCREMENTAL = 0x0 |
| 2205 | NFT_NG_RANDOM = 0x1 |
| 2206 | ) |
| 2207 | |
| 2208 | const ( |
| 2209 | NFTA_TARGET_UNSPEC = 0x0 |
| 2210 | NFTA_TARGET_NAME = 0x1 |
| 2211 | NFTA_TARGET_REV = 0x2 |
| 2212 | NFTA_TARGET_INFO = 0x3 |
| 2213 | NFTA_MATCH_UNSPEC = 0x0 |
| 2214 | NFTA_MATCH_NAME = 0x1 |
| 2215 | NFTA_MATCH_REV = 0x2 |
| 2216 | NFTA_MATCH_INFO = 0x3 |
| 2217 | NFTA_COMPAT_UNSPEC = 0x0 |
| 2218 | NFTA_COMPAT_NAME = 0x1 |
| 2219 | NFTA_COMPAT_REV = 0x2 |
| 2220 | NFTA_COMPAT_TYPE = 0x3 |
| 2221 | ) |
| 2222 | |
| 2223 | type RTCTime struct { |
| 2224 | Sec int32 |
| 2225 | Min int32 |
| 2226 | Hour int32 |
| 2227 | Mday int32 |
| 2228 | Mon int32 |
| 2229 | Year int32 |
| 2230 | Wday int32 |
| 2231 | Yday int32 |
| 2232 | Isdst int32 |
| 2233 | } |
| 2234 | |
| 2235 | type RTCWkAlrm struct { |
| 2236 | Enabled uint8 |
| 2237 | Pending uint8 |
| 2238 | Time RTCTime |
| 2239 | } |
| 2240 | |
| 2241 | type BlkpgIoctlArg struct { |
| 2242 | Op int32 |
| 2243 | Flags int32 |
| 2244 | Datalen int32 |
| 2245 | Data *byte |
| 2246 | } |
| 2247 | |
| 2248 | const ( |
| 2249 | BLKPG_ADD_PARTITION = 0x1 |
| 2250 | BLKPG_DEL_PARTITION = 0x2 |
| 2251 | BLKPG_RESIZE_PARTITION = 0x3 |
| 2252 | ) |
| 2253 | |
| 2254 | const ( |
| 2255 | NETNSA_NONE = 0x0 |
| 2256 | NETNSA_NSID = 0x1 |
| 2257 | NETNSA_PID = 0x2 |
| 2258 | NETNSA_FD = 0x3 |
| 2259 | NETNSA_TARGET_NSID = 0x4 |
| 2260 | NETNSA_CURRENT_NSID = 0x5 |
| 2261 | ) |
| 2262 | |
| 2263 | type XDPRingOffset struct { |
| 2264 | Producer uint64 |
| 2265 | Consumer uint64 |
| 2266 | Desc uint64 |
| 2267 | Flags uint64 |
| 2268 | } |
| 2269 | |
| 2270 | type XDPMmapOffsets struct { |
| 2271 | Rx XDPRingOffset |
| 2272 | Tx XDPRingOffset |
| 2273 | Fr XDPRingOffset |
| 2274 | Cr XDPRingOffset |
| 2275 | } |
| 2276 | |
| 2277 | type XDPStatistics struct { |
| 2278 | Rx_dropped uint64 |
| 2279 | Rx_invalid_descs uint64 |
| 2280 | Tx_invalid_descs uint64 |
| 2281 | Rx_ring_full uint64 |
| 2282 | Rx_fill_ring_empty_descs uint64 |
| 2283 | Tx_ring_empty_descs uint64 |
| 2284 | } |
| 2285 | |
| 2286 | type XDPDesc struct { |
| 2287 | Addr uint64 |
| 2288 | Len uint32 |
| 2289 | Options uint32 |
| 2290 | } |
| 2291 | |
| 2292 | const ( |
| 2293 | NCSI_CMD_UNSPEC = 0x0 |
| 2294 | NCSI_CMD_PKG_INFO = 0x1 |
| 2295 | NCSI_CMD_SET_INTERFACE = 0x2 |
| 2296 | NCSI_CMD_CLEAR_INTERFACE = 0x3 |
| 2297 | NCSI_ATTR_UNSPEC = 0x0 |
| 2298 | NCSI_ATTR_IFINDEX = 0x1 |
| 2299 | NCSI_ATTR_PACKAGE_LIST = 0x2 |
| 2300 | NCSI_ATTR_PACKAGE_ID = 0x3 |
| 2301 | NCSI_ATTR_CHANNEL_ID = 0x4 |
| 2302 | NCSI_PKG_ATTR_UNSPEC = 0x0 |
| 2303 | NCSI_PKG_ATTR = 0x1 |
| 2304 | NCSI_PKG_ATTR_ID = 0x2 |
| 2305 | NCSI_PKG_ATTR_FORCED = 0x3 |
| 2306 | NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 |
| 2307 | NCSI_CHANNEL_ATTR_UNSPEC = 0x0 |
| 2308 | NCSI_CHANNEL_ATTR = 0x1 |
| 2309 | NCSI_CHANNEL_ATTR_ID = 0x2 |
| 2310 | NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 |
| 2311 | NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 |
| 2312 | NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 |
| 2313 | NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 |
| 2314 | NCSI_CHANNEL_ATTR_ACTIVE = 0x7 |
| 2315 | NCSI_CHANNEL_ATTR_FORCED = 0x8 |
| 2316 | NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 |
| 2317 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa |
| 2318 | ) |
| 2319 | |
| 2320 | type ScmTimestamping struct { |
| 2321 | Ts [3]Timespec |
| 2322 | } |
| 2323 | |
| 2324 | const ( |
| 2325 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 |
| 2326 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 |
| 2327 | SOF_TIMESTAMPING_RX_HARDWARE = 0x4 |
| 2328 | SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 |
| 2329 | SOF_TIMESTAMPING_SOFTWARE = 0x10 |
| 2330 | SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 |
| 2331 | SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 |
| 2332 | SOF_TIMESTAMPING_OPT_ID = 0x80 |
| 2333 | SOF_TIMESTAMPING_TX_SCHED = 0x100 |
| 2334 | SOF_TIMESTAMPING_TX_ACK = 0x200 |
| 2335 | SOF_TIMESTAMPING_OPT_CMSG = 0x400 |
| 2336 | SOF_TIMESTAMPING_OPT_TSONLY = 0x800 |
| 2337 | SOF_TIMESTAMPING_OPT_STATS = 0x1000 |
| 2338 | SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 |
| 2339 | SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 |
| 2340 | |
| 2341 | SOF_TIMESTAMPING_LAST = 0x4000 |
| 2342 | SOF_TIMESTAMPING_MASK = 0x7fff |
| 2343 | |
| 2344 | SCM_TSTAMP_SND = 0x0 |
| 2345 | SCM_TSTAMP_SCHED = 0x1 |
| 2346 | SCM_TSTAMP_ACK = 0x2 |
| 2347 | ) |
| 2348 | |
| 2349 | type SockExtendedErr struct { |
| 2350 | Errno uint32 |
| 2351 | Origin uint8 |
| 2352 | Type uint8 |
| 2353 | Code uint8 |
| 2354 | Pad uint8 |
| 2355 | Info uint32 |
| 2356 | Data uint32 |
| 2357 | } |
| 2358 | |
| 2359 | type FanotifyEventMetadata struct { |
| 2360 | Event_len uint32 |
| 2361 | Vers uint8 |
| 2362 | Reserved uint8 |
| 2363 | Metadata_len uint16 |
| 2364 | Mask uint64 |
| 2365 | Fd int32 |
| 2366 | Pid int32 |
| 2367 | } |
| 2368 | |
| 2369 | type FanotifyResponse struct { |
| 2370 | Fd int32 |
| 2371 | Response uint32 |
| 2372 | } |
| 2373 | |
| 2374 | const ( |
| 2375 | CRYPTO_MSG_BASE = 0x10 |
| 2376 | CRYPTO_MSG_NEWALG = 0x10 |
| 2377 | CRYPTO_MSG_DELALG = 0x11 |
| 2378 | CRYPTO_MSG_UPDATEALG = 0x12 |
| 2379 | CRYPTO_MSG_GETALG = 0x13 |
| 2380 | CRYPTO_MSG_DELRNG = 0x14 |
| 2381 | CRYPTO_MSG_GETSTAT = 0x15 |
| 2382 | ) |
| 2383 | |
| 2384 | const ( |
| 2385 | CRYPTOCFGA_UNSPEC = 0x0 |
| 2386 | CRYPTOCFGA_PRIORITY_VAL = 0x1 |
| 2387 | CRYPTOCFGA_REPORT_LARVAL = 0x2 |
| 2388 | CRYPTOCFGA_REPORT_HASH = 0x3 |
| 2389 | CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 |
| 2390 | CRYPTOCFGA_REPORT_AEAD = 0x5 |
| 2391 | CRYPTOCFGA_REPORT_COMPRESS = 0x6 |
| 2392 | CRYPTOCFGA_REPORT_RNG = 0x7 |
| 2393 | CRYPTOCFGA_REPORT_CIPHER = 0x8 |
| 2394 | CRYPTOCFGA_REPORT_AKCIPHER = 0x9 |
| 2395 | CRYPTOCFGA_REPORT_KPP = 0xa |
| 2396 | CRYPTOCFGA_REPORT_ACOMP = 0xb |
| 2397 | CRYPTOCFGA_STAT_LARVAL = 0xc |
| 2398 | CRYPTOCFGA_STAT_HASH = 0xd |
| 2399 | CRYPTOCFGA_STAT_BLKCIPHER = 0xe |
| 2400 | CRYPTOCFGA_STAT_AEAD = 0xf |
| 2401 | CRYPTOCFGA_STAT_COMPRESS = 0x10 |
| 2402 | CRYPTOCFGA_STAT_RNG = 0x11 |
| 2403 | CRYPTOCFGA_STAT_CIPHER = 0x12 |
| 2404 | CRYPTOCFGA_STAT_AKCIPHER = 0x13 |
| 2405 | CRYPTOCFGA_STAT_KPP = 0x14 |
| 2406 | CRYPTOCFGA_STAT_ACOMP = 0x15 |
| 2407 | ) |
| 2408 | |
| 2409 | const ( |
| 2410 | BPF_REG_0 = 0x0 |
| 2411 | BPF_REG_1 = 0x1 |
| 2412 | BPF_REG_2 = 0x2 |
| 2413 | BPF_REG_3 = 0x3 |
| 2414 | BPF_REG_4 = 0x4 |
| 2415 | BPF_REG_5 = 0x5 |
| 2416 | BPF_REG_6 = 0x6 |
| 2417 | BPF_REG_7 = 0x7 |
| 2418 | BPF_REG_8 = 0x8 |
| 2419 | BPF_REG_9 = 0x9 |
| 2420 | BPF_REG_10 = 0xa |
| 2421 | BPF_MAP_CREATE = 0x0 |
| 2422 | BPF_MAP_LOOKUP_ELEM = 0x1 |
| 2423 | BPF_MAP_UPDATE_ELEM = 0x2 |
| 2424 | BPF_MAP_DELETE_ELEM = 0x3 |
| 2425 | BPF_MAP_GET_NEXT_KEY = 0x4 |
| 2426 | BPF_PROG_LOAD = 0x5 |
| 2427 | BPF_OBJ_PIN = 0x6 |
| 2428 | BPF_OBJ_GET = 0x7 |
| 2429 | BPF_PROG_ATTACH = 0x8 |
| 2430 | BPF_PROG_DETACH = 0x9 |
| 2431 | BPF_PROG_TEST_RUN = 0xa |
| 2432 | BPF_PROG_GET_NEXT_ID = 0xb |
| 2433 | BPF_MAP_GET_NEXT_ID = 0xc |
| 2434 | BPF_PROG_GET_FD_BY_ID = 0xd |
| 2435 | BPF_MAP_GET_FD_BY_ID = 0xe |
| 2436 | BPF_OBJ_GET_INFO_BY_FD = 0xf |
| 2437 | BPF_PROG_QUERY = 0x10 |
| 2438 | BPF_RAW_TRACEPOINT_OPEN = 0x11 |
| 2439 | BPF_BTF_LOAD = 0x12 |
| 2440 | BPF_BTF_GET_FD_BY_ID = 0x13 |
| 2441 | BPF_TASK_FD_QUERY = 0x14 |
| 2442 | BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 |
| 2443 | BPF_MAP_FREEZE = 0x16 |
| 2444 | BPF_BTF_GET_NEXT_ID = 0x17 |
| 2445 | BPF_MAP_LOOKUP_BATCH = 0x18 |
| 2446 | BPF_MAP_LOOKUP_AND_DELETE_BATCH = 0x19 |
| 2447 | BPF_MAP_UPDATE_BATCH = 0x1a |
| 2448 | BPF_MAP_DELETE_BATCH = 0x1b |
| 2449 | BPF_LINK_CREATE = 0x1c |
| 2450 | BPF_LINK_UPDATE = 0x1d |
| 2451 | BPF_LINK_GET_FD_BY_ID = 0x1e |
| 2452 | BPF_LINK_GET_NEXT_ID = 0x1f |
| 2453 | BPF_ENABLE_STATS = 0x20 |
| 2454 | BPF_ITER_CREATE = 0x21 |
| 2455 | BPF_LINK_DETACH = 0x22 |
| 2456 | BPF_PROG_BIND_MAP = 0x23 |
| 2457 | BPF_MAP_TYPE_UNSPEC = 0x0 |
| 2458 | BPF_MAP_TYPE_HASH = 0x1 |
| 2459 | BPF_MAP_TYPE_ARRAY = 0x2 |
| 2460 | BPF_MAP_TYPE_PROG_ARRAY = 0x3 |
| 2461 | BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 |
| 2462 | BPF_MAP_TYPE_PERCPU_HASH = 0x5 |
| 2463 | BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 |
| 2464 | BPF_MAP_TYPE_STACK_TRACE = 0x7 |
| 2465 | BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 |
| 2466 | BPF_MAP_TYPE_LRU_HASH = 0x9 |
| 2467 | BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa |
| 2468 | BPF_MAP_TYPE_LPM_TRIE = 0xb |
| 2469 | BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc |
| 2470 | BPF_MAP_TYPE_HASH_OF_MAPS = 0xd |
| 2471 | BPF_MAP_TYPE_DEVMAP = 0xe |
| 2472 | BPF_MAP_TYPE_SOCKMAP = 0xf |
| 2473 | BPF_MAP_TYPE_CPUMAP = 0x10 |
| 2474 | BPF_MAP_TYPE_XSKMAP = 0x11 |
| 2475 | BPF_MAP_TYPE_SOCKHASH = 0x12 |
| 2476 | BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 |
| 2477 | BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 |
| 2478 | BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 |
| 2479 | BPF_MAP_TYPE_QUEUE = 0x16 |
| 2480 | BPF_MAP_TYPE_STACK = 0x17 |
| 2481 | BPF_MAP_TYPE_SK_STORAGE = 0x18 |
| 2482 | BPF_MAP_TYPE_DEVMAP_HASH = 0x19 |
| 2483 | BPF_MAP_TYPE_STRUCT_OPS = 0x1a |
| 2484 | BPF_MAP_TYPE_RINGBUF = 0x1b |
| 2485 | BPF_MAP_TYPE_INODE_STORAGE = 0x1c |
| 2486 | BPF_PROG_TYPE_UNSPEC = 0x0 |
| 2487 | BPF_PROG_TYPE_SOCKET_FILTER = 0x1 |
| 2488 | BPF_PROG_TYPE_KPROBE = 0x2 |
| 2489 | BPF_PROG_TYPE_SCHED_CLS = 0x3 |
| 2490 | BPF_PROG_TYPE_SCHED_ACT = 0x4 |
| 2491 | BPF_PROG_TYPE_TRACEPOINT = 0x5 |
| 2492 | BPF_PROG_TYPE_XDP = 0x6 |
| 2493 | BPF_PROG_TYPE_PERF_EVENT = 0x7 |
| 2494 | BPF_PROG_TYPE_CGROUP_SKB = 0x8 |
| 2495 | BPF_PROG_TYPE_CGROUP_SOCK = 0x9 |
| 2496 | BPF_PROG_TYPE_LWT_IN = 0xa |
| 2497 | BPF_PROG_TYPE_LWT_OUT = 0xb |
| 2498 | BPF_PROG_TYPE_LWT_XMIT = 0xc |
| 2499 | BPF_PROG_TYPE_SOCK_OPS = 0xd |
| 2500 | BPF_PROG_TYPE_SK_SKB = 0xe |
| 2501 | BPF_PROG_TYPE_CGROUP_DEVICE = 0xf |
| 2502 | BPF_PROG_TYPE_SK_MSG = 0x10 |
| 2503 | BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 |
| 2504 | BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 |
| 2505 | BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 |
| 2506 | BPF_PROG_TYPE_LIRC_MODE2 = 0x14 |
| 2507 | BPF_PROG_TYPE_SK_REUSEPORT = 0x15 |
| 2508 | BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 |
| 2509 | BPF_PROG_TYPE_CGROUP_SYSCTL = 0x17 |
| 2510 | BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 0x18 |
| 2511 | BPF_PROG_TYPE_CGROUP_SOCKOPT = 0x19 |
| 2512 | BPF_PROG_TYPE_TRACING = 0x1a |
| 2513 | BPF_PROG_TYPE_STRUCT_OPS = 0x1b |
| 2514 | BPF_PROG_TYPE_EXT = 0x1c |
| 2515 | BPF_PROG_TYPE_LSM = 0x1d |
| 2516 | BPF_PROG_TYPE_SK_LOOKUP = 0x1e |
| 2517 | BPF_CGROUP_INET_INGRESS = 0x0 |
| 2518 | BPF_CGROUP_INET_EGRESS = 0x1 |
| 2519 | BPF_CGROUP_INET_SOCK_CREATE = 0x2 |
| 2520 | BPF_CGROUP_SOCK_OPS = 0x3 |
| 2521 | BPF_SK_SKB_STREAM_PARSER = 0x4 |
| 2522 | BPF_SK_SKB_STREAM_VERDICT = 0x5 |
| 2523 | BPF_CGROUP_DEVICE = 0x6 |
| 2524 | BPF_SK_MSG_VERDICT = 0x7 |
| 2525 | BPF_CGROUP_INET4_BIND = 0x8 |
| 2526 | BPF_CGROUP_INET6_BIND = 0x9 |
| 2527 | BPF_CGROUP_INET4_CONNECT = 0xa |
| 2528 | BPF_CGROUP_INET6_CONNECT = 0xb |
| 2529 | BPF_CGROUP_INET4_POST_BIND = 0xc |
| 2530 | BPF_CGROUP_INET6_POST_BIND = 0xd |
| 2531 | BPF_CGROUP_UDP4_SENDMSG = 0xe |
| 2532 | BPF_CGROUP_UDP6_SENDMSG = 0xf |
| 2533 | BPF_LIRC_MODE2 = 0x10 |
| 2534 | BPF_FLOW_DISSECTOR = 0x11 |
| 2535 | BPF_CGROUP_SYSCTL = 0x12 |
| 2536 | BPF_CGROUP_UDP4_RECVMSG = 0x13 |
| 2537 | BPF_CGROUP_UDP6_RECVMSG = 0x14 |
| 2538 | BPF_CGROUP_GETSOCKOPT = 0x15 |
| 2539 | BPF_CGROUP_SETSOCKOPT = 0x16 |
| 2540 | BPF_TRACE_RAW_TP = 0x17 |
| 2541 | BPF_TRACE_FENTRY = 0x18 |
| 2542 | BPF_TRACE_FEXIT = 0x19 |
| 2543 | BPF_MODIFY_RETURN = 0x1a |
| 2544 | BPF_LSM_MAC = 0x1b |
| 2545 | BPF_TRACE_ITER = 0x1c |
| 2546 | BPF_CGROUP_INET4_GETPEERNAME = 0x1d |
| 2547 | BPF_CGROUP_INET6_GETPEERNAME = 0x1e |
| 2548 | BPF_CGROUP_INET4_GETSOCKNAME = 0x1f |
| 2549 | BPF_CGROUP_INET6_GETSOCKNAME = 0x20 |
| 2550 | BPF_XDP_DEVMAP = 0x21 |
| 2551 | BPF_CGROUP_INET_SOCK_RELEASE = 0x22 |
| 2552 | BPF_XDP_CPUMAP = 0x23 |
| 2553 | BPF_SK_LOOKUP = 0x24 |
| 2554 | BPF_XDP = 0x25 |
| 2555 | BPF_LINK_TYPE_UNSPEC = 0x0 |
| 2556 | BPF_LINK_TYPE_RAW_TRACEPOINT = 0x1 |
| 2557 | BPF_LINK_TYPE_TRACING = 0x2 |
| 2558 | BPF_LINK_TYPE_CGROUP = 0x3 |
| 2559 | BPF_LINK_TYPE_ITER = 0x4 |
| 2560 | BPF_LINK_TYPE_NETNS = 0x5 |
| 2561 | BPF_LINK_TYPE_XDP = 0x6 |
| 2562 | BPF_ANY = 0x0 |
| 2563 | BPF_NOEXIST = 0x1 |
| 2564 | BPF_EXIST = 0x2 |
| 2565 | BPF_F_LOCK = 0x4 |
| 2566 | BPF_F_NO_PREALLOC = 0x1 |
| 2567 | BPF_F_NO_COMMON_LRU = 0x2 |
| 2568 | BPF_F_NUMA_NODE = 0x4 |
| 2569 | BPF_F_RDONLY = 0x8 |
| 2570 | BPF_F_WRONLY = 0x10 |
| 2571 | BPF_F_STACK_BUILD_ID = 0x20 |
| 2572 | BPF_F_ZERO_SEED = 0x40 |
| 2573 | BPF_F_RDONLY_PROG = 0x80 |
| 2574 | BPF_F_WRONLY_PROG = 0x100 |
| 2575 | BPF_F_CLONE = 0x200 |
| 2576 | BPF_F_MMAPABLE = 0x400 |
| 2577 | BPF_F_PRESERVE_ELEMS = 0x800 |
| 2578 | BPF_F_INNER_MAP = 0x1000 |
| 2579 | BPF_STATS_RUN_TIME = 0x0 |
| 2580 | BPF_STACK_BUILD_ID_EMPTY = 0x0 |
| 2581 | BPF_STACK_BUILD_ID_VALID = 0x1 |
| 2582 | BPF_STACK_BUILD_ID_IP = 0x2 |
| 2583 | BPF_F_RECOMPUTE_CSUM = 0x1 |
| 2584 | BPF_F_INVALIDATE_HASH = 0x2 |
| 2585 | BPF_F_HDR_FIELD_MASK = 0xf |
| 2586 | BPF_F_PSEUDO_HDR = 0x10 |
| 2587 | BPF_F_MARK_MANGLED_0 = 0x20 |
| 2588 | BPF_F_MARK_ENFORCE = 0x40 |
| 2589 | BPF_F_INGRESS = 0x1 |
| 2590 | BPF_F_TUNINFO_IPV6 = 0x1 |
| 2591 | BPF_F_SKIP_FIELD_MASK = 0xff |
| 2592 | BPF_F_USER_STACK = 0x100 |
| 2593 | BPF_F_FAST_STACK_CMP = 0x200 |
| 2594 | BPF_F_REUSE_STACKID = 0x400 |
| 2595 | BPF_F_USER_BUILD_ID = 0x800 |
| 2596 | BPF_F_ZERO_CSUM_TX = 0x2 |
| 2597 | BPF_F_DONT_FRAGMENT = 0x4 |
| 2598 | BPF_F_SEQ_NUMBER = 0x8 |
| 2599 | BPF_F_INDEX_MASK = 0xffffffff |
| 2600 | BPF_F_CURRENT_CPU = 0xffffffff |
| 2601 | BPF_F_CTXLEN_MASK = 0xfffff00000000 |
| 2602 | BPF_F_CURRENT_NETNS = -0x1 |
| 2603 | BPF_CSUM_LEVEL_QUERY = 0x0 |
| 2604 | BPF_CSUM_LEVEL_INC = 0x1 |
| 2605 | BPF_CSUM_LEVEL_DEC = 0x2 |
| 2606 | BPF_CSUM_LEVEL_RESET = 0x3 |
| 2607 | BPF_F_ADJ_ROOM_FIXED_GSO = 0x1 |
| 2608 | BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2 |
| 2609 | BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4 |
| 2610 | BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8 |
| 2611 | BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10 |
| 2612 | BPF_F_ADJ_ROOM_NO_CSUM_RESET = 0x20 |
| 2613 | BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff |
| 2614 | BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38 |
| 2615 | BPF_F_SYSCTL_BASE_NAME = 0x1 |
| 2616 | BPF_LOCAL_STORAGE_GET_F_CREATE = 0x1 |
| 2617 | BPF_SK_STORAGE_GET_F_CREATE = 0x1 |
| 2618 | BPF_F_GET_BRANCH_RECORDS_SIZE = 0x1 |
| 2619 | BPF_RB_NO_WAKEUP = 0x1 |
| 2620 | BPF_RB_FORCE_WAKEUP = 0x2 |
| 2621 | BPF_RB_AVAIL_DATA = 0x0 |
| 2622 | BPF_RB_RING_SIZE = 0x1 |
| 2623 | BPF_RB_CONS_POS = 0x2 |
| 2624 | BPF_RB_PROD_POS = 0x3 |
| 2625 | BPF_RINGBUF_BUSY_BIT = 0x80000000 |
| 2626 | BPF_RINGBUF_DISCARD_BIT = 0x40000000 |
| 2627 | BPF_RINGBUF_HDR_SZ = 0x8 |
| 2628 | BPF_SK_LOOKUP_F_REPLACE = 0x1 |
| 2629 | BPF_SK_LOOKUP_F_NO_REUSEPORT = 0x2 |
| 2630 | BPF_ADJ_ROOM_NET = 0x0 |
| 2631 | BPF_ADJ_ROOM_MAC = 0x1 |
| 2632 | BPF_HDR_START_MAC = 0x0 |
| 2633 | BPF_HDR_START_NET = 0x1 |
| 2634 | BPF_LWT_ENCAP_SEG6 = 0x0 |
| 2635 | BPF_LWT_ENCAP_SEG6_INLINE = 0x1 |
| 2636 | BPF_LWT_ENCAP_IP = 0x2 |
| 2637 | BPF_OK = 0x0 |
| 2638 | BPF_DROP = 0x2 |
| 2639 | BPF_REDIRECT = 0x7 |
| 2640 | BPF_LWT_REROUTE = 0x80 |
| 2641 | BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 |
| 2642 | BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 |
| 2643 | BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 |
| 2644 | BPF_SOCK_OPS_RTT_CB_FLAG = 0x8 |
| 2645 | BPF_SOCK_OPS_PARSE_ALL_HDR_OPT_CB_FLAG = 0x10 |
| 2646 | BPF_SOCK_OPS_PARSE_UNKNOWN_HDR_OPT_CB_FLAG = 0x20 |
| 2647 | BPF_SOCK_OPS_WRITE_HDR_OPT_CB_FLAG = 0x40 |
| 2648 | BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7f |
| 2649 | BPF_SOCK_OPS_VOID = 0x0 |
| 2650 | BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 |
| 2651 | BPF_SOCK_OPS_RWND_INIT = 0x2 |
| 2652 | BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 |
| 2653 | BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 |
| 2654 | BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 |
| 2655 | BPF_SOCK_OPS_NEEDS_ECN = 0x6 |
| 2656 | BPF_SOCK_OPS_BASE_RTT = 0x7 |
| 2657 | BPF_SOCK_OPS_RTO_CB = 0x8 |
| 2658 | BPF_SOCK_OPS_RETRANS_CB = 0x9 |
| 2659 | BPF_SOCK_OPS_STATE_CB = 0xa |
| 2660 | BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb |
| 2661 | BPF_SOCK_OPS_RTT_CB = 0xc |
| 2662 | BPF_SOCK_OPS_PARSE_HDR_OPT_CB = 0xd |
| 2663 | BPF_SOCK_OPS_HDR_OPT_LEN_CB = 0xe |
| 2664 | BPF_SOCK_OPS_WRITE_HDR_OPT_CB = 0xf |
| 2665 | BPF_TCP_ESTABLISHED = 0x1 |
| 2666 | BPF_TCP_SYN_SENT = 0x2 |
| 2667 | BPF_TCP_SYN_RECV = 0x3 |
| 2668 | BPF_TCP_FIN_WAIT1 = 0x4 |
| 2669 | BPF_TCP_FIN_WAIT2 = 0x5 |
| 2670 | BPF_TCP_TIME_WAIT = 0x6 |
| 2671 | BPF_TCP_CLOSE = 0x7 |
| 2672 | BPF_TCP_CLOSE_WAIT = 0x8 |
| 2673 | BPF_TCP_LAST_ACK = 0x9 |
| 2674 | BPF_TCP_LISTEN = 0xa |
| 2675 | BPF_TCP_CLOSING = 0xb |
| 2676 | BPF_TCP_NEW_SYN_RECV = 0xc |
| 2677 | BPF_TCP_MAX_STATES = 0xd |
| 2678 | TCP_BPF_IW = 0x3e9 |
| 2679 | TCP_BPF_SNDCWND_CLAMP = 0x3ea |
| 2680 | TCP_BPF_DELACK_MAX = 0x3eb |
| 2681 | TCP_BPF_RTO_MIN = 0x3ec |
| 2682 | TCP_BPF_SYN = 0x3ed |
| 2683 | TCP_BPF_SYN_IP = 0x3ee |
| 2684 | TCP_BPF_SYN_MAC = 0x3ef |
| 2685 | BPF_LOAD_HDR_OPT_TCP_SYN = 0x1 |
| 2686 | BPF_WRITE_HDR_TCP_CURRENT_MSS = 0x1 |
| 2687 | BPF_WRITE_HDR_TCP_SYNACK_COOKIE = 0x2 |
| 2688 | BPF_DEVCG_ACC_MKNOD = 0x1 |
| 2689 | BPF_DEVCG_ACC_READ = 0x2 |
| 2690 | BPF_DEVCG_ACC_WRITE = 0x4 |
| 2691 | BPF_DEVCG_DEV_BLOCK = 0x1 |
| 2692 | BPF_DEVCG_DEV_CHAR = 0x2 |
| 2693 | BPF_FIB_LOOKUP_DIRECT = 0x1 |
| 2694 | BPF_FIB_LOOKUP_OUTPUT = 0x2 |
| 2695 | BPF_FIB_LKUP_RET_SUCCESS = 0x0 |
| 2696 | BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 |
| 2697 | BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 |
| 2698 | BPF_FIB_LKUP_RET_PROHIBIT = 0x3 |
| 2699 | BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 |
| 2700 | BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 |
| 2701 | BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 |
| 2702 | BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 |
| 2703 | BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 |
| 2704 | BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 |
| 2705 | BPF_FD_TYPE_TRACEPOINT = 0x1 |
| 2706 | BPF_FD_TYPE_KPROBE = 0x2 |
| 2707 | BPF_FD_TYPE_KRETPROBE = 0x3 |
| 2708 | BPF_FD_TYPE_UPROBE = 0x4 |
| 2709 | BPF_FD_TYPE_URETPROBE = 0x5 |
| 2710 | BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 0x1 |
| 2711 | BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 0x2 |
| 2712 | BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 0x4 |
| 2713 | ) |
| 2714 | |
| 2715 | const ( |
| 2716 | RTNLGRP_NONE = 0x0 |
| 2717 | RTNLGRP_LINK = 0x1 |
| 2718 | RTNLGRP_NOTIFY = 0x2 |
| 2719 | RTNLGRP_NEIGH = 0x3 |
| 2720 | RTNLGRP_TC = 0x4 |
| 2721 | RTNLGRP_IPV4_IFADDR = 0x5 |
| 2722 | RTNLGRP_IPV4_MROUTE = 0x6 |
| 2723 | RTNLGRP_IPV4_ROUTE = 0x7 |
| 2724 | RTNLGRP_IPV4_RULE = 0x8 |
| 2725 | RTNLGRP_IPV6_IFADDR = 0x9 |
| 2726 | RTNLGRP_IPV6_MROUTE = 0xa |
| 2727 | RTNLGRP_IPV6_ROUTE = 0xb |
| 2728 | RTNLGRP_IPV6_IFINFO = 0xc |
| 2729 | RTNLGRP_DECnet_IFADDR = 0xd |
| 2730 | RTNLGRP_NOP2 = 0xe |
| 2731 | RTNLGRP_DECnet_ROUTE = 0xf |
| 2732 | RTNLGRP_DECnet_RULE = 0x10 |
| 2733 | RTNLGRP_NOP4 = 0x11 |
| 2734 | RTNLGRP_IPV6_PREFIX = 0x12 |
| 2735 | RTNLGRP_IPV6_RULE = 0x13 |
| 2736 | RTNLGRP_ND_USEROPT = 0x14 |
| 2737 | RTNLGRP_PHONET_IFADDR = 0x15 |
| 2738 | RTNLGRP_PHONET_ROUTE = 0x16 |
| 2739 | RTNLGRP_DCB = 0x17 |
| 2740 | RTNLGRP_IPV4_NETCONF = 0x18 |
| 2741 | RTNLGRP_IPV6_NETCONF = 0x19 |
| 2742 | RTNLGRP_MDB = 0x1a |
| 2743 | RTNLGRP_MPLS_ROUTE = 0x1b |
| 2744 | RTNLGRP_NSID = 0x1c |
| 2745 | RTNLGRP_MPLS_NETCONF = 0x1d |
| 2746 | RTNLGRP_IPV4_MROUTE_R = 0x1e |
| 2747 | RTNLGRP_IPV6_MROUTE_R = 0x1f |
| 2748 | RTNLGRP_NEXTHOP = 0x20 |
| 2749 | RTNLGRP_BRVLAN = 0x21 |
| 2750 | ) |
| 2751 | |
| 2752 | type CapUserHeader struct { |
| 2753 | Version uint32 |
| 2754 | Pid int32 |
| 2755 | } |
| 2756 | |
| 2757 | type CapUserData struct { |
| 2758 | Effective uint32 |
| 2759 | Permitted uint32 |
| 2760 | Inheritable uint32 |
| 2761 | } |
| 2762 | |
| 2763 | const ( |
| 2764 | LINUX_CAPABILITY_VERSION_1 = 0x19980330 |
| 2765 | LINUX_CAPABILITY_VERSION_2 = 0x20071026 |
| 2766 | LINUX_CAPABILITY_VERSION_3 = 0x20080522 |
| 2767 | ) |
| 2768 | |
| 2769 | const ( |
| 2770 | LO_FLAGS_READ_ONLY = 0x1 |
| 2771 | LO_FLAGS_AUTOCLEAR = 0x4 |
| 2772 | LO_FLAGS_PARTSCAN = 0x8 |
| 2773 | LO_FLAGS_DIRECT_IO = 0x10 |
| 2774 | ) |
| 2775 | |
| 2776 | type LoopInfo64 struct { |
| 2777 | Device uint64 |
| 2778 | Inode uint64 |
| 2779 | Rdevice uint64 |
| 2780 | Offset uint64 |
| 2781 | Sizelimit uint64 |
| 2782 | Number uint32 |
| 2783 | Encrypt_type uint32 |
| 2784 | Encrypt_key_size uint32 |
| 2785 | Flags uint32 |
| 2786 | File_name [64]uint8 |
| 2787 | Crypt_name [64]uint8 |
| 2788 | Encrypt_key [32]uint8 |
| 2789 | Init [2]uint64 |
| 2790 | } |
| 2791 | |
| 2792 | type TIPCSocketAddr struct { |
| 2793 | Ref uint32 |
| 2794 | Node uint32 |
| 2795 | } |
| 2796 | |
| 2797 | type TIPCServiceRange struct { |
| 2798 | Type uint32 |
| 2799 | Lower uint32 |
| 2800 | Upper uint32 |
| 2801 | } |
| 2802 | |
| 2803 | type TIPCServiceName struct { |
| 2804 | Type uint32 |
| 2805 | Instance uint32 |
| 2806 | Domain uint32 |
| 2807 | } |
| 2808 | |
| 2809 | type TIPCEvent struct { |
| 2810 | Event uint32 |
| 2811 | Lower uint32 |
| 2812 | Upper uint32 |
| 2813 | Port TIPCSocketAddr |
| 2814 | S TIPCSubscr |
| 2815 | } |
| 2816 | |
| 2817 | type TIPCGroupReq struct { |
| 2818 | Type uint32 |
| 2819 | Instance uint32 |
| 2820 | Scope uint32 |
| 2821 | Flags uint32 |
| 2822 | } |
| 2823 | |
| 2824 | const ( |
| 2825 | TIPC_CLUSTER_SCOPE = 0x2 |
| 2826 | TIPC_NODE_SCOPE = 0x3 |
| 2827 | ) |
| 2828 | |
| 2829 | const ( |
| 2830 | SYSLOG_ACTION_CLOSE = 0 |
| 2831 | SYSLOG_ACTION_OPEN = 1 |
| 2832 | SYSLOG_ACTION_READ = 2 |
| 2833 | SYSLOG_ACTION_READ_ALL = 3 |
| 2834 | SYSLOG_ACTION_READ_CLEAR = 4 |
| 2835 | SYSLOG_ACTION_CLEAR = 5 |
| 2836 | SYSLOG_ACTION_CONSOLE_OFF = 6 |
| 2837 | SYSLOG_ACTION_CONSOLE_ON = 7 |
| 2838 | SYSLOG_ACTION_CONSOLE_LEVEL = 8 |
| 2839 | SYSLOG_ACTION_SIZE_UNREAD = 9 |
| 2840 | SYSLOG_ACTION_SIZE_BUFFER = 10 |
| 2841 | ) |
| 2842 | |
| 2843 | const ( |
| 2844 | DEVLINK_CMD_UNSPEC = 0x0 |
| 2845 | DEVLINK_CMD_GET = 0x1 |
| 2846 | DEVLINK_CMD_SET = 0x2 |
| 2847 | DEVLINK_CMD_NEW = 0x3 |
| 2848 | DEVLINK_CMD_DEL = 0x4 |
| 2849 | DEVLINK_CMD_PORT_GET = 0x5 |
| 2850 | DEVLINK_CMD_PORT_SET = 0x6 |
| 2851 | DEVLINK_CMD_PORT_NEW = 0x7 |
| 2852 | DEVLINK_CMD_PORT_DEL = 0x8 |
| 2853 | DEVLINK_CMD_PORT_SPLIT = 0x9 |
| 2854 | DEVLINK_CMD_PORT_UNSPLIT = 0xa |
| 2855 | DEVLINK_CMD_SB_GET = 0xb |
| 2856 | DEVLINK_CMD_SB_SET = 0xc |
| 2857 | DEVLINK_CMD_SB_NEW = 0xd |
| 2858 | DEVLINK_CMD_SB_DEL = 0xe |
| 2859 | DEVLINK_CMD_SB_POOL_GET = 0xf |
| 2860 | DEVLINK_CMD_SB_POOL_SET = 0x10 |
| 2861 | DEVLINK_CMD_SB_POOL_NEW = 0x11 |
| 2862 | DEVLINK_CMD_SB_POOL_DEL = 0x12 |
| 2863 | DEVLINK_CMD_SB_PORT_POOL_GET = 0x13 |
| 2864 | DEVLINK_CMD_SB_PORT_POOL_SET = 0x14 |
| 2865 | DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15 |
| 2866 | DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16 |
| 2867 | DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17 |
| 2868 | DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18 |
| 2869 | DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19 |
| 2870 | DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a |
| 2871 | DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b |
| 2872 | DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c |
| 2873 | DEVLINK_CMD_ESWITCH_GET = 0x1d |
| 2874 | DEVLINK_CMD_ESWITCH_SET = 0x1e |
| 2875 | DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f |
| 2876 | DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20 |
| 2877 | DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21 |
| 2878 | DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22 |
| 2879 | DEVLINK_CMD_RESOURCE_SET = 0x23 |
| 2880 | DEVLINK_CMD_RESOURCE_DUMP = 0x24 |
| 2881 | DEVLINK_CMD_RELOAD = 0x25 |
| 2882 | DEVLINK_CMD_PARAM_GET = 0x26 |
| 2883 | DEVLINK_CMD_PARAM_SET = 0x27 |
| 2884 | DEVLINK_CMD_PARAM_NEW = 0x28 |
| 2885 | DEVLINK_CMD_PARAM_DEL = 0x29 |
| 2886 | DEVLINK_CMD_REGION_GET = 0x2a |
| 2887 | DEVLINK_CMD_REGION_SET = 0x2b |
| 2888 | DEVLINK_CMD_REGION_NEW = 0x2c |
| 2889 | DEVLINK_CMD_REGION_DEL = 0x2d |
| 2890 | DEVLINK_CMD_REGION_READ = 0x2e |
| 2891 | DEVLINK_CMD_PORT_PARAM_GET = 0x2f |
| 2892 | DEVLINK_CMD_PORT_PARAM_SET = 0x30 |
| 2893 | DEVLINK_CMD_PORT_PARAM_NEW = 0x31 |
| 2894 | DEVLINK_CMD_PORT_PARAM_DEL = 0x32 |
| 2895 | DEVLINK_CMD_INFO_GET = 0x33 |
| 2896 | DEVLINK_CMD_HEALTH_REPORTER_GET = 0x34 |
| 2897 | DEVLINK_CMD_HEALTH_REPORTER_SET = 0x35 |
| 2898 | DEVLINK_CMD_HEALTH_REPORTER_RECOVER = 0x36 |
| 2899 | DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE = 0x37 |
| 2900 | DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET = 0x38 |
| 2901 | DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR = 0x39 |
| 2902 | DEVLINK_CMD_FLASH_UPDATE = 0x3a |
| 2903 | DEVLINK_CMD_FLASH_UPDATE_END = 0x3b |
| 2904 | DEVLINK_CMD_FLASH_UPDATE_STATUS = 0x3c |
| 2905 | DEVLINK_CMD_TRAP_GET = 0x3d |
| 2906 | DEVLINK_CMD_TRAP_SET = 0x3e |
| 2907 | DEVLINK_CMD_TRAP_NEW = 0x3f |
| 2908 | DEVLINK_CMD_TRAP_DEL = 0x40 |
| 2909 | DEVLINK_CMD_TRAP_GROUP_GET = 0x41 |
| 2910 | DEVLINK_CMD_TRAP_GROUP_SET = 0x42 |
| 2911 | DEVLINK_CMD_TRAP_GROUP_NEW = 0x43 |
| 2912 | DEVLINK_CMD_TRAP_GROUP_DEL = 0x44 |
| 2913 | DEVLINK_CMD_TRAP_POLICER_GET = 0x45 |
| 2914 | DEVLINK_CMD_TRAP_POLICER_SET = 0x46 |
| 2915 | DEVLINK_CMD_TRAP_POLICER_NEW = 0x47 |
| 2916 | DEVLINK_CMD_TRAP_POLICER_DEL = 0x48 |
| 2917 | DEVLINK_CMD_HEALTH_REPORTER_TEST = 0x49 |
| 2918 | DEVLINK_CMD_MAX = 0x49 |
| 2919 | DEVLINK_PORT_TYPE_NOTSET = 0x0 |
| 2920 | DEVLINK_PORT_TYPE_AUTO = 0x1 |
| 2921 | DEVLINK_PORT_TYPE_ETH = 0x2 |
| 2922 | DEVLINK_PORT_TYPE_IB = 0x3 |
| 2923 | DEVLINK_SB_POOL_TYPE_INGRESS = 0x0 |
| 2924 | DEVLINK_SB_POOL_TYPE_EGRESS = 0x1 |
| 2925 | DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0 |
| 2926 | DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1 |
| 2927 | DEVLINK_ESWITCH_MODE_LEGACY = 0x0 |
| 2928 | DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1 |
| 2929 | DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0 |
| 2930 | DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1 |
| 2931 | DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2 |
| 2932 | DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3 |
| 2933 | DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0 |
| 2934 | DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1 |
| 2935 | DEVLINK_PORT_FLAVOUR_PHYSICAL = 0x0 |
| 2936 | DEVLINK_PORT_FLAVOUR_CPU = 0x1 |
| 2937 | DEVLINK_PORT_FLAVOUR_DSA = 0x2 |
| 2938 | DEVLINK_PORT_FLAVOUR_PCI_PF = 0x3 |
| 2939 | DEVLINK_PORT_FLAVOUR_PCI_VF = 0x4 |
| 2940 | DEVLINK_PORT_FLAVOUR_VIRTUAL = 0x5 |
| 2941 | DEVLINK_PORT_FLAVOUR_UNUSED = 0x6 |
| 2942 | DEVLINK_PARAM_CMODE_RUNTIME = 0x0 |
| 2943 | DEVLINK_PARAM_CMODE_DRIVERINIT = 0x1 |
| 2944 | DEVLINK_PARAM_CMODE_PERMANENT = 0x2 |
| 2945 | DEVLINK_PARAM_CMODE_MAX = 0x2 |
| 2946 | DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER = 0x0 |
| 2947 | DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH = 0x1 |
| 2948 | DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK = 0x2 |
| 2949 | DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN = 0x3 |
| 2950 | DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN = 0x0 |
| 2951 | DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS = 0x1 |
| 2952 | DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER = 0x2 |
| 2953 | DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK = 0x3 |
| 2954 | DEVLINK_ATTR_STATS_RX_PACKETS = 0x0 |
| 2955 | DEVLINK_ATTR_STATS_RX_BYTES = 0x1 |
| 2956 | DEVLINK_ATTR_STATS_RX_DROPPED = 0x2 |
| 2957 | DEVLINK_ATTR_STATS_MAX = 0x2 |
| 2958 | DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT = 0x0 |
| 2959 | DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT = 0x1 |
| 2960 | DEVLINK_FLASH_OVERWRITE_MAX_BIT = 0x1 |
| 2961 | DEVLINK_TRAP_ACTION_DROP = 0x0 |
| 2962 | DEVLINK_TRAP_ACTION_TRAP = 0x1 |
| 2963 | DEVLINK_TRAP_ACTION_MIRROR = 0x2 |
| 2964 | DEVLINK_TRAP_TYPE_DROP = 0x0 |
| 2965 | DEVLINK_TRAP_TYPE_EXCEPTION = 0x1 |
| 2966 | DEVLINK_TRAP_TYPE_CONTROL = 0x2 |
| 2967 | DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT = 0x0 |
| 2968 | DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE = 0x1 |
| 2969 | DEVLINK_RELOAD_ACTION_UNSPEC = 0x0 |
| 2970 | DEVLINK_RELOAD_ACTION_DRIVER_REINIT = 0x1 |
| 2971 | DEVLINK_RELOAD_ACTION_FW_ACTIVATE = 0x2 |
| 2972 | DEVLINK_RELOAD_ACTION_MAX = 0x2 |
| 2973 | DEVLINK_RELOAD_LIMIT_UNSPEC = 0x0 |
| 2974 | DEVLINK_RELOAD_LIMIT_NO_RESET = 0x1 |
| 2975 | DEVLINK_RELOAD_LIMIT_MAX = 0x1 |
| 2976 | DEVLINK_ATTR_UNSPEC = 0x0 |
| 2977 | DEVLINK_ATTR_BUS_NAME = 0x1 |
| 2978 | DEVLINK_ATTR_DEV_NAME = 0x2 |
| 2979 | DEVLINK_ATTR_PORT_INDEX = 0x3 |
| 2980 | DEVLINK_ATTR_PORT_TYPE = 0x4 |
| 2981 | DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5 |
| 2982 | DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6 |
| 2983 | DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7 |
| 2984 | DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8 |
| 2985 | DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9 |
| 2986 | DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa |
| 2987 | DEVLINK_ATTR_SB_INDEX = 0xb |
| 2988 | DEVLINK_ATTR_SB_SIZE = 0xc |
| 2989 | DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd |
| 2990 | DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe |
| 2991 | DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf |
| 2992 | DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10 |
| 2993 | DEVLINK_ATTR_SB_POOL_INDEX = 0x11 |
| 2994 | DEVLINK_ATTR_SB_POOL_TYPE = 0x12 |
| 2995 | DEVLINK_ATTR_SB_POOL_SIZE = 0x13 |
| 2996 | DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14 |
| 2997 | DEVLINK_ATTR_SB_THRESHOLD = 0x15 |
| 2998 | DEVLINK_ATTR_SB_TC_INDEX = 0x16 |
| 2999 | DEVLINK_ATTR_SB_OCC_CUR = 0x17 |
| 3000 | DEVLINK_ATTR_SB_OCC_MAX = 0x18 |
| 3001 | DEVLINK_ATTR_ESWITCH_MODE = 0x19 |
| 3002 | DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a |
| 3003 | DEVLINK_ATTR_DPIPE_TABLES = 0x1b |
| 3004 | DEVLINK_ATTR_DPIPE_TABLE = 0x1c |
| 3005 | DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d |
| 3006 | DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e |
| 3007 | DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f |
| 3008 | DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20 |
| 3009 | DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21 |
| 3010 | DEVLINK_ATTR_DPIPE_ENTRIES = 0x22 |
| 3011 | DEVLINK_ATTR_DPIPE_ENTRY = 0x23 |
| 3012 | DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24 |
| 3013 | DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25 |
| 3014 | DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26 |
| 3015 | DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27 |
| 3016 | DEVLINK_ATTR_DPIPE_MATCH = 0x28 |
| 3017 | DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29 |
| 3018 | DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a |
| 3019 | DEVLINK_ATTR_DPIPE_ACTION = 0x2b |
| 3020 | DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c |
| 3021 | DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d |
| 3022 | DEVLINK_ATTR_DPIPE_VALUE = 0x2e |
| 3023 | DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f |
| 3024 | DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30 |
| 3025 | DEVLINK_ATTR_DPIPE_HEADERS = 0x31 |
| 3026 | DEVLINK_ATTR_DPIPE_HEADER = 0x32 |
| 3027 | DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33 |
| 3028 | DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34 |
| 3029 | DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35 |
| 3030 | DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36 |
| 3031 | DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37 |
| 3032 | DEVLINK_ATTR_DPIPE_FIELD = 0x38 |
| 3033 | DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39 |
| 3034 | DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a |
| 3035 | DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b |
| 3036 | DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c |
| 3037 | DEVLINK_ATTR_PAD = 0x3d |
| 3038 | DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e |
| 3039 | DEVLINK_ATTR_RESOURCE_LIST = 0x3f |
| 3040 | DEVLINK_ATTR_RESOURCE = 0x40 |
| 3041 | DEVLINK_ATTR_RESOURCE_NAME = 0x41 |
| 3042 | DEVLINK_ATTR_RESOURCE_ID = 0x42 |
| 3043 | DEVLINK_ATTR_RESOURCE_SIZE = 0x43 |
| 3044 | DEVLINK_ATTR_RESOURCE_SIZE_NEW = 0x44 |
| 3045 | DEVLINK_ATTR_RESOURCE_SIZE_VALID = 0x45 |
| 3046 | DEVLINK_ATTR_RESOURCE_SIZE_MIN = 0x46 |
| 3047 | DEVLINK_ATTR_RESOURCE_SIZE_MAX = 0x47 |
| 3048 | DEVLINK_ATTR_RESOURCE_SIZE_GRAN = 0x48 |
| 3049 | DEVLINK_ATTR_RESOURCE_UNIT = 0x49 |
| 3050 | DEVLINK_ATTR_RESOURCE_OCC = 0x4a |
| 3051 | DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID = 0x4b |
| 3052 | DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS = 0x4c |
| 3053 | DEVLINK_ATTR_PORT_FLAVOUR = 0x4d |
| 3054 | DEVLINK_ATTR_PORT_NUMBER = 0x4e |
| 3055 | DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER = 0x4f |
| 3056 | DEVLINK_ATTR_PARAM = 0x50 |
| 3057 | DEVLINK_ATTR_PARAM_NAME = 0x51 |
| 3058 | DEVLINK_ATTR_PARAM_GENERIC = 0x52 |
| 3059 | DEVLINK_ATTR_PARAM_TYPE = 0x53 |
| 3060 | DEVLINK_ATTR_PARAM_VALUES_LIST = 0x54 |
| 3061 | DEVLINK_ATTR_PARAM_VALUE = 0x55 |
| 3062 | DEVLINK_ATTR_PARAM_VALUE_DATA = 0x56 |
| 3063 | DEVLINK_ATTR_PARAM_VALUE_CMODE = 0x57 |
| 3064 | DEVLINK_ATTR_REGION_NAME = 0x58 |
| 3065 | DEVLINK_ATTR_REGION_SIZE = 0x59 |
| 3066 | DEVLINK_ATTR_REGION_SNAPSHOTS = 0x5a |
| 3067 | DEVLINK_ATTR_REGION_SNAPSHOT = 0x5b |
| 3068 | DEVLINK_ATTR_REGION_SNAPSHOT_ID = 0x5c |
| 3069 | DEVLINK_ATTR_REGION_CHUNKS = 0x5d |
| 3070 | DEVLINK_ATTR_REGION_CHUNK = 0x5e |
| 3071 | DEVLINK_ATTR_REGION_CHUNK_DATA = 0x5f |
| 3072 | DEVLINK_ATTR_REGION_CHUNK_ADDR = 0x60 |
| 3073 | DEVLINK_ATTR_REGION_CHUNK_LEN = 0x61 |
| 3074 | DEVLINK_ATTR_INFO_DRIVER_NAME = 0x62 |
| 3075 | DEVLINK_ATTR_INFO_SERIAL_NUMBER = 0x63 |
| 3076 | DEVLINK_ATTR_INFO_VERSION_FIXED = 0x64 |
| 3077 | DEVLINK_ATTR_INFO_VERSION_RUNNING = 0x65 |
| 3078 | DEVLINK_ATTR_INFO_VERSION_STORED = 0x66 |
| 3079 | DEVLINK_ATTR_INFO_VERSION_NAME = 0x67 |
| 3080 | DEVLINK_ATTR_INFO_VERSION_VALUE = 0x68 |
| 3081 | DEVLINK_ATTR_SB_POOL_CELL_SIZE = 0x69 |
| 3082 | DEVLINK_ATTR_FMSG = 0x6a |
| 3083 | DEVLINK_ATTR_FMSG_OBJ_NEST_START = 0x6b |
| 3084 | DEVLINK_ATTR_FMSG_PAIR_NEST_START = 0x6c |
| 3085 | DEVLINK_ATTR_FMSG_ARR_NEST_START = 0x6d |
| 3086 | DEVLINK_ATTR_FMSG_NEST_END = 0x6e |
| 3087 | DEVLINK_ATTR_FMSG_OBJ_NAME = 0x6f |
| 3088 | DEVLINK_ATTR_FMSG_OBJ_VALUE_TYPE = 0x70 |
| 3089 | DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA = 0x71 |
| 3090 | DEVLINK_ATTR_HEALTH_REPORTER = 0x72 |
| 3091 | DEVLINK_ATTR_HEALTH_REPORTER_NAME = 0x73 |
| 3092 | DEVLINK_ATTR_HEALTH_REPORTER_STATE = 0x74 |
| 3093 | DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT = 0x75 |
| 3094 | DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT = 0x76 |
| 3095 | DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS = 0x77 |
| 3096 | DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD = 0x78 |
| 3097 | DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER = 0x79 |
| 3098 | DEVLINK_ATTR_FLASH_UPDATE_FILE_NAME = 0x7a |
| 3099 | DEVLINK_ATTR_FLASH_UPDATE_COMPONENT = 0x7b |
| 3100 | DEVLINK_ATTR_FLASH_UPDATE_STATUS_MSG = 0x7c |
| 3101 | DEVLINK_ATTR_FLASH_UPDATE_STATUS_DONE = 0x7d |
| 3102 | DEVLINK_ATTR_FLASH_UPDATE_STATUS_TOTAL = 0x7e |
| 3103 | DEVLINK_ATTR_PORT_PCI_PF_NUMBER = 0x7f |
| 3104 | DEVLINK_ATTR_PORT_PCI_VF_NUMBER = 0x80 |
| 3105 | DEVLINK_ATTR_STATS = 0x81 |
| 3106 | DEVLINK_ATTR_TRAP_NAME = 0x82 |
| 3107 | DEVLINK_ATTR_TRAP_ACTION = 0x83 |
| 3108 | DEVLINK_ATTR_TRAP_TYPE = 0x84 |
| 3109 | DEVLINK_ATTR_TRAP_GENERIC = 0x85 |
| 3110 | DEVLINK_ATTR_TRAP_METADATA = 0x86 |
| 3111 | DEVLINK_ATTR_TRAP_GROUP_NAME = 0x87 |
| 3112 | DEVLINK_ATTR_RELOAD_FAILED = 0x88 |
| 3113 | DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS = 0x89 |
| 3114 | DEVLINK_ATTR_NETNS_FD = 0x8a |
| 3115 | DEVLINK_ATTR_NETNS_PID = 0x8b |
| 3116 | DEVLINK_ATTR_NETNS_ID = 0x8c |
| 3117 | DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP = 0x8d |
| 3118 | DEVLINK_ATTR_TRAP_POLICER_ID = 0x8e |
| 3119 | DEVLINK_ATTR_TRAP_POLICER_RATE = 0x8f |
| 3120 | DEVLINK_ATTR_TRAP_POLICER_BURST = 0x90 |
| 3121 | DEVLINK_ATTR_PORT_FUNCTION = 0x91 |
| 3122 | DEVLINK_ATTR_INFO_BOARD_SERIAL_NUMBER = 0x92 |
| 3123 | DEVLINK_ATTR_PORT_LANES = 0x93 |
| 3124 | DEVLINK_ATTR_PORT_SPLITTABLE = 0x94 |
| 3125 | DEVLINK_ATTR_PORT_EXTERNAL = 0x95 |
| 3126 | DEVLINK_ATTR_PORT_CONTROLLER_NUMBER = 0x96 |
| 3127 | DEVLINK_ATTR_FLASH_UPDATE_STATUS_TIMEOUT = 0x97 |
| 3128 | DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK = 0x98 |
| 3129 | DEVLINK_ATTR_RELOAD_ACTION = 0x99 |
| 3130 | DEVLINK_ATTR_RELOAD_ACTIONS_PERFORMED = 0x9a |
| 3131 | DEVLINK_ATTR_RELOAD_LIMITS = 0x9b |
| 3132 | DEVLINK_ATTR_DEV_STATS = 0x9c |
| 3133 | DEVLINK_ATTR_RELOAD_STATS = 0x9d |
| 3134 | DEVLINK_ATTR_RELOAD_STATS_ENTRY = 0x9e |
| 3135 | DEVLINK_ATTR_RELOAD_STATS_LIMIT = 0x9f |
| 3136 | DEVLINK_ATTR_RELOAD_STATS_VALUE = 0xa0 |
| 3137 | DEVLINK_ATTR_REMOTE_RELOAD_STATS = 0xa1 |
| 3138 | DEVLINK_ATTR_RELOAD_ACTION_INFO = 0xa2 |
| 3139 | DEVLINK_ATTR_RELOAD_ACTION_STATS = 0xa3 |
| 3140 | DEVLINK_ATTR_PORT_PCI_SF_NUMBER = 0xa4 |
| 3141 | DEVLINK_ATTR_MAX = 0xa4 |
| 3142 | DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0 |
| 3143 | DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1 |
| 3144 | DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0 |
| 3145 | DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0 |
| 3146 | DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0 |
| 3147 | DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0 |
| 3148 | DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0 |
| 3149 | DEVLINK_DPIPE_HEADER_ETHERNET = 0x0 |
| 3150 | DEVLINK_DPIPE_HEADER_IPV4 = 0x1 |
| 3151 | DEVLINK_DPIPE_HEADER_IPV6 = 0x2 |
| 3152 | DEVLINK_RESOURCE_UNIT_ENTRY = 0x0 |
| 3153 | DEVLINK_PORT_FUNCTION_ATTR_UNSPEC = 0x0 |
| 3154 | DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR = 0x1 |
| 3155 | DEVLINK_PORT_FN_ATTR_STATE = 0x2 |
| 3156 | DEVLINK_PORT_FN_ATTR_OPSTATE = 0x3 |
| 3157 | DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x3 |
| 3158 | ) |
| 3159 | |
| 3160 | type FsverityDigest struct { |
| 3161 | Algorithm uint16 |
| 3162 | Size uint16 |
| 3163 | } |
| 3164 | |
| 3165 | type FsverityEnableArg struct { |
| 3166 | Version uint32 |
| 3167 | Hash_algorithm uint32 |
| 3168 | Block_size uint32 |
| 3169 | Salt_size uint32 |
| 3170 | Salt_ptr uint64 |
| 3171 | Sig_size uint32 |
| 3172 | _ uint32 |
| 3173 | Sig_ptr uint64 |
| 3174 | _ [11]uint64 |
| 3175 | } |
| 3176 | |
| 3177 | type Nhmsg struct { |
| 3178 | Family uint8 |
| 3179 | Scope uint8 |
| 3180 | Protocol uint8 |
| 3181 | Resvd uint8 |
| 3182 | Flags uint32 |
| 3183 | } |
| 3184 | |
| 3185 | type NexthopGrp struct { |
| 3186 | Id uint32 |
| 3187 | Weight uint8 |
| 3188 | Resvd1 uint8 |
| 3189 | Resvd2 uint16 |
| 3190 | } |
| 3191 | |
| 3192 | const ( |
| 3193 | NHA_UNSPEC = 0x0 |
| 3194 | NHA_ID = 0x1 |
| 3195 | NHA_GROUP = 0x2 |
| 3196 | NHA_GROUP_TYPE = 0x3 |
| 3197 | NHA_BLACKHOLE = 0x4 |
| 3198 | NHA_OIF = 0x5 |
| 3199 | NHA_GATEWAY = 0x6 |
| 3200 | NHA_ENCAP_TYPE = 0x7 |
| 3201 | NHA_ENCAP = 0x8 |
| 3202 | NHA_GROUPS = 0x9 |
| 3203 | NHA_MASTER = 0xa |
| 3204 | ) |
| 3205 | |
| 3206 | const ( |
| 3207 | CAN_RAW_FILTER = 0x1 |
| 3208 | CAN_RAW_ERR_FILTER = 0x2 |
| 3209 | CAN_RAW_LOOPBACK = 0x3 |
| 3210 | CAN_RAW_RECV_OWN_MSGS = 0x4 |
| 3211 | CAN_RAW_FD_FRAMES = 0x5 |
| 3212 | CAN_RAW_JOIN_FILTERS = 0x6 |
| 3213 | ) |
| 3214 | |
| 3215 | type WatchdogInfo struct { |
| 3216 | Options uint32 |
| 3217 | Version uint32 |
| 3218 | Identity [32]uint8 |
| 3219 | } |
| 3220 | |
| 3221 | type PPSFData struct { |
| 3222 | Info PPSKInfo |
| 3223 | Timeout PPSKTime |
| 3224 | } |
| 3225 | |
| 3226 | type PPSKParams struct { |
| 3227 | Api_version int32 |
| 3228 | Mode int32 |
| 3229 | Assert_off_tu PPSKTime |
| 3230 | Clear_off_tu PPSKTime |
| 3231 | } |
| 3232 | |
| 3233 | type PPSKTime struct { |
| 3234 | Sec int64 |
| 3235 | Nsec int32 |
| 3236 | Flags uint32 |
| 3237 | } |
| 3238 | |
| 3239 | const ( |
| 3240 | LWTUNNEL_ENCAP_NONE = 0x0 |
| 3241 | LWTUNNEL_ENCAP_MPLS = 0x1 |
| 3242 | LWTUNNEL_ENCAP_IP = 0x2 |
| 3243 | LWTUNNEL_ENCAP_ILA = 0x3 |
| 3244 | LWTUNNEL_ENCAP_IP6 = 0x4 |
| 3245 | LWTUNNEL_ENCAP_SEG6 = 0x5 |
| 3246 | LWTUNNEL_ENCAP_BPF = 0x6 |
| 3247 | LWTUNNEL_ENCAP_SEG6_LOCAL = 0x7 |
| 3248 | LWTUNNEL_ENCAP_RPL = 0x8 |
| 3249 | LWTUNNEL_ENCAP_MAX = 0x8 |
| 3250 | |
| 3251 | MPLS_IPTUNNEL_UNSPEC = 0x0 |
| 3252 | MPLS_IPTUNNEL_DST = 0x1 |
| 3253 | MPLS_IPTUNNEL_TTL = 0x2 |
| 3254 | MPLS_IPTUNNEL_MAX = 0x2 |
| 3255 | ) |
| 3256 | |
| 3257 | const ( |
| 3258 | ETHTOOL_ID_UNSPEC = 0x0 |
| 3259 | ETHTOOL_RX_COPYBREAK = 0x1 |
| 3260 | ETHTOOL_TX_COPYBREAK = 0x2 |
| 3261 | ETHTOOL_PFC_PREVENTION_TOUT = 0x3 |
| 3262 | ETHTOOL_TUNABLE_UNSPEC = 0x0 |
| 3263 | ETHTOOL_TUNABLE_U8 = 0x1 |
| 3264 | ETHTOOL_TUNABLE_U16 = 0x2 |
| 3265 | ETHTOOL_TUNABLE_U32 = 0x3 |
| 3266 | ETHTOOL_TUNABLE_U64 = 0x4 |
| 3267 | ETHTOOL_TUNABLE_STRING = 0x5 |
| 3268 | ETHTOOL_TUNABLE_S8 = 0x6 |
| 3269 | ETHTOOL_TUNABLE_S16 = 0x7 |
| 3270 | ETHTOOL_TUNABLE_S32 = 0x8 |
| 3271 | ETHTOOL_TUNABLE_S64 = 0x9 |
| 3272 | ETHTOOL_PHY_ID_UNSPEC = 0x0 |
| 3273 | ETHTOOL_PHY_DOWNSHIFT = 0x1 |
| 3274 | ETHTOOL_PHY_FAST_LINK_DOWN = 0x2 |
| 3275 | ETHTOOL_PHY_EDPD = 0x3 |
| 3276 | ETHTOOL_LINK_EXT_STATE_AUTONEG = 0x0 |
| 3277 | ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE = 0x1 |
| 3278 | ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH = 0x2 |
| 3279 | ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY = 0x3 |
| 3280 | ETHTOOL_LINK_EXT_STATE_NO_CABLE = 0x4 |
| 3281 | ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE = 0x5 |
| 3282 | ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE = 0x6 |
| 3283 | ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE = 0x7 |
| 3284 | ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED = 0x8 |
| 3285 | ETHTOOL_LINK_EXT_STATE_OVERHEAT = 0x9 |
| 3286 | ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED = 0x1 |
| 3287 | ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED = 0x2 |
| 3288 | ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED = 0x3 |
| 3289 | ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE = 0x4 |
| 3290 | ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE = 0x5 |
| 3291 | ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD = 0x6 |
| 3292 | ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED = 0x1 |
| 3293 | ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT = 0x2 |
| 3294 | ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY = 0x3 |
| 3295 | ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT = 0x4 |
| 3296 | ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK = 0x1 |
| 3297 | ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK = 0x2 |
| 3298 | ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS = 0x3 |
| 3299 | ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED = 0x4 |
| 3300 | ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED = 0x5 |
| 3301 | ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 0x1 |
| 3302 | ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE = 0x2 |
| 3303 | ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 0x1 |
| 3304 | ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE = 0x2 |
| 3305 | ETHTOOL_FLASH_ALL_REGIONS = 0x0 |
| 3306 | ETHTOOL_F_UNSUPPORTED__BIT = 0x0 |
| 3307 | ETHTOOL_F_WISH__BIT = 0x1 |
| 3308 | ETHTOOL_F_COMPAT__BIT = 0x2 |
| 3309 | ETHTOOL_FEC_NONE_BIT = 0x0 |
| 3310 | ETHTOOL_FEC_AUTO_BIT = 0x1 |
| 3311 | ETHTOOL_FEC_OFF_BIT = 0x2 |
| 3312 | ETHTOOL_FEC_RS_BIT = 0x3 |
| 3313 | ETHTOOL_FEC_BASER_BIT = 0x4 |
| 3314 | ETHTOOL_FEC_LLRS_BIT = 0x5 |
| 3315 | ETHTOOL_LINK_MODE_10baseT_Half_BIT = 0x0 |
| 3316 | ETHTOOL_LINK_MODE_10baseT_Full_BIT = 0x1 |
| 3317 | ETHTOOL_LINK_MODE_100baseT_Half_BIT = 0x2 |
| 3318 | ETHTOOL_LINK_MODE_100baseT_Full_BIT = 0x3 |
| 3319 | ETHTOOL_LINK_MODE_1000baseT_Half_BIT = 0x4 |
| 3320 | ETHTOOL_LINK_MODE_1000baseT_Full_BIT = 0x5 |
| 3321 | ETHTOOL_LINK_MODE_Autoneg_BIT = 0x6 |
| 3322 | ETHTOOL_LINK_MODE_TP_BIT = 0x7 |
| 3323 | ETHTOOL_LINK_MODE_AUI_BIT = 0x8 |
| 3324 | ETHTOOL_LINK_MODE_MII_BIT = 0x9 |
| 3325 | ETHTOOL_LINK_MODE_FIBRE_BIT = 0xa |
| 3326 | ETHTOOL_LINK_MODE_BNC_BIT = 0xb |
| 3327 | ETHTOOL_LINK_MODE_10000baseT_Full_BIT = 0xc |
| 3328 | ETHTOOL_LINK_MODE_Pause_BIT = 0xd |
| 3329 | ETHTOOL_LINK_MODE_Asym_Pause_BIT = 0xe |
| 3330 | ETHTOOL_LINK_MODE_2500baseX_Full_BIT = 0xf |
| 3331 | ETHTOOL_LINK_MODE_Backplane_BIT = 0x10 |
| 3332 | ETHTOOL_LINK_MODE_1000baseKX_Full_BIT = 0x11 |
| 3333 | ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT = 0x12 |
| 3334 | ETHTOOL_LINK_MODE_10000baseKR_Full_BIT = 0x13 |
| 3335 | ETHTOOL_LINK_MODE_10000baseR_FEC_BIT = 0x14 |
| 3336 | ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT = 0x15 |
| 3337 | ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT = 0x16 |
| 3338 | ETHTOOL_LINK_MODE_40000baseKR4_Full_BIT = 0x17 |
| 3339 | ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT = 0x18 |
| 3340 | ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT = 0x19 |
| 3341 | ETHTOOL_LINK_MODE_40000baseLR4_Full_BIT = 0x1a |
| 3342 | ETHTOOL_LINK_MODE_56000baseKR4_Full_BIT = 0x1b |
| 3343 | ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT = 0x1c |
| 3344 | ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT = 0x1d |
| 3345 | ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT = 0x1e |
| 3346 | ETHTOOL_LINK_MODE_25000baseCR_Full_BIT = 0x1f |
| 3347 | ETHTOOL_LINK_MODE_25000baseKR_Full_BIT = 0x20 |
| 3348 | ETHTOOL_LINK_MODE_25000baseSR_Full_BIT = 0x21 |
| 3349 | ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT = 0x22 |
| 3350 | ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT = 0x23 |
| 3351 | ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT = 0x24 |
| 3352 | ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT = 0x25 |
| 3353 | ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT = 0x26 |
| 3354 | ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT = 0x27 |
| 3355 | ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT = 0x28 |
| 3356 | ETHTOOL_LINK_MODE_1000baseX_Full_BIT = 0x29 |
| 3357 | ETHTOOL_LINK_MODE_10000baseCR_Full_BIT = 0x2a |
| 3358 | ETHTOOL_LINK_MODE_10000baseSR_Full_BIT = 0x2b |
| 3359 | ETHTOOL_LINK_MODE_10000baseLR_Full_BIT = 0x2c |
| 3360 | ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT = 0x2d |
| 3361 | ETHTOOL_LINK_MODE_10000baseER_Full_BIT = 0x2e |
| 3362 | ETHTOOL_LINK_MODE_2500baseT_Full_BIT = 0x2f |
| 3363 | ETHTOOL_LINK_MODE_5000baseT_Full_BIT = 0x30 |
| 3364 | ETHTOOL_LINK_MODE_FEC_NONE_BIT = 0x31 |
| 3365 | ETHTOOL_LINK_MODE_FEC_RS_BIT = 0x32 |
| 3366 | ETHTOOL_LINK_MODE_FEC_BASER_BIT = 0x33 |
| 3367 | ETHTOOL_LINK_MODE_50000baseKR_Full_BIT = 0x34 |
| 3368 | ETHTOOL_LINK_MODE_50000baseSR_Full_BIT = 0x35 |
| 3369 | ETHTOOL_LINK_MODE_50000baseCR_Full_BIT = 0x36 |
| 3370 | ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT = 0x37 |
| 3371 | ETHTOOL_LINK_MODE_50000baseDR_Full_BIT = 0x38 |
| 3372 | ETHTOOL_LINK_MODE_100000baseKR2_Full_BIT = 0x39 |
| 3373 | ETHTOOL_LINK_MODE_100000baseSR2_Full_BIT = 0x3a |
| 3374 | ETHTOOL_LINK_MODE_100000baseCR2_Full_BIT = 0x3b |
| 3375 | ETHTOOL_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT = 0x3c |
| 3376 | ETHTOOL_LINK_MODE_100000baseDR2_Full_BIT = 0x3d |
| 3377 | ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT = 0x3e |
| 3378 | ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT = 0x3f |
| 3379 | ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 0x40 |
| 3380 | ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT = 0x41 |
| 3381 | ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT = 0x42 |
| 3382 | ETHTOOL_LINK_MODE_100baseT1_Full_BIT = 0x43 |
| 3383 | ETHTOOL_LINK_MODE_1000baseT1_Full_BIT = 0x44 |
| 3384 | ETHTOOL_LINK_MODE_400000baseKR8_Full_BIT = 0x45 |
| 3385 | ETHTOOL_LINK_MODE_400000baseSR8_Full_BIT = 0x46 |
| 3386 | ETHTOOL_LINK_MODE_400000baseLR8_ER8_FR8_Full_BIT = 0x47 |
| 3387 | ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT = 0x48 |
| 3388 | ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT = 0x49 |
| 3389 | ETHTOOL_LINK_MODE_FEC_LLRS_BIT = 0x4a |
| 3390 | ETHTOOL_LINK_MODE_100000baseKR_Full_BIT = 0x4b |
| 3391 | ETHTOOL_LINK_MODE_100000baseSR_Full_BIT = 0x4c |
| 3392 | ETHTOOL_LINK_MODE_100000baseLR_ER_FR_Full_BIT = 0x4d |
| 3393 | ETHTOOL_LINK_MODE_100000baseCR_Full_BIT = 0x4e |
| 3394 | ETHTOOL_LINK_MODE_100000baseDR_Full_BIT = 0x4f |
| 3395 | ETHTOOL_LINK_MODE_200000baseKR2_Full_BIT = 0x50 |
| 3396 | ETHTOOL_LINK_MODE_200000baseSR2_Full_BIT = 0x51 |
| 3397 | ETHTOOL_LINK_MODE_200000baseLR2_ER2_FR2_Full_BIT = 0x52 |
| 3398 | ETHTOOL_LINK_MODE_200000baseDR2_Full_BIT = 0x53 |
| 3399 | ETHTOOL_LINK_MODE_200000baseCR2_Full_BIT = 0x54 |
| 3400 | ETHTOOL_LINK_MODE_400000baseKR4_Full_BIT = 0x55 |
| 3401 | ETHTOOL_LINK_MODE_400000baseSR4_Full_BIT = 0x56 |
| 3402 | ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT = 0x57 |
| 3403 | ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT = 0x58 |
| 3404 | ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT = 0x59 |
| 3405 | ETHTOOL_LINK_MODE_100baseFX_Half_BIT = 0x5a |
| 3406 | ETHTOOL_LINK_MODE_100baseFX_Full_BIT = 0x5b |
| 3407 | |
| 3408 | ETHTOOL_MSG_USER_NONE = 0x0 |
| 3409 | ETHTOOL_MSG_STRSET_GET = 0x1 |
| 3410 | ETHTOOL_MSG_LINKINFO_GET = 0x2 |
| 3411 | ETHTOOL_MSG_LINKINFO_SET = 0x3 |
| 3412 | ETHTOOL_MSG_LINKMODES_GET = 0x4 |
| 3413 | ETHTOOL_MSG_LINKMODES_SET = 0x5 |
| 3414 | ETHTOOL_MSG_LINKSTATE_GET = 0x6 |
| 3415 | ETHTOOL_MSG_DEBUG_GET = 0x7 |
| 3416 | ETHTOOL_MSG_DEBUG_SET = 0x8 |
| 3417 | ETHTOOL_MSG_WOL_GET = 0x9 |
| 3418 | ETHTOOL_MSG_WOL_SET = 0xa |
| 3419 | ETHTOOL_MSG_FEATURES_GET = 0xb |
| 3420 | ETHTOOL_MSG_FEATURES_SET = 0xc |
| 3421 | ETHTOOL_MSG_PRIVFLAGS_GET = 0xd |
| 3422 | ETHTOOL_MSG_PRIVFLAGS_SET = 0xe |
| 3423 | ETHTOOL_MSG_RINGS_GET = 0xf |
| 3424 | ETHTOOL_MSG_RINGS_SET = 0x10 |
| 3425 | ETHTOOL_MSG_CHANNELS_GET = 0x11 |
| 3426 | ETHTOOL_MSG_CHANNELS_SET = 0x12 |
| 3427 | ETHTOOL_MSG_COALESCE_GET = 0x13 |
| 3428 | ETHTOOL_MSG_COALESCE_SET = 0x14 |
| 3429 | ETHTOOL_MSG_PAUSE_GET = 0x15 |
| 3430 | ETHTOOL_MSG_PAUSE_SET = 0x16 |
| 3431 | ETHTOOL_MSG_EEE_GET = 0x17 |
| 3432 | ETHTOOL_MSG_EEE_SET = 0x18 |
| 3433 | ETHTOOL_MSG_TSINFO_GET = 0x19 |
| 3434 | ETHTOOL_MSG_CABLE_TEST_ACT = 0x1a |
| 3435 | ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 0x1b |
| 3436 | ETHTOOL_MSG_TUNNEL_INFO_GET = 0x1c |
| 3437 | ETHTOOL_MSG_USER_MAX = 0x1c |
| 3438 | ETHTOOL_MSG_KERNEL_NONE = 0x0 |
| 3439 | ETHTOOL_MSG_STRSET_GET_REPLY = 0x1 |
| 3440 | ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2 |
| 3441 | ETHTOOL_MSG_LINKINFO_NTF = 0x3 |
| 3442 | ETHTOOL_MSG_LINKMODES_GET_REPLY = 0x4 |
| 3443 | ETHTOOL_MSG_LINKMODES_NTF = 0x5 |
| 3444 | ETHTOOL_MSG_LINKSTATE_GET_REPLY = 0x6 |
| 3445 | ETHTOOL_MSG_DEBUG_GET_REPLY = 0x7 |
| 3446 | ETHTOOL_MSG_DEBUG_NTF = 0x8 |
| 3447 | ETHTOOL_MSG_WOL_GET_REPLY = 0x9 |
| 3448 | ETHTOOL_MSG_WOL_NTF = 0xa |
| 3449 | ETHTOOL_MSG_FEATURES_GET_REPLY = 0xb |
| 3450 | ETHTOOL_MSG_FEATURES_SET_REPLY = 0xc |
| 3451 | ETHTOOL_MSG_FEATURES_NTF = 0xd |
| 3452 | ETHTOOL_MSG_PRIVFLAGS_GET_REPLY = 0xe |
| 3453 | ETHTOOL_MSG_PRIVFLAGS_NTF = 0xf |
| 3454 | ETHTOOL_MSG_RINGS_GET_REPLY = 0x10 |
| 3455 | ETHTOOL_MSG_RINGS_NTF = 0x11 |
| 3456 | ETHTOOL_MSG_CHANNELS_GET_REPLY = 0x12 |
| 3457 | ETHTOOL_MSG_CHANNELS_NTF = 0x13 |
| 3458 | ETHTOOL_MSG_COALESCE_GET_REPLY = 0x14 |
| 3459 | ETHTOOL_MSG_COALESCE_NTF = 0x15 |
| 3460 | ETHTOOL_MSG_PAUSE_GET_REPLY = 0x16 |
| 3461 | ETHTOOL_MSG_PAUSE_NTF = 0x17 |
| 3462 | ETHTOOL_MSG_EEE_GET_REPLY = 0x18 |
| 3463 | ETHTOOL_MSG_EEE_NTF = 0x19 |
| 3464 | ETHTOOL_MSG_TSINFO_GET_REPLY = 0x1a |
| 3465 | ETHTOOL_MSG_CABLE_TEST_NTF = 0x1b |
| 3466 | ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 0x1c |
| 3467 | ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 0x1d |
| 3468 | ETHTOOL_MSG_KERNEL_MAX = 0x1d |
| 3469 | ETHTOOL_A_HEADER_UNSPEC = 0x0 |
| 3470 | ETHTOOL_A_HEADER_DEV_INDEX = 0x1 |
| 3471 | ETHTOOL_A_HEADER_DEV_NAME = 0x2 |
| 3472 | ETHTOOL_A_HEADER_FLAGS = 0x3 |
| 3473 | ETHTOOL_A_HEADER_MAX = 0x3 |
| 3474 | ETHTOOL_A_BITSET_BIT_UNSPEC = 0x0 |
| 3475 | ETHTOOL_A_BITSET_BIT_INDEX = 0x1 |
| 3476 | ETHTOOL_A_BITSET_BIT_NAME = 0x2 |
| 3477 | ETHTOOL_A_BITSET_BIT_VALUE = 0x3 |
| 3478 | ETHTOOL_A_BITSET_BIT_MAX = 0x3 |
| 3479 | ETHTOOL_A_BITSET_BITS_UNSPEC = 0x0 |
| 3480 | ETHTOOL_A_BITSET_BITS_BIT = 0x1 |
| 3481 | ETHTOOL_A_BITSET_BITS_MAX = 0x1 |
| 3482 | ETHTOOL_A_BITSET_UNSPEC = 0x0 |
| 3483 | ETHTOOL_A_BITSET_NOMASK = 0x1 |
| 3484 | ETHTOOL_A_BITSET_SIZE = 0x2 |
| 3485 | ETHTOOL_A_BITSET_BITS = 0x3 |
| 3486 | ETHTOOL_A_BITSET_VALUE = 0x4 |
| 3487 | ETHTOOL_A_BITSET_MASK = 0x5 |
| 3488 | ETHTOOL_A_BITSET_MAX = 0x5 |
| 3489 | ETHTOOL_A_STRING_UNSPEC = 0x0 |
| 3490 | ETHTOOL_A_STRING_INDEX = 0x1 |
| 3491 | ETHTOOL_A_STRING_VALUE = 0x2 |
| 3492 | ETHTOOL_A_STRING_MAX = 0x2 |
| 3493 | ETHTOOL_A_STRINGS_UNSPEC = 0x0 |
| 3494 | ETHTOOL_A_STRINGS_STRING = 0x1 |
| 3495 | ETHTOOL_A_STRINGS_MAX = 0x1 |
| 3496 | ETHTOOL_A_STRINGSET_UNSPEC = 0x0 |
| 3497 | ETHTOOL_A_STRINGSET_ID = 0x1 |
| 3498 | ETHTOOL_A_STRINGSET_COUNT = 0x2 |
| 3499 | ETHTOOL_A_STRINGSET_STRINGS = 0x3 |
| 3500 | ETHTOOL_A_STRINGSET_MAX = 0x3 |
| 3501 | ETHTOOL_A_STRINGSETS_UNSPEC = 0x0 |
| 3502 | ETHTOOL_A_STRINGSETS_STRINGSET = 0x1 |
| 3503 | ETHTOOL_A_STRINGSETS_MAX = 0x1 |
| 3504 | ETHTOOL_A_STRSET_UNSPEC = 0x0 |
| 3505 | ETHTOOL_A_STRSET_HEADER = 0x1 |
| 3506 | ETHTOOL_A_STRSET_STRINGSETS = 0x2 |
| 3507 | ETHTOOL_A_STRSET_COUNTS_ONLY = 0x3 |
| 3508 | ETHTOOL_A_STRSET_MAX = 0x3 |
| 3509 | ETHTOOL_A_LINKINFO_UNSPEC = 0x0 |
| 3510 | ETHTOOL_A_LINKINFO_HEADER = 0x1 |
| 3511 | ETHTOOL_A_LINKINFO_PORT = 0x2 |
| 3512 | ETHTOOL_A_LINKINFO_PHYADDR = 0x3 |
| 3513 | ETHTOOL_A_LINKINFO_TP_MDIX = 0x4 |
| 3514 | ETHTOOL_A_LINKINFO_TP_MDIX_CTRL = 0x5 |
| 3515 | ETHTOOL_A_LINKINFO_TRANSCEIVER = 0x6 |
| 3516 | ETHTOOL_A_LINKINFO_MAX = 0x6 |
| 3517 | ETHTOOL_A_LINKMODES_UNSPEC = 0x0 |
| 3518 | ETHTOOL_A_LINKMODES_HEADER = 0x1 |
| 3519 | ETHTOOL_A_LINKMODES_AUTONEG = 0x2 |
| 3520 | ETHTOOL_A_LINKMODES_OURS = 0x3 |
| 3521 | ETHTOOL_A_LINKMODES_PEER = 0x4 |
| 3522 | ETHTOOL_A_LINKMODES_SPEED = 0x5 |
| 3523 | ETHTOOL_A_LINKMODES_DUPLEX = 0x6 |
| 3524 | ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG = 0x7 |
| 3525 | ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE = 0x8 |
| 3526 | ETHTOOL_A_LINKMODES_LANES = 0x9 |
| 3527 | ETHTOOL_A_LINKMODES_MAX = 0x9 |
| 3528 | ETHTOOL_A_LINKSTATE_UNSPEC = 0x0 |
| 3529 | ETHTOOL_A_LINKSTATE_HEADER = 0x1 |
| 3530 | ETHTOOL_A_LINKSTATE_LINK = 0x2 |
| 3531 | ETHTOOL_A_LINKSTATE_SQI = 0x3 |
| 3532 | ETHTOOL_A_LINKSTATE_SQI_MAX = 0x4 |
| 3533 | ETHTOOL_A_LINKSTATE_EXT_STATE = 0x5 |
| 3534 | ETHTOOL_A_LINKSTATE_EXT_SUBSTATE = 0x6 |
| 3535 | ETHTOOL_A_LINKSTATE_MAX = 0x6 |
| 3536 | ETHTOOL_A_DEBUG_UNSPEC = 0x0 |
| 3537 | ETHTOOL_A_DEBUG_HEADER = 0x1 |
| 3538 | ETHTOOL_A_DEBUG_MSGMASK = 0x2 |
| 3539 | ETHTOOL_A_DEBUG_MAX = 0x2 |
| 3540 | ETHTOOL_A_WOL_UNSPEC = 0x0 |
| 3541 | ETHTOOL_A_WOL_HEADER = 0x1 |
| 3542 | ETHTOOL_A_WOL_MODES = 0x2 |
| 3543 | ETHTOOL_A_WOL_SOPASS = 0x3 |
| 3544 | ETHTOOL_A_WOL_MAX = 0x3 |
| 3545 | ETHTOOL_A_FEATURES_UNSPEC = 0x0 |
| 3546 | ETHTOOL_A_FEATURES_HEADER = 0x1 |
| 3547 | ETHTOOL_A_FEATURES_HW = 0x2 |
| 3548 | ETHTOOL_A_FEATURES_WANTED = 0x3 |
| 3549 | ETHTOOL_A_FEATURES_ACTIVE = 0x4 |
| 3550 | ETHTOOL_A_FEATURES_NOCHANGE = 0x5 |
| 3551 | ETHTOOL_A_FEATURES_MAX = 0x5 |
| 3552 | ETHTOOL_A_PRIVFLAGS_UNSPEC = 0x0 |
| 3553 | ETHTOOL_A_PRIVFLAGS_HEADER = 0x1 |
| 3554 | ETHTOOL_A_PRIVFLAGS_FLAGS = 0x2 |
| 3555 | ETHTOOL_A_PRIVFLAGS_MAX = 0x2 |
| 3556 | ETHTOOL_A_RINGS_UNSPEC = 0x0 |
| 3557 | ETHTOOL_A_RINGS_HEADER = 0x1 |
| 3558 | ETHTOOL_A_RINGS_RX_MAX = 0x2 |
| 3559 | ETHTOOL_A_RINGS_RX_MINI_MAX = 0x3 |
| 3560 | ETHTOOL_A_RINGS_RX_JUMBO_MAX = 0x4 |
| 3561 | ETHTOOL_A_RINGS_TX_MAX = 0x5 |
| 3562 | ETHTOOL_A_RINGS_RX = 0x6 |
| 3563 | ETHTOOL_A_RINGS_RX_MINI = 0x7 |
| 3564 | ETHTOOL_A_RINGS_RX_JUMBO = 0x8 |
| 3565 | ETHTOOL_A_RINGS_TX = 0x9 |
| 3566 | ETHTOOL_A_RINGS_MAX = 0x9 |
| 3567 | ETHTOOL_A_CHANNELS_UNSPEC = 0x0 |
| 3568 | ETHTOOL_A_CHANNELS_HEADER = 0x1 |
| 3569 | ETHTOOL_A_CHANNELS_RX_MAX = 0x2 |
| 3570 | ETHTOOL_A_CHANNELS_TX_MAX = 0x3 |
| 3571 | ETHTOOL_A_CHANNELS_OTHER_MAX = 0x4 |
| 3572 | ETHTOOL_A_CHANNELS_COMBINED_MAX = 0x5 |
| 3573 | ETHTOOL_A_CHANNELS_RX_COUNT = 0x6 |
| 3574 | ETHTOOL_A_CHANNELS_TX_COUNT = 0x7 |
| 3575 | ETHTOOL_A_CHANNELS_OTHER_COUNT = 0x8 |
| 3576 | ETHTOOL_A_CHANNELS_COMBINED_COUNT = 0x9 |
| 3577 | ETHTOOL_A_CHANNELS_MAX = 0x9 |
| 3578 | ETHTOOL_A_COALESCE_UNSPEC = 0x0 |
| 3579 | ETHTOOL_A_COALESCE_HEADER = 0x1 |
| 3580 | ETHTOOL_A_COALESCE_RX_USECS = 0x2 |
| 3581 | ETHTOOL_A_COALESCE_RX_MAX_FRAMES = 0x3 |
| 3582 | ETHTOOL_A_COALESCE_RX_USECS_IRQ = 0x4 |
| 3583 | ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ = 0x5 |
| 3584 | ETHTOOL_A_COALESCE_TX_USECS = 0x6 |
| 3585 | ETHTOOL_A_COALESCE_TX_MAX_FRAMES = 0x7 |
| 3586 | ETHTOOL_A_COALESCE_TX_USECS_IRQ = 0x8 |
| 3587 | ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ = 0x9 |
| 3588 | ETHTOOL_A_COALESCE_STATS_BLOCK_USECS = 0xa |
| 3589 | ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX = 0xb |
| 3590 | ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX = 0xc |
| 3591 | ETHTOOL_A_COALESCE_PKT_RATE_LOW = 0xd |
| 3592 | ETHTOOL_A_COALESCE_RX_USECS_LOW = 0xe |
| 3593 | ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW = 0xf |
| 3594 | ETHTOOL_A_COALESCE_TX_USECS_LOW = 0x10 |
| 3595 | ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW = 0x11 |
| 3596 | ETHTOOL_A_COALESCE_PKT_RATE_HIGH = 0x12 |
| 3597 | ETHTOOL_A_COALESCE_RX_USECS_HIGH = 0x13 |
| 3598 | ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH = 0x14 |
| 3599 | ETHTOOL_A_COALESCE_TX_USECS_HIGH = 0x15 |
| 3600 | ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH = 0x16 |
| 3601 | ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL = 0x17 |
| 3602 | ETHTOOL_A_COALESCE_MAX = 0x17 |
| 3603 | ETHTOOL_A_PAUSE_UNSPEC = 0x0 |
| 3604 | ETHTOOL_A_PAUSE_HEADER = 0x1 |
| 3605 | ETHTOOL_A_PAUSE_AUTONEG = 0x2 |
| 3606 | ETHTOOL_A_PAUSE_RX = 0x3 |
| 3607 | ETHTOOL_A_PAUSE_TX = 0x4 |
| 3608 | ETHTOOL_A_PAUSE_STATS = 0x5 |
| 3609 | ETHTOOL_A_PAUSE_MAX = 0x5 |
| 3610 | ETHTOOL_A_PAUSE_STAT_UNSPEC = 0x0 |
| 3611 | ETHTOOL_A_PAUSE_STAT_PAD = 0x1 |
| 3612 | ETHTOOL_A_PAUSE_STAT_TX_FRAMES = 0x2 |
| 3613 | ETHTOOL_A_PAUSE_STAT_RX_FRAMES = 0x3 |
| 3614 | ETHTOOL_A_PAUSE_STAT_MAX = 0x3 |
| 3615 | ETHTOOL_A_EEE_UNSPEC = 0x0 |
| 3616 | ETHTOOL_A_EEE_HEADER = 0x1 |
| 3617 | ETHTOOL_A_EEE_MODES_OURS = 0x2 |
| 3618 | ETHTOOL_A_EEE_MODES_PEER = 0x3 |
| 3619 | ETHTOOL_A_EEE_ACTIVE = 0x4 |
| 3620 | ETHTOOL_A_EEE_ENABLED = 0x5 |
| 3621 | ETHTOOL_A_EEE_TX_LPI_ENABLED = 0x6 |
| 3622 | ETHTOOL_A_EEE_TX_LPI_TIMER = 0x7 |
| 3623 | ETHTOOL_A_EEE_MAX = 0x7 |
| 3624 | ETHTOOL_A_TSINFO_UNSPEC = 0x0 |
| 3625 | ETHTOOL_A_TSINFO_HEADER = 0x1 |
| 3626 | ETHTOOL_A_TSINFO_TIMESTAMPING = 0x2 |
| 3627 | ETHTOOL_A_TSINFO_TX_TYPES = 0x3 |
| 3628 | ETHTOOL_A_TSINFO_RX_FILTERS = 0x4 |
| 3629 | ETHTOOL_A_TSINFO_PHC_INDEX = 0x5 |
| 3630 | ETHTOOL_A_TSINFO_MAX = 0x5 |
| 3631 | ETHTOOL_A_CABLE_TEST_UNSPEC = 0x0 |
| 3632 | ETHTOOL_A_CABLE_TEST_HEADER = 0x1 |
| 3633 | ETHTOOL_A_CABLE_TEST_MAX = 0x1 |
| 3634 | ETHTOOL_A_CABLE_RESULT_CODE_UNSPEC = 0x0 |
| 3635 | ETHTOOL_A_CABLE_RESULT_CODE_OK = 0x1 |
| 3636 | ETHTOOL_A_CABLE_RESULT_CODE_OPEN = 0x2 |
| 3637 | ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT = 0x3 |
| 3638 | ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT = 0x4 |
| 3639 | ETHTOOL_A_CABLE_PAIR_A = 0x0 |
| 3640 | ETHTOOL_A_CABLE_PAIR_B = 0x1 |
| 3641 | ETHTOOL_A_CABLE_PAIR_C = 0x2 |
| 3642 | ETHTOOL_A_CABLE_PAIR_D = 0x3 |
| 3643 | ETHTOOL_A_CABLE_RESULT_UNSPEC = 0x0 |
| 3644 | ETHTOOL_A_CABLE_RESULT_PAIR = 0x1 |
| 3645 | ETHTOOL_A_CABLE_RESULT_CODE = 0x2 |
| 3646 | ETHTOOL_A_CABLE_RESULT_MAX = 0x2 |
| 3647 | ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC = 0x0 |
| 3648 | ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR = 0x1 |
| 3649 | ETHTOOL_A_CABLE_FAULT_LENGTH_CM = 0x2 |
| 3650 | ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = 0x2 |
| 3651 | ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC = 0x0 |
| 3652 | ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED = 0x1 |
| 3653 | ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED = 0x2 |
| 3654 | ETHTOOL_A_CABLE_NEST_UNSPEC = 0x0 |
| 3655 | ETHTOOL_A_CABLE_NEST_RESULT = 0x1 |
| 3656 | ETHTOOL_A_CABLE_NEST_FAULT_LENGTH = 0x2 |
| 3657 | ETHTOOL_A_CABLE_NEST_MAX = 0x2 |
| 3658 | ETHTOOL_A_CABLE_TEST_NTF_UNSPEC = 0x0 |
| 3659 | ETHTOOL_A_CABLE_TEST_NTF_HEADER = 0x1 |
| 3660 | ETHTOOL_A_CABLE_TEST_NTF_STATUS = 0x2 |
| 3661 | ETHTOOL_A_CABLE_TEST_NTF_NEST = 0x3 |
| 3662 | ETHTOOL_A_CABLE_TEST_NTF_MAX = 0x3 |
| 3663 | ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC = 0x0 |
| 3664 | ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST = 0x1 |
| 3665 | ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST = 0x2 |
| 3666 | ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP = 0x3 |
| 3667 | ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR = 0x4 |
| 3668 | ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = 0x4 |
| 3669 | ETHTOOL_A_CABLE_TEST_TDR_UNSPEC = 0x0 |
| 3670 | ETHTOOL_A_CABLE_TEST_TDR_HEADER = 0x1 |
| 3671 | ETHTOOL_A_CABLE_TEST_TDR_CFG = 0x2 |
| 3672 | ETHTOOL_A_CABLE_TEST_TDR_MAX = 0x2 |
| 3673 | ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC = 0x0 |
| 3674 | ETHTOOL_A_CABLE_AMPLITUDE_PAIR = 0x1 |
| 3675 | ETHTOOL_A_CABLE_AMPLITUDE_mV = 0x2 |
| 3676 | ETHTOOL_A_CABLE_AMPLITUDE_MAX = 0x2 |
| 3677 | ETHTOOL_A_CABLE_PULSE_UNSPEC = 0x0 |
| 3678 | ETHTOOL_A_CABLE_PULSE_mV = 0x1 |
| 3679 | ETHTOOL_A_CABLE_PULSE_MAX = 0x1 |
| 3680 | ETHTOOL_A_CABLE_STEP_UNSPEC = 0x0 |
| 3681 | ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE = 0x1 |
| 3682 | ETHTOOL_A_CABLE_STEP_LAST_DISTANCE = 0x2 |
| 3683 | ETHTOOL_A_CABLE_STEP_STEP_DISTANCE = 0x3 |
| 3684 | ETHTOOL_A_CABLE_STEP_MAX = 0x3 |
| 3685 | ETHTOOL_A_CABLE_TDR_NEST_UNSPEC = 0x0 |
| 3686 | ETHTOOL_A_CABLE_TDR_NEST_STEP = 0x1 |
| 3687 | ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE = 0x2 |
| 3688 | ETHTOOL_A_CABLE_TDR_NEST_PULSE = 0x3 |
| 3689 | ETHTOOL_A_CABLE_TDR_NEST_MAX = 0x3 |
| 3690 | ETHTOOL_A_CABLE_TEST_TDR_NTF_UNSPEC = 0x0 |
| 3691 | ETHTOOL_A_CABLE_TEST_TDR_NTF_HEADER = 0x1 |
| 3692 | ETHTOOL_A_CABLE_TEST_TDR_NTF_STATUS = 0x2 |
| 3693 | ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST = 0x3 |
| 3694 | ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX = 0x3 |
| 3695 | ETHTOOL_UDP_TUNNEL_TYPE_VXLAN = 0x0 |
| 3696 | ETHTOOL_UDP_TUNNEL_TYPE_GENEVE = 0x1 |
| 3697 | ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE = 0x2 |
| 3698 | ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC = 0x0 |
| 3699 | ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT = 0x1 |
| 3700 | ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE = 0x2 |
| 3701 | ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = 0x2 |
| 3702 | ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC = 0x0 |
| 3703 | ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE = 0x1 |
| 3704 | ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES = 0x2 |
| 3705 | ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY = 0x3 |
| 3706 | ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = 0x3 |
| 3707 | ETHTOOL_A_TUNNEL_UDP_UNSPEC = 0x0 |
| 3708 | ETHTOOL_A_TUNNEL_UDP_TABLE = 0x1 |
| 3709 | ETHTOOL_A_TUNNEL_UDP_MAX = 0x1 |
| 3710 | ETHTOOL_A_TUNNEL_INFO_UNSPEC = 0x0 |
| 3711 | ETHTOOL_A_TUNNEL_INFO_HEADER = 0x1 |
| 3712 | ETHTOOL_A_TUNNEL_INFO_UDP_PORTS = 0x2 |
| 3713 | ETHTOOL_A_TUNNEL_INFO_MAX = 0x2 |
| 3714 | ) |
| 3715 | |
| 3716 | type EthtoolDrvinfo struct { |
| 3717 | Cmd uint32 |
| 3718 | Driver [32]byte |
| 3719 | Version [32]byte |
| 3720 | Fw_version [32]byte |
| 3721 | Bus_info [32]byte |
| 3722 | Erom_version [32]byte |
| 3723 | Reserved2 [12]byte |
| 3724 | N_priv_flags uint32 |
| 3725 | N_stats uint32 |
| 3726 | Testinfo_len uint32 |
| 3727 | Eedump_len uint32 |
| 3728 | Regdump_len uint32 |
| 3729 | } |
| 3730 | |
| 3731 | type ( |
| 3732 | HIDRawReportDescriptor struct { |
| 3733 | Size uint32 |
| 3734 | Value [4096]uint8 |
| 3735 | } |
| 3736 | HIDRawDevInfo struct { |
| 3737 | Bustype uint32 |
| 3738 | Vendor int16 |
| 3739 | Product int16 |
| 3740 | } |
| 3741 | ) |
| 3742 | |
| 3743 | const ( |
| 3744 | CLOSE_RANGE_UNSHARE = 0x2 |
| 3745 | CLOSE_RANGE_CLOEXEC = 0x4 |
| 3746 | ) |
| 3747 | |
| 3748 | const ( |
| 3749 | NLMSGERR_ATTR_MSG = 0x1 |
| 3750 | NLMSGERR_ATTR_OFFS = 0x2 |
| 3751 | NLMSGERR_ATTR_COOKIE = 0x3 |
| 3752 | ) |
| 3753 | |
| 3754 | type ( |
| 3755 | EraseInfo struct { |
| 3756 | Start uint32 |
| 3757 | Length uint32 |
| 3758 | } |
| 3759 | EraseInfo64 struct { |
| 3760 | Start uint64 |
| 3761 | Length uint64 |
| 3762 | } |
| 3763 | MtdOobBuf struct { |
| 3764 | Start uint32 |
| 3765 | Length uint32 |
| 3766 | Ptr *uint8 |
| 3767 | } |
| 3768 | MtdOobBuf64 struct { |
| 3769 | Start uint64 |
| 3770 | Pad uint32 |
| 3771 | Length uint32 |
| 3772 | Ptr uint64 |
| 3773 | } |
| 3774 | MtdWriteReq struct { |
| 3775 | Start uint64 |
| 3776 | Len uint64 |
| 3777 | Ooblen uint64 |
| 3778 | Data uint64 |
| 3779 | Oob uint64 |
| 3780 | Mode uint8 |
| 3781 | _ [7]uint8 |
| 3782 | } |
| 3783 | MtdInfo struct { |
| 3784 | Type uint8 |
| 3785 | Flags uint32 |
| 3786 | Size uint32 |
| 3787 | Erasesize uint32 |
| 3788 | Writesize uint32 |
| 3789 | Oobsize uint32 |
| 3790 | _ uint64 |
| 3791 | } |
| 3792 | RegionInfo struct { |
| 3793 | Offset uint32 |
| 3794 | Erasesize uint32 |
| 3795 | Numblocks uint32 |
| 3796 | Regionindex uint32 |
| 3797 | } |
| 3798 | OtpInfo struct { |
| 3799 | Start uint32 |
| 3800 | Length uint32 |
| 3801 | Locked uint32 |
| 3802 | } |
| 3803 | NandOobinfo struct { |
| 3804 | Useecc uint32 |
| 3805 | Eccbytes uint32 |
| 3806 | Oobfree [8][2]uint32 |
| 3807 | Eccpos [32]uint32 |
| 3808 | } |
| 3809 | NandOobfree struct { |
| 3810 | Offset uint32 |
| 3811 | Length uint32 |
| 3812 | } |
| 3813 | NandEcclayout struct { |
| 3814 | Eccbytes uint32 |
| 3815 | Eccpos [64]uint32 |
| 3816 | Oobavail uint32 |
| 3817 | Oobfree [8]NandOobfree |
| 3818 | } |
| 3819 | MtdEccStats struct { |
| 3820 | Corrected uint32 |
| 3821 | Failed uint32 |
| 3822 | Badblocks uint32 |
| 3823 | Bbtblocks uint32 |
| 3824 | } |
| 3825 | ) |
| 3826 | |
| 3827 | const ( |
| 3828 | MTD_OPS_PLACE_OOB = 0x0 |
| 3829 | MTD_OPS_AUTO_OOB = 0x1 |
| 3830 | MTD_OPS_RAW = 0x2 |
| 3831 | ) |
| 3832 | |
| 3833 | const ( |
| 3834 | MTD_FILE_MODE_NORMAL = 0x0 |
| 3835 | MTD_FILE_MODE_OTP_FACTORY = 0x1 |
| 3836 | MTD_FILE_MODE_OTP_USER = 0x2 |
| 3837 | MTD_FILE_MODE_RAW = 0x3 |
| 3838 | ) |
| 3839 | |
| 3840 | const ( |
| 3841 | NFC_CMD_UNSPEC = 0x0 |
| 3842 | NFC_CMD_GET_DEVICE = 0x1 |
| 3843 | NFC_CMD_DEV_UP = 0x2 |
| 3844 | NFC_CMD_DEV_DOWN = 0x3 |
| 3845 | NFC_CMD_DEP_LINK_UP = 0x4 |
| 3846 | NFC_CMD_DEP_LINK_DOWN = 0x5 |
| 3847 | NFC_CMD_START_POLL = 0x6 |
| 3848 | NFC_CMD_STOP_POLL = 0x7 |
| 3849 | NFC_CMD_GET_TARGET = 0x8 |
| 3850 | NFC_EVENT_TARGETS_FOUND = 0x9 |
| 3851 | NFC_EVENT_DEVICE_ADDED = 0xa |
| 3852 | NFC_EVENT_DEVICE_REMOVED = 0xb |
| 3853 | NFC_EVENT_TARGET_LOST = 0xc |
| 3854 | NFC_EVENT_TM_ACTIVATED = 0xd |
| 3855 | NFC_EVENT_TM_DEACTIVATED = 0xe |
| 3856 | NFC_CMD_LLC_GET_PARAMS = 0xf |
| 3857 | NFC_CMD_LLC_SET_PARAMS = 0x10 |
| 3858 | NFC_CMD_ENABLE_SE = 0x11 |
| 3859 | NFC_CMD_DISABLE_SE = 0x12 |
| 3860 | NFC_CMD_LLC_SDREQ = 0x13 |
| 3861 | NFC_EVENT_LLC_SDRES = 0x14 |
| 3862 | NFC_CMD_FW_DOWNLOAD = 0x15 |
| 3863 | NFC_EVENT_SE_ADDED = 0x16 |
| 3864 | NFC_EVENT_SE_REMOVED = 0x17 |
| 3865 | NFC_EVENT_SE_CONNECTIVITY = 0x18 |
| 3866 | NFC_EVENT_SE_TRANSACTION = 0x19 |
| 3867 | NFC_CMD_GET_SE = 0x1a |
| 3868 | NFC_CMD_SE_IO = 0x1b |
| 3869 | NFC_CMD_ACTIVATE_TARGET = 0x1c |
| 3870 | NFC_CMD_VENDOR = 0x1d |
| 3871 | NFC_CMD_DEACTIVATE_TARGET = 0x1e |
| 3872 | NFC_ATTR_UNSPEC = 0x0 |
| 3873 | NFC_ATTR_DEVICE_INDEX = 0x1 |
| 3874 | NFC_ATTR_DEVICE_NAME = 0x2 |
| 3875 | NFC_ATTR_PROTOCOLS = 0x3 |
| 3876 | NFC_ATTR_TARGET_INDEX = 0x4 |
| 3877 | NFC_ATTR_TARGET_SENS_RES = 0x5 |
| 3878 | NFC_ATTR_TARGET_SEL_RES = 0x6 |
| 3879 | NFC_ATTR_TARGET_NFCID1 = 0x7 |
| 3880 | NFC_ATTR_TARGET_SENSB_RES = 0x8 |
| 3881 | NFC_ATTR_TARGET_SENSF_RES = 0x9 |
| 3882 | NFC_ATTR_COMM_MODE = 0xa |
| 3883 | NFC_ATTR_RF_MODE = 0xb |
| 3884 | NFC_ATTR_DEVICE_POWERED = 0xc |
| 3885 | NFC_ATTR_IM_PROTOCOLS = 0xd |
| 3886 | NFC_ATTR_TM_PROTOCOLS = 0xe |
| 3887 | NFC_ATTR_LLC_PARAM_LTO = 0xf |
| 3888 | NFC_ATTR_LLC_PARAM_RW = 0x10 |
| 3889 | NFC_ATTR_LLC_PARAM_MIUX = 0x11 |
| 3890 | NFC_ATTR_SE = 0x12 |
| 3891 | NFC_ATTR_LLC_SDP = 0x13 |
| 3892 | NFC_ATTR_FIRMWARE_NAME = 0x14 |
| 3893 | NFC_ATTR_SE_INDEX = 0x15 |
| 3894 | NFC_ATTR_SE_TYPE = 0x16 |
| 3895 | NFC_ATTR_SE_AID = 0x17 |
| 3896 | NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS = 0x18 |
| 3897 | NFC_ATTR_SE_APDU = 0x19 |
| 3898 | NFC_ATTR_TARGET_ISO15693_DSFID = 0x1a |
| 3899 | NFC_ATTR_TARGET_ISO15693_UID = 0x1b |
| 3900 | NFC_ATTR_SE_PARAMS = 0x1c |
| 3901 | NFC_ATTR_VENDOR_ID = 0x1d |
| 3902 | NFC_ATTR_VENDOR_SUBCMD = 0x1e |
| 3903 | NFC_ATTR_VENDOR_DATA = 0x1f |
| 3904 | NFC_SDP_ATTR_UNSPEC = 0x0 |
| 3905 | NFC_SDP_ATTR_URI = 0x1 |
| 3906 | NFC_SDP_ATTR_SAP = 0x2 |
| 3907 | ) |