Home
last modified time | relevance | path

Searched refs:addrstr (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
H A Dcoap_client.c57 char addrstr[DEFAULT_COAP_BUFFER_LENGTH]; /* Get a char array with length 256 to save host name. */ in CoapResolveAddress() local
62 (void)memset_s(addrstr, sizeof(addrstr), 0, sizeof(addrstr)); in CoapResolveAddress()
64 if (memcpy_s(addrstr, sizeof(addrstr), server->s, server->length) != EOK) { in CoapResolveAddress()
65 DFINDER_LOGD(TAG, "addrstr copy error"); in CoapResolveAddress()
69 if (memcpy_s(addrstr, sizeof(addrstr), "localhost", strlen("localhost")) != EOK) { in CoapResolveAddress()
70 DFINDER_LOGD(TAG, "addrstr cop in CoapResolveAddress()
[all...]
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnat464_service.cpp145 char addrstr[INET6_ADDRSTRLEN]; in GetPrefixFromDns64() local
146 inet_ntop(AF_INET6, &addr->sin6_addr, addrstr, sizeof(addrstr)); in GetPrefixFromDns64()
147 prefixAddr.address_ = addrstr; in GetPrefixFromDns64()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dclat_utils.cpp120 char addrstr[INET_ADDRSTRLEN]; in SelectIpv4Address() local
121 inet_ntop(AF_INET, reinterpret_cast<void *>(&v4Addr), addrstr, sizeof(addrstr)); in SelectIpv4Address()
122 v4AddrStr = addrstr; in SelectIpv4Address()
249 char addrstr[INET6_ADDRSTRLEN]; in GenerateIpv6Address() local
250 if (!inet_ntop(AF_INET6, reinterpret_cast<void *>(&v6Addr), addrstr, sizeof(addrstr))) { in GenerateIpv6Address()
254 v6AddrStr = addrstr; in GenerateIpv6Address()

Completed in 3 milliseconds