| Index: chrome/browser/printing/cloud_print/privet_traffic_detector.cc
|
| diff --git a/chrome/browser/printing/cloud_print/privet_traffic_detector.cc b/chrome/browser/printing/cloud_print/privet_traffic_detector.cc
|
| index ec2c4445ec7032b037cc823b5b2b6a4855ce503d..eabffe25ce30d7b70e04b0e62a0b750d8bdc4129 100644
|
| --- a/chrome/browser/printing/cloud_print/privet_traffic_detector.cc
|
| +++ b/chrome/browser/printing/cloud_print/privet_traffic_detector.cc
|
| @@ -140,12 +140,13 @@ int PrivetTrafficDetector::Bind() {
|
| if (rv < net::OK)
|
| return rv;
|
| socket_->SetMulticastLoopbackMode(false);
|
| - return socket_->JoinGroup(multicast_addr.address());
|
| + return socket_->JoinGroup(multicast_addr.address().bytes());
|
| }
|
|
|
| bool PrivetTrafficDetector::IsSourceAcceptable() const {
|
| for (size_t i = 0; i < networks_.size(); ++i) {
|
| - if (net::IPNumberMatchesPrefix(recv_addr_.address(), networks_[i].address,
|
| + if (net::IPNumberMatchesPrefix(recv_addr_.address().bytes(),
|
| + networks_[i].address,
|
| networks_[i].prefix_length)) {
|
| return true;
|
| }
|
|
|