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
3 // found in the LICENSE file.
5 #include "net/base/network_interfaces.h"
9 NetworkInterface::NetworkInterface()
10 : type(NetworkChangeNotifier::CONNECTION_UNKNOWN
), prefix_length(0) {
13 NetworkInterface::NetworkInterface(const std::string
& name
,
14 const std::string
& friendly_name
,
15 uint32_t interface_index
,
16 NetworkChangeNotifier::ConnectionType type
,
17 const IPAddressNumber
& address
,
18 uint32_t prefix_length
,
19 int ip_address_attributes
)
21 friendly_name(friendly_name
),
22 interface_index(interface_index
),
25 prefix_length(prefix_length
),
26 ip_address_attributes(ip_address_attributes
) {
29 NetworkInterface::~NetworkInterface() {
32 ScopedWifiOptions::~ScopedWifiOptions() {