sock_diag.h 742 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _UAPI__SOCK_DIAG_H__
  3. #define _UAPI__SOCK_DIAG_H__
  4. #include <linux/types.h>
  5. #define SOCK_DIAG_BY_FAMILY 20
  6. #define SOCK_DESTROY 21
  7. struct sock_diag_req {
  8. __u8 sdiag_family;
  9. __u8 sdiag_protocol;
  10. };
  11. enum {
  12. SK_MEMINFO_RMEM_ALLOC,
  13. SK_MEMINFO_RCVBUF,
  14. SK_MEMINFO_WMEM_ALLOC,
  15. SK_MEMINFO_SNDBUF,
  16. SK_MEMINFO_FWD_ALLOC,
  17. SK_MEMINFO_WMEM_QUEUED,
  18. SK_MEMINFO_OPTMEM,
  19. SK_MEMINFO_BACKLOG,
  20. SK_MEMINFO_DROPS,
  21. SK_MEMINFO_VARS,
  22. };
  23. enum sknetlink_groups {
  24. SKNLGRP_NONE,
  25. SKNLGRP_INET_TCP_DESTROY,
  26. SKNLGRP_INET_UDP_DESTROY,
  27. SKNLGRP_INET6_TCP_DESTROY,
  28. SKNLGRP_INET6_UDP_DESTROY,
  29. __SKNLGRP_MAX,
  30. };
  31. #define SKNLGRP_MAX (__SKNLGRP_MAX - 1)
  32. #endif /* _UAPI__SOCK_DIAG_H__ */