1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16interface OHOS.NetManagerStandard.InterfaceStateCallback; 17sequenceable OHOS.NetManagerStandard.InterfaceConfiguration; 18sequenceable OHOS.NetManagerStandard.ConfigurationParcelIpc; 19sequenceable OHOS.NetManagerStandard.MacAddressInfo; 20sequenceable OHOS.NetManagerStandard.EthernetDeviceInfo; 21sequenceable OHOS.NetManagerStandard.EapData; 22sequenceable OHOS.NetManagerStandard.EthEapProfile; 23interface OHOS.NetManagerStandard.INetEapPostbackCallback; 24interface OHOS.NetManagerStandard.INetRegisterEapCallback; 25interface OHOS.NetManagerStandard.IEthernetService { 26 void GetMacAddress([out] List<MacAddressInfo> macAddrList); 27 void SetIfaceConfig([in] String iface, [in] sptr<InterfaceConfiguration> ic); 28 void GetIfaceConfig([in] String iface, [out] sptr<InterfaceConfiguration> ifaceConfig); 29 void IsIfaceActive([in] String iface, [out] int activeStatus); 30 void GetAllActiveIfaces([out] List<String> activeIfaces); 31 void ResetFactory(); 32 void RegisterIfacesStateChanged([in] InterfaceStateCallback cb); 33 void UnregisterIfacesStateChanged([in] InterfaceStateCallback cb); 34 void SetInterfaceUp([in] String iface); 35 void SetInterfaceDown([in] String iface); 36 void GetInterfaceConfig([in] String iface, [out] ConfigurationParcelIpc cfg); 37 void SetInterfaceConfig([in] String iface, [in] ConfigurationParcelIpc cfg); 38 void GetDeviceInformation([out] List<EthernetDeviceInfo> deviceInfoList); 39 void RegCustomEapHandler([in] int netType, [in] String regCmd, [in] INetEapPostbackCallback cb); 40 void ReplyCustomEapData([in] int eapResult, [in] sptr<EapData> eapData); 41 void RegisterCustomEapCallback([in] int netType, [in] INetRegisterEapCallback cb); 42 void UnRegisterCustomEapCallback([in] int netType, [in] INetRegisterEapCallback cb); 43 void NotifyWpaEapInterceptInfo([in] int netType, [in] sptr<EapData> eapData); 44 void StartEthEap([in] int netId, [in] EthEapProfile profile); 45 void LogOffEthEap([in] int netId); 46} 47