Home
last modified time | relevance | path

Searched refs:interfaceCfg (Results 1 – 2 of 2) sorted by relevance

/system/netd/server/
DNdcDispatcher.cpp226 InterfaceConfigurationParcel interfaceCfg; in runCommand() local
227 interfaceCfg.ifName = argv[2]; in runCommand()
228 interfaceCfg.hwAddr = ""; in runCommand()
233 interfaceCfg.ipv4Addr = ""; in runCommand()
234 interfaceCfg.prefixLength = 0; in runCommand()
237 interfaceCfg.ipv4Addr = argv[3]; in runCommand()
238 PARSE_INT_RETURN_IF_FAIL(cli, argv[4], interfaceCfg.prefixLength, in runCommand()
240 Status status = mNetd->interfaceSetCfg(interfaceCfg); in runCommand()
254 interfaceCfg.flags.push_back(toStdString(INetd::IF_STATE_UP())); in runCommand()
255 Status status = mNetd->interfaceSetCfg(interfaceCfg); in runCommand()
[all …]
/system/netd/tests/
Dbinder_test.cpp2720 const InterfaceConfigurationParcel& interfaceCfg) { in expectCurrentInterfaceConfigurationEquals() argument
2721 EXPECT_EQ(getInterfaceIPv4Addr(ifName), interfaceCfg.ipv4Addr); in expectCurrentInterfaceConfigurationEquals()
2722 EXPECT_EQ(getInterfaceIPv4Prefix(ifName), interfaceCfg.prefixLength); in expectCurrentInterfaceConfigurationEquals()
2723 EXPECT_EQ(getInterfaceHwAddr(ifName), interfaceCfg.hwAddr); in expectCurrentInterfaceConfigurationEquals()
2724 EXPECT_EQ(getInterfaceFlags(ifName), interfaceCfg.flags); in expectCurrentInterfaceConfigurationEquals()
2771 void expectTunFlags(const InterfaceConfigurationParcel& interfaceCfg) { in expectTunFlags() argument
2776 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) != in expectTunFlags()
2777 interfaceCfg.flags.end()); in expectTunFlags()
2781 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) == in expectTunFlags()
2782 interfaceCfg.flags.end()); in expectTunFlags()
[all …]