unix_diag.h 867 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef __UNIX_DIAG_H__
  2. #define __UNIX_DIAG_H__
  3. struct unix_diag_req {
  4. __u8 sdiag_family;
  5. __u8 sdiag_protocol;
  6. __u16 pad;
  7. __u32 udiag_states;
  8. __u32 udiag_ino;
  9. __u32 udiag_show;
  10. __u32 udiag_cookie[2];
  11. };
  12. #define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
  13. #define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */
  14. #define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */
  15. #define UDIAG_SHOW_ICONS 0x00000008 /* show pending connections */
  16. #define UDIAG_SHOW_RQLEN 0x00000010 /* show skb receive queue len */
  17. struct unix_diag_msg {
  18. __u8 udiag_family;
  19. __u8 udiag_type;
  20. __u8 udiag_state;
  21. __u8 pad;
  22. __u32 udiag_ino;
  23. __u32 udiag_cookie[2];
  24. };
  25. enum {
  26. UNIX_DIAG_NAME,
  27. UNIX_DIAG_VFS,
  28. UNIX_DIAG_PEER,
  29. UNIX_DIAG_ICONS,
  30. UNIX_DIAG_RQLEN,
  31. UNIX_DIAG_MAX,
  32. };
  33. struct unix_diag_vfs {
  34. __u32 udiag_vfs_ino;
  35. __u32 udiag_vfs_dev;
  36. };
  37. #endif