@@ -143,6 +143,7 @@ struct termios2 {
143
143
#include <linux/sched/types.h>
144
144
#undef kernel_sched_param
145
145
#include <linux/shm.h>
146
+ #include <linux/sock_diag.h>
146
147
#include <linux/socket.h>
147
148
#include <linux/stat.h>
148
149
#include <linux/taskstats.h>
@@ -5917,3 +5918,33 @@ const SizeofSchedAttr = C.sizeof_struct_sched_attr
5917
5918
5918
5919
type Cachestat_t C.struct_cachestat
5919
5920
type CachestatRange C.struct_cachestat_range
5921
+
5922
+ // generated by:
5923
+ // $ perl -nlE '/^\s*((SK_|SKNLGRP_)\w+)/ && say "$1 = C.$1"' /usr/include/linux/sock_diag.h
5924
+ const (
5925
+ SK_MEMINFO_RMEM_ALLOC = C .SK_MEMINFO_RMEM_ALLOC
5926
+ SK_MEMINFO_RCVBUF = C .SK_MEMINFO_RCVBUF
5927
+ SK_MEMINFO_WMEM_ALLOC = C .SK_MEMINFO_WMEM_ALLOC
5928
+ SK_MEMINFO_SNDBUF = C .SK_MEMINFO_SNDBUF
5929
+ SK_MEMINFO_FWD_ALLOC = C .SK_MEMINFO_FWD_ALLOC
5930
+ SK_MEMINFO_WMEM_QUEUED = C .SK_MEMINFO_WMEM_QUEUED
5931
+ SK_MEMINFO_OPTMEM = C .SK_MEMINFO_OPTMEM
5932
+ SK_MEMINFO_BACKLOG = C .SK_MEMINFO_BACKLOG
5933
+ SK_MEMINFO_DROPS = C .SK_MEMINFO_DROPS
5934
+ SK_MEMINFO_VARS = C .SK_MEMINFO_VARS
5935
+ SKNLGRP_NONE = C .SKNLGRP_NONE
5936
+ SKNLGRP_INET_TCP_DESTROY = C .SKNLGRP_INET_TCP_DESTROY
5937
+ SKNLGRP_INET_UDP_DESTROY = C .SKNLGRP_INET_UDP_DESTROY
5938
+ SKNLGRP_INET6_TCP_DESTROY = C .SKNLGRP_INET6_TCP_DESTROY
5939
+ SKNLGRP_INET6_UDP_DESTROY = C .SKNLGRP_INET6_UDP_DESTROY
5940
+ SK_DIAG_BPF_STORAGE_REQ_NONE = C .SK_DIAG_BPF_STORAGE_REQ_NONE
5941
+ SK_DIAG_BPF_STORAGE_REQ_MAP_FD = C .SK_DIAG_BPF_STORAGE_REQ_MAP_FD
5942
+ SK_DIAG_BPF_STORAGE_REP_NONE = C .SK_DIAG_BPF_STORAGE_REP_NONE
5943
+ SK_DIAG_BPF_STORAGE = C .SK_DIAG_BPF_STORAGE
5944
+ SK_DIAG_BPF_STORAGE_NONE = C .SK_DIAG_BPF_STORAGE_NONE
5945
+ SK_DIAG_BPF_STORAGE_PAD = C .SK_DIAG_BPF_STORAGE_PAD
5946
+ SK_DIAG_BPF_STORAGE_MAP_ID = C .SK_DIAG_BPF_STORAGE_MAP_ID
5947
+ SK_DIAG_BPF_STORAGE_MAP_VALUE = C .SK_DIAG_BPF_STORAGE_MAP_VALUE
5948
+ )
5949
+
5950
+ type SockDiagReq C.struct_sock_diag_req
0 commit comments