unix_diag.h 893 B

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