OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/net_util.h" | 5 #include "net/base/net_util.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 NOTREACHED(); | 1031 NOTREACHED(); |
1032 } | 1032 } |
1033 return a1.size() * CHAR_BIT; | 1033 return a1.size() * CHAR_BIT; |
1034 } | 1034 } |
1035 | 1035 |
1036 unsigned MaskPrefixLength(const IPAddressNumber& mask) { | 1036 unsigned MaskPrefixLength(const IPAddressNumber& mask) { |
1037 IPAddressNumber all_ones(mask.size(), 0xFF); | 1037 IPAddressNumber all_ones(mask.size(), 0xFF); |
1038 return CommonPrefixLength(mask, all_ones); | 1038 return CommonPrefixLength(mask, all_ones); |
1039 } | 1039 } |
1040 | 1040 |
| 1041 ScopedWifiOptions::~ScopedWifiOptions() { |
| 1042 } |
| 1043 |
1041 } // namespace net | 1044 } // namespace net |
OLD | NEW |