This patch adds a new netlink attribute for the source-IP and appends it to the netlink reply. Now, iproute2 can have access to the source-IP.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -35,6 +35,8 @@ enum { · 34 unmodified lines | ||
| 35 | 35 | TCP_METRICS_ATTR_FOPEN_SYN_DROPS, /* u16, count of drops */ |
| 36 | 36 | TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS, /* msecs age */ |
| 37 | 37 | TCP_METRICS_ATTR_FOPEN_COOKIE, /* binary */ |
| 38 | + TCP_METRICS_ATTR_SADDR_IPV4, /* u32 */ | |
| 39 | + TCP_METRICS_ATTR_SADDR_IPV6, /* binary */ | |
| 38 | 40 | |
| 39 | 41 | __TCP_METRICS_ATTR_MAX, |
| 40 | 42 | }; |