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