mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 14:38:09 +02:00
ip6: add default gateway debugging
This commit is contained in:
parent
296e06d764
commit
1c0e2a1ec3
1 changed files with 10 additions and 0 deletions
|
|
@ -1156,6 +1156,16 @@ replace_default_ip6_route (int ifindex, const struct in6_addr *gw, int mss)
|
|||
GList *def_routes, *iter;
|
||||
struct rtnl_route *route;
|
||||
char *iface;
|
||||
char gw_str[INET6_ADDRSTRLEN + 1];
|
||||
|
||||
g_return_val_if_fail (ifindex > 0, FALSE);
|
||||
g_return_val_if_fail (gw != NULL, FALSE);
|
||||
|
||||
if (nm_logging_level_enabled (LOGL_DEBUG)) {
|
||||
memset (gw_str, 0, sizeof (gw_str));
|
||||
if (inet_ntop (AF_INET6, gw, gw_str, sizeof (gw_str) - 1))
|
||||
nm_log_dbg (LOGD_IP6, "Setting IPv6 default route via %s", gw_str);
|
||||
}
|
||||
|
||||
/* We can't just use NLM_F_REPLACE here like in the IPv4 case, because
|
||||
* the kernel doesn't like it if we replace the default routes it
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue