sock_diag.h 636 B

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