Home
last modified time | relevance | path

Searched refs:gwMacAddr (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/dhcp/services/utils/src/
H A Ddhcp_arp_checker.cpp207 std::string gwMacAddr = MacArray2Str(respPacket->ar_sha, ETH_ALEN); in GetGwMacAddrList() local
208 SaveGwMacAddr(gwMacAddr, gwMacLists); in GetGwMacAddrList()
217 void DhcpArpChecker::SaveGwMacAddr(std::string gwMacAddr, std::vector<std::string>& gwMacLists) in SaveGwMacAddr() argument
219 auto it = std::find(gwMacLists.begin(), gwMacLists.end(), gwMacAddr); in SaveGwMacAddr()
220 if (!gwMacAddr.empty() && (it == gwMacLists.end())) { in SaveGwMacAddr()
221 gwMacLists.push_back(gwMacAddr); in SaveGwMacAddr()
H A Ddhcp_common_utils.cpp101 char gwMacAddr[GATEWAY_MAC_LENTH] = {0}; in MacArray2Str() local
102 …if (sprintf_s(gwMacAddr, sizeof(gwMacAddr), "%02x:%02x:%02x:%02x:%02x:%02x", macArray[MAC_INDEX_0], in MacArray2Str()
108 std::string ret = gwMacAddr; in MacArray2Str()
/ohos5.0/foundation/communication/dhcp/services/utils/include/
H A Ddhcp_arp_checker.h56 void SaveGwMacAddr(std::string gwMacAddr, std::vector<std::string>& gwMacLists);