@@ -833,6 +833,9 @@ static int del_gateway_routes(struct gateway_data *data,
int status4 = 0, status6 = 0;
bool do_ipv4 = false, do_ipv6 = false;
+ DBG("data %p type %d (%s)", data,
+ type, __connman_ipconfig_type2string(type));
+
GATEWAY_DATA_DBG("data", data);
if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
@@ -880,6 +883,10 @@ static int del_gateway_routes(struct gateway_data *data,
}
}
+ DBG("status4 %d (%s) status6 %d (%s)",
+ status4, strerror(-status4),
+ status6, strerror(-status6));
+
return (status4 < 0 ? status4 : status6);
}
From: Grant Erickson <erick205@umn.edu> To aid in debugging gateway route handling in multi-technology and -service configurations, particularly during online check-driven failover, add additional 'DBG' statements to 'del_gateway_routes'. --- src/connection.c | 7 +++++++ 1 file changed, 7 insertions(+)