eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8d76cae6b183a837735c88abf5204e49e9358fb8
parent 7c5fb5aad4b6e7325cc7f700f9195b8b1e8d6681
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Wed,  4 Nov 2020 14:30:16 -0600

monitor: Dump some additional ROUTE attributes

Diffstat:
Mmonitor/nlmon.c | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/monitor/nlmon.c b/monitor/nlmon.c @@ -6744,6 +6744,11 @@ static struct attr_entry addr_entry[] = { { }, }; +static const struct attr_entry metrics_table[] = { + { RTAX_MTU, "MTU", ATTR_U32 }, + { } +}; + static struct attr_entry route_entry[] = { { RTA_DST, "Destination Address", ATTR_CUSTOM, { .function = print_inet_addr } }, @@ -6754,10 +6759,13 @@ static struct attr_entry route_entry[] = { { RTA_GATEWAY, "Gateway", ATTR_CUSTOM, { .function = print_inet_addr } }, { RTA_PRIORITY, "Priority of the route", ATTR_S32 }, - { RTA_METRICS, "Metric of the route", ATTR_S32 }, { RTA_TABLE, "Routing Table", ATTR_U32 }, + { RTA_EXPIRES, "Route lifetime", ATTR_U32 }, + { RTA_PREF, "Route Preference", ATTR_U8 }, { RTA_PREFSRC, "Preferred Source", ATTR_CUSTOM, { .function = print_inet_addr } }, + { RTA_METRICS, "Metrics", + ATTR_NESTED, { metrics_table } }, { }, };