| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "net/dns/mdns_client.h" | 5 #include "net/dns/mdns_client.h" | 
| 6 | 6 | 
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" | 
|  | 8 #include "net/base/network_interfaces.h" | 
| 8 #include "net/dns/dns_protocol.h" | 9 #include "net/dns/dns_protocol.h" | 
| 9 #include "net/dns/mdns_client_impl.h" | 10 #include "net/dns/mdns_client_impl.h" | 
| 10 | 11 | 
| 11 namespace net { | 12 namespace net { | 
| 12 | 13 | 
| 13 namespace { | 14 namespace { | 
| 14 | 15 | 
| 15 const char kMDnsMulticastGroupIPv4[] = "224.0.0.251"; | 16 const char kMDnsMulticastGroupIPv4[] = "224.0.0.251"; | 
| 16 const char kMDnsMulticastGroupIPv6[] = "FF02::FB"; | 17 const char kMDnsMulticastGroupIPv6[] = "FF02::FB"; | 
| 17 | 18 | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 93   int rv = Bind(multicast_addr, interface_index, socket.get()); | 94   int rv = Bind(multicast_addr, interface_index, socket.get()); | 
| 94   if (rv != OK) { | 95   if (rv != OK) { | 
| 95     socket.reset(); | 96     socket.reset(); | 
| 96     VLOG(1) << "Bind failed, endpoint=" << multicast_addr.ToStringWithoutPort() | 97     VLOG(1) << "Bind failed, endpoint=" << multicast_addr.ToStringWithoutPort() | 
| 97             << ", error=" << rv; | 98             << ", error=" << rv; | 
| 98   } | 99   } | 
| 99   return socket.Pass(); | 100   return socket.Pass(); | 
| 100 } | 101 } | 
| 101 | 102 | 
| 102 }  // namespace net | 103 }  // namespace net | 
| OLD | NEW | 
|---|