1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI__SOCK_DIAG_H__
3 #define _UAPI__SOCK_DIAG_H__
5 #include <linux/types.h>
7 #define SOCK_DIAG_BY_FAMILY 20
8 #define SOCK_DESTROY 21
10 struct sock_diag_req
{
16 SK_MEMINFO_RMEM_ALLOC
,
18 SK_MEMINFO_WMEM_ALLOC
,
21 SK_MEMINFO_WMEM_QUEUED
,
29 enum sknetlink_groups
{
31 SKNLGRP_INET_TCP_DESTROY
,
32 SKNLGRP_INET_UDP_DESTROY
,
33 SKNLGRP_INET6_TCP_DESTROY
,
34 SKNLGRP_INET6_UDP_DESTROY
,
37 #define SKNLGRP_MAX (__SKNLGRP_MAX - 1)
40 SK_DIAG_BPF_STORAGE_REQ_NONE
,
41 SK_DIAG_BPF_STORAGE_REQ_MAP_FD
,
42 __SK_DIAG_BPF_STORAGE_REQ_MAX
,
45 #define SK_DIAG_BPF_STORAGE_REQ_MAX (__SK_DIAG_BPF_STORAGE_REQ_MAX - 1)
48 SK_DIAG_BPF_STORAGE_REP_NONE
,
50 __SK_DIAG_BPF_STORAGE_REP_MAX
,
53 #define SK_DIAB_BPF_STORAGE_REP_MAX (__SK_DIAG_BPF_STORAGE_REP_MAX - 1)
56 SK_DIAG_BPF_STORAGE_NONE
,
57 SK_DIAG_BPF_STORAGE_PAD
,
58 SK_DIAG_BPF_STORAGE_MAP_ID
,
59 SK_DIAG_BPF_STORAGE_MAP_VALUE
,
60 __SK_DIAG_BPF_STORAGE_MAX
,
63 #define SK_DIAG_BPF_STORAGE_MAX (__SK_DIAG_BPF_STORAGE_MAX - 1)
65 #endif /* _UAPI__SOCK_DIAG_H__ */