Print discovered network interfaces for debugging ICE_NEVER_CONNECTED endcause.

Bug: webrtc:14334
Change-Id: Iad2f25e44cd3a154d6dceda755696480e2618a93
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/299421
Commit-Queue: Diep Bui <diepbp@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39716}
This commit is contained in:
Diep Bui 2023-03-29 10:36:50 +00:00 committed by WebRTC LUCI CQ
parent d094ad7e2e
commit 46849fc73c
2 changed files with 7 additions and 0 deletions

View File

@ -768,6 +768,10 @@ std::vector<const rtc::Network*> BasicPortAllocatorSession::GetNetworks() {
networks.insert(networks.end(), any_address_networks.begin(),
any_address_networks.end());
}
RTC_LOG(LS_INFO) << "Count of networks: " << networks.size();
for (const rtc::Network* network : networks) {
RTC_LOG(LS_INFO) << network->ToString();
}
}
// Filter out link-local networks if needed.
if (flags() & PORTALLOCATOR_DISABLE_LINK_LOCAL_NETWORKS) {

View File

@ -154,16 +154,19 @@ bool IsIgnoredIPv6(bool allow_mac_based_ipv6, const InterfaceAddress& ip) {
// However, our IPAddress structure doesn't carry that so the
// information is lost and causes binding failure.
if (IPIsLinkLocal(ip)) {
RTC_LOG(LS_INFO) << "Ignore link local IP:" << ip.ToSensitiveString();
return true;
}
// Any MAC based IPv6 should be avoided to prevent the MAC tracking.
if (IPIsMacBased(ip) && !allow_mac_based_ipv6) {
RTC_LOG(LS_INFO) << "Ignore Mac based IP:" << ip.ToSensitiveString();
return true;
}
// Ignore deprecated IPv6.
if (ip.ipv6_flags() & IPV6_ADDRESS_FLAG_DEPRECATED) {
RTC_LOG(LS_INFO) << "Ignore deprecated IP:" << ip.ToSensitiveString();
return true;
}