diff options
author | Andrew Zaborowski <andrew.zaborowski@intel.com> | 2022-06-16 00:47:31 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2022-06-17 10:59:15 -0500 |
commit | 6a796d173278adabb1ecc7b2dfc847bc2451ff81 (patch) | |
tree | 7b92413304a9071ad614397cf474d730fc0e6fe5 | |
parent | 18c4434324c27125a7b44e9bb40be7054d7bf7e0 (diff) |
examples: Update netconfig method calls
-rw-r--r-- | examples/netconfig-test.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/netconfig-test.c b/examples/netconfig-test.c index 39b6fa4b..45455dcf 100644 --- a/examples/netconfig-test.c +++ b/examples/netconfig-test.c @@ -108,7 +108,7 @@ static void event_handler(struct l_netconfig *netconfig, uint8_t family, enum l_netconfig_event event, void *user_data) { const char *af_str = family == AF_INET ? "v4" : "v6"; - const struct l_queue_entry *added, *updated, *removed; + const struct l_queue_entry *added, *updated, *removed, *expired; switch (event) { case L_NETCONFIG_EVENT_CONFIGURE: @@ -126,15 +126,18 @@ static void event_handler(struct l_netconfig *netconfig, uint8_t family, return; } - l_netconfig_get_addresses(netconfig, &added, &updated, &removed); + l_netconfig_get_addresses(netconfig, &added, &updated, + &removed, &expired); log_addresses(af_str, "added", added); log_addresses(af_str, "updated", updated); log_addresses(af_str, "removed", removed); + log_addresses(af_str, "expired", expired); - l_netconfig_get_routes(netconfig, &added, &updated, &removed); + l_netconfig_get_routes(netconfig, &added, &updated, &removed, &expired); log_routes(af_str, "added", added); log_routes(af_str, "updated", updated); log_routes(af_str, "removed", removed); + log_routes(af_str, "expired", expired); if (apply) l_netconfig_apply_rtnl(netconfig); |