Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: chrome/browser/local_discovery/privet_traffic_detector.cc

Issue 730623002: Rename network_prefix to prefix_length in NetworkInterface structure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/p2p_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/privet_traffic_detector.cc
diff --git a/chrome/browser/local_discovery/privet_traffic_detector.cc b/chrome/browser/local_discovery/privet_traffic_detector.cc
index 7e84f25dfa9bb317d53b4a42e7878a7031bbe890..62f8cd818869e8a45eb3576bb995a776dda8f7e0 100644
--- a/chrome/browser/local_discovery/privet_traffic_detector.cc
+++ b/chrome/browser/local_discovery/privet_traffic_detector.cc
@@ -32,7 +32,7 @@ void GetNetworkListOnFileThread(
net::AddressFamily address_family =
net::GetAddressFamily(networks[i].address);
if (address_family == net::ADDRESS_FAMILY_IPV4 &&
- networks[i].network_prefix >= 24) {
+ networks[i].prefix_length >= 24) {
ip4_networks.push_back(networks[i]);
}
}
@@ -141,7 +141,7 @@ int PrivetTrafficDetector::Bind() {
bool PrivetTrafficDetector::IsSourceAcceptable() const {
for (size_t i = 0; i < networks_.size(); ++i) {
if (net::IPNumberMatchesPrefix(recv_addr_.address(), networks_[i].address,
- networks_[i].network_prefix)) {
+ networks_[i].prefix_length)) {
return true;
}
}
« no previous file with comments | « no previous file | content/common/p2p_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698