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.cpp2659 const InterfaceConfigurationParcel& interfaceCfg) { in expectCurrentInterfaceConfigurationEquals() argument
2660 EXPECT_EQ(getInterfaceIPv4Addr(ifName), interfaceCfg.ipv4Addr); in expectCurrentInterfaceConfigurationEquals()
2661 EXPECT_EQ(getInterfaceIPv4Prefix(ifName), interfaceCfg.prefixLength); in expectCurrentInterfaceConfigurationEquals()
2662 EXPECT_EQ(getInterfaceHwAddr(ifName), interfaceCfg.hwAddr); in expectCurrentInterfaceConfigurationEquals()
2663 EXPECT_EQ(getInterfaceFlags(ifName), interfaceCfg.flags); in expectCurrentInterfaceConfigurationEquals()
2710 void expectTunFlags(const InterfaceConfigurationParcel& interfaceCfg) { in expectTunFlags() argument
2715 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) != in expectTunFlags()
2716 interfaceCfg.flags.end()); in expectTunFlags()
2720 EXPECT_TRUE(std::find(interfaceCfg.flags.begin(), interfaceCfg.flags.end(), flag) == in expectTunFlags()
2721 interfaceCfg.flags.end()); in expectTunFlags()
[all …]