Fabien Siron | 814c0d5 | 2016-05-17 10:08:47 +0000 | [diff] [blame] | 1 | struct netlink_diag_req { |
| 2 | uint8_t sdiag_family; |
| 3 | uint8_t sdiag_protocol; |
| 4 | uint16_t pad; |
| 5 | uint32_t ndiag_ino; |
| 6 | uint32_t ndiag_show; |
| 7 | uint32_t ndiag_cookie[2]; |
| 8 | }; |
| 9 | |
| 10 | struct netlink_diag_msg { |
| 11 | uint8_t ndiag_family; |
| 12 | uint8_t ndiag_type; |
| 13 | uint8_t ndiag_protocol; |
| 14 | uint8_t ndiag_state; |
| 15 | |
| 16 | uint32_t ndiag_portid; |
| 17 | uint32_t ndiag_dst_portid; |
| 18 | uint32_t ndiag_dst_group; |
| 19 | uint32_t ndiag_ino; |
| 20 | uint32_t ndiag_cookie[2]; |
| 21 | }; |
| 22 | |
| 23 | #define NDIAG_SHOW_MEMINFO 0x00000001 |
| 24 | #define NDIAG_PROTO_ALL ((uint8_t) ~0) |