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