| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 enabled_events_ = 0; | 393 enabled_events_ = 0; |
| 394 if (resolver_) { | 394 if (resolver_) { |
| 395 resolver_->Destroy(false); | 395 resolver_->Destroy(false); |
| 396 resolver_ = NULL; | 396 resolver_ = NULL; |
| 397 } | 397 } |
| 398 return err; | 398 return err; |
| 399 } | 399 } |
| 400 | 400 |
| 401 int EstimateMTU(uint16_t* mtu) override { | 401 int EstimateMTU(uint16_t* mtu) override { |
| 402 SocketAddress addr = GetRemoteAddress(); | 402 SocketAddress addr = GetRemoteAddress(); |
| 403 if (addr.IsAny()) { | 403 if (addr.IsAnyIP()) { |
| 404 SetError(ENOTCONN); | 404 SetError(ENOTCONN); |
| 405 return -1; | 405 return -1; |
| 406 } | 406 } |
| 407 | 407 |
| 408 #if defined(WEBRTC_WIN) | 408 #if defined(WEBRTC_WIN) |
| 409 // Gets the interface MTU (TTL=1) for the interface used to reach |addr|. | 409 // Gets the interface MTU (TTL=1) for the interface used to reach |addr|. |
| 410 WinPing ping; | 410 WinPing ping; |
| 411 if (!ping.IsValid()) { | 411 if (!ping.IsValid()) { |
| 412 SetError(EINVAL); // can't think of a better error ID | 412 SetError(EINVAL); // can't think of a better error ID |
| 413 return -1; | 413 return -1; |
| (...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1627 break; | 1627 break; |
| 1628 } | 1628 } |
| 1629 } | 1629 } |
| 1630 | 1630 |
| 1631 // Done | 1631 // Done |
| 1632 return true; | 1632 return true; |
| 1633 } | 1633 } |
| 1634 #endif // WEBRTC_WIN | 1634 #endif // WEBRTC_WIN |
| 1635 | 1635 |
| 1636 } // namespace rtc | 1636 } // namespace rtc |
| OLD | NEW |