Searched refs:tmpAddr (Results 1 - 5 of 5) sorted by relevance
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | dhcpd_interface.cpp | 210 struct in_addr tmpAddr = {INADDR_ANY}; in CompareSubNet() local 211 if (inet_aton(address.GetAddressWithString().c_str(), &tmpAddr) == 0) { in CompareSubNet() 215 if (CALC_SUBNET(tmpAddr.s_addr, mask.s_addr) == input.s_addr) { in CompareSubNet() 236 struct in_addr tmpAddr = {INADDR_ANY}; in AssignIpAddrV4() local 238 tmpAddr.s_addr = CALC_SUBNET(initAddr.s_addr, maskAddr.s_addr); in AssignIpAddrV4() 239 if (!CompareSubNet(vecIpAddr, tmpAddr, maskAddr)) { in AssignIpAddrV4() 243 uint32_t cSubnet = ntohl(htonl(IN_CLASSC_NET & IN_CLASSB_HOST) & tmpAddr.s_addr) >> IN_CLASSC_NSHIFT; in AssignIpAddrV4() 249 tmpAddr.s_addr = (tmpAddr.s_addr & htonl(IN_CLASSB_NET)) | htonl(cSubnet << IN_CLASSC_NSHIFT); in AssignIpAddrV4() 250 initAddr.s_addr = tmpAddr in AssignIpAddrV4() 268 struct in6_addr tmpAddr = IN6ADDR_ANY_INIT; AssignIpAddrV6() local [all...] |
/foundation/communication/netmanager_ext/services/mdnsmanager/src/ |
H A D | net_interface_callback.cpp | 53 std::string tmpAddr = addr.substr(0, pos); in OnInterfaceAddressUpdated() local 54 if (tmpAddr.empty()) { in OnInterfaceAddressUpdated() 59 int32_t ret = inet_pton(AF_INET6, tmpAddr.c_str(), &ipAddr); in OnInterfaceAddressUpdated()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bitmap_manager.cpp | 658 in6_addr tmpAddr; in GetIp6AndMask() local 659 memcpy_s(&tmpAddr, sizeof(tmpAddr), &addr6Start, sizeof(addr6Start)); in GetIp6AndMask() 662 AddIp6(tmpAddr, off + 1, list); in GetIp6AndMask() 663 ChangeIp6Start(off + 1, tmpAddr); in GetIp6AndMask() 666 AddIp6(tmpAddr, off + 1, list); in GetIp6AndMask() 667 ChangeIp6Start(off + 1, tmpAddr); in GetIp6AndMask() 683 AddIp6(tmpAddr, off + 1, list); in GetIp6AndMask() 684 ChangeIp6Start(off + 1, tmpAddr); in GetIp6AndMask() 687 ret = memcmp(&tmpAddr, in GetIp6AndMask() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/ |
H A D | nstackx_socket.c | 135 struct sockaddr_in tmpAddr; in ConnectUdpServerWithTargetDev() local 162 (void)memset_s(&tmpAddr, sizeof(tmpAddr), 0, sizeof(tmpAddr)); in ConnectUdpServerWithTargetDev() 163 ret = getsockname(clientSocket->sockfd, (struct sockaddr *)&tmpAddr, &srcAddrLen); in ConnectUdpServerWithTargetDev() 169 clientSocket->srcAddr = tmpAddr; in ConnectUdpServerWithTargetDev()
|
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_socket.cpp | 353 string tmpAddr = client->GetRemoteDevice().GetDeviceAddr(); in SocketGetRemoteAddr() local 354 GetAddrFromString(tmpAddr, remoteAddr->addr); in SocketGetRemoteAddr() 355 HILOGI("device: %{public}s", GetEncryptAddr(tmpAddr).c_str()); in SocketGetRemoteAddr()
|
Completed in 5 milliseconds