Searched refs:gwMacAddr (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/communication/dhcp/services/utils/src/ |
H A D | dhcp_arp_checker.cpp | 207 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 D | dhcp_common_utils.cpp | 101 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 D | dhcp_arp_checker.h | 56 void SaveGwMacAddr(std::string gwMacAddr, std::vector<std::string>& gwMacLists);
|