Home
last modified time | relevance | path

Searched refs:in_addr (Results 1 – 25 of 33) sorted by relevance

12

/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
Dipv4_address.cpp33 struct in_addr ipv4Addr = {INADDR_ANY}; in IsValidIPv4()
53 struct in_addr maskAddr = {INADDR_ANY}; in Create()
66 Ipv4Address Ipv4Address::Create(const in_addr &ipv4, const in_addr &mask) in Create()
69 struct in_addr maskAddr = mask; in Create()
92 in_addr Ipv4Address::GetAddressWithInet() const in GetAddressWithInet()
94 struct in_addr ipv4Addr = {INADDR_ANY}; in GetAddressWithInet()
104 in_addr ipAddr = GetMaskWithInet(); in GetMaskWithString()
111 in_addr Ipv4Address::GetMaskWithInet() const in GetMaskWithInet()
113 struct in_addr mask4Addr = {INADDR_ANY}; in GetMaskWithInet()
124 in_addr ipAddr = GetNetworkAddressWithInet(); in GetNetworkAddressWithString()
[all …]
Dipv4_address.h63 static Ipv4Address Create(const in_addr &ipv4, const in_addr &mask);
90 in_addr GetAddressWithInet() const;
106 in_addr GetMaskWithInet() const;
122 in_addr GetNetworkAddressWithInet() const;
138 in_addr GetHostAddressWithInet() const;
Ddhcpd_interface.h92 …const std::vector<Ipv4Address> &vecIpAddr, const struct in_addr &input, const struct in_addr &mask…
Ddhcpd_interface.cpp269 …const std::vector<Ipv4Address> &vecIpAddr, const struct in_addr &input, const struct in_addr &mask… in CompareSubNet()
273 struct in_addr tmpAddr = {INADDR_ANY}; in CompareSubNet()
288 struct in_addr maskAddr = {INADDR_ANY}; in AssignIpAddrV4()
293 struct in_addr initAddr = {INADDR_ANY}; in AssignIpAddrV4()
299 struct in_addr tmpAddr = {INADDR_ANY}; in AssignIpAddrV4()
Darp_checker.h48 struct in_addr localIpAddr_;
Darp_checker.cpp60 struct in_addr destIp; in DoArp()
Dhttp_request.cpp315 in_addr **addr_list = (in_addr **)he->h_addr_list; in GetHostThread()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/coap_discover/
Dcoap_app.h42 int32_t CoapServerInitWithIdx(const struct in_addr *ip, uint32_t idx, const char *networkName);
45 int32_t CoapServerInit(const struct in_addr *ip);
49 int32_t CoapP2pServerInit(const struct in_addr *ip);
51 int32_t CoapUsbServerInit(const struct in_addr *ip);
Dcoap_client.h34 …_t *CoapGetContext(const char *node, const char *port, uint8_t needBind, const struct in_addr *ip);
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
Dnstackx_device.h77 struct in_addr ip;
85 struct in_addr ip;
192 uint8_t IsWlanIpAddr(const struct in_addr *ifAddr);
193 uint8_t IsEthIpAddr(const struct in_addr *ifAddr);
194 uint8_t IsP2pIpAddr(const struct in_addr *ifAddr);
195 uint8_t IsUsbIpAddr(const struct in_addr *ifAddr);
227 void GetLocalIp(struct in_addr *ip);
231 void SetP2pIp(const struct in_addr *ip);
232 void SetUsbIp(const struct in_addr *ip);
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_wrapper_test/
Dwrapper_decoder_test.cpp158 RTA_ALIGN(sizeof(struct rtattr)) + RTA_ALIGN(sizeof(struct in_addr)) +
168 in_addr *ipv4Addr = reinterpret_cast<struct in_addr *>(RTA_DATA(prtattr));
189 prtattr->rta_len = RTA_ALIGN(sizeof(struct rtattr)) + RTA_ALIGN(sizeof(struct in_addr));
260 in_addr *ipv4Addr) in InterpreteRtMsgTest001ParmaCheck()
267 prtattr->rta_len = RTA_ALIGN(sizeof(struct rtattr)) + RTA_ALIGN(sizeof(struct in_addr)); in InterpreteRtMsgTest001ParmaCheck()
272 (*prtattr1)->rta_len = RTA_ALIGN(sizeof(struct rtattr)) + RTA_ALIGN(sizeof(struct in_addr)); in InterpreteRtMsgTest001ParmaCheck()
273 ipv4Addr = reinterpret_cast<struct in_addr *>(RTA_DATA(*prtattr1)); in InterpreteRtMsgTest001ParmaCheck()
288 RTA_ALIGN(sizeof(struct rtattr)) + RTA_ALIGN(sizeof(struct in_addr)) +
289 RTA_ALIGN(sizeof(struct rtattr)) + NLMSG_ALIGN(sizeof(struct in_addr)) +
298 in_addr *ipv4Addr = reinterpret_cast<struct in_addr *>(RTA_DATA(prtattr));
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
Dnstackx_device.c121 static struct in_addr g_p2pIp;
122 static struct in_addr g_usbIp;
1286 struct in_addr ipAddr;
1298 struct in_addr ipAddr;
1306 static char *GetLocalNifIpWithIdx(struct in_addr *ip, uint32_t idx)
1339 void GetLocalIp(struct in_addr *ip)
1343 (void)memcpy_s(ip, sizeof(struct in_addr),
1344 &ifInfo->ip, sizeof(struct in_addr));
1346 (void)memset_s(ip, sizeof(struct in_addr), 0, sizeof(struct in_addr));
1369 struct in_addr ipAddr;
[all …]
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/mini_discover/
Dcoap_app.h32 int32_t CoapServerInit(const struct in_addr *ip);
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
Dipv4_address_test.cpp83 in_addr ipv4;
85 in_addr mask;
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
Dcoap_client.c171 uint8_t needBind, const struct in_addr *ip) in CoapGetContextEx()
207 … (void)memcpy_s(&sockIp.sin_addr, sizeof(struct in_addr), ip, sizeof(struct in_addr)); in CoapGetContextEx()
224 …t_t *CoapGetContext(const char *node, const char *port, uint8_t needBind, const struct in_addr *ip) in CoapGetContext()
Dcoap_app.c550 static int32_t CoapServerInitWithIdxEx(const struct in_addr *ip, uint32_t idx, const char *networkN… in CoapServerInitWithIdxEx()
578 int32_t CoapServerInitWithIdx(const struct in_addr *ip, uint32_t idx, const char *networkName) in CoapServerInitWithIdx()
587 static int32_t CoapServerInitEx(const struct in_addr *ip) in CoapServerInitEx()
617 int32_t CoapServerInit(const struct in_addr *ip) in CoapServerInit()
626 static int32_t CoapP2pServerInitEx(const struct in_addr *ip) in CoapP2pServerInitEx()
661 int32_t CoapP2pServerInit(const struct in_addr *ip) in CoapP2pServerInit()
670 static int32_t CoapUsbServerInitEx(const struct in_addr *ip) in CoapUsbServerInitEx()
705 int32_t CoapUsbServerInit(const struct in_addr *ip) in CoapUsbServerInit()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/
Dcoap_app.c64 struct in_addr localAddr = {0}; in IsLoopBackPacket()
365 … int32_t CoapGetContext(const char *node, int32_t port, uint8_t needBind, const struct in_addr *ip) in CoapGetContext()
378 static int32_t CoapServerInitEx(const struct in_addr *ip) in CoapServerInitEx()
414 int32_t CoapServerInit(const struct in_addr *ip) in CoapServerInit()
/foundation/communication/dhcp/services/dhcp_server/src/
Daddress_utils.c170 struct in_addr inAddr; in ParseIpAddr()
174 if (memcpy_s(&ip, sizeof(uint32_t), &inAddr, sizeof(struct in_addr)) != EOK) { in ParseIpAddr()
200 struct in_addr inAddr; in ParseStrIp()
/foundation/communication/dhcp/test/services/dhcp_server/unittest/
Dsystem_func_mock.cpp60 struct in_addr { struct
67 struct in_addr sin_addr; argument
/foundation/communication/netmanager_ext/services/mdnsmanager/src/protocol/
Dmdns_packet_parser.cpp195 if (static_cast<size_t>(end - begin) < sizeof(in_addr) || length != sizeof(in_addr)) { in ParseRData()
199 in_addr addr; in ParseRData()
373 if (std::any_cast<const in_addr>(&rdata)) { in SerializeRData()
374 WriteRawData(*std::any_cast<const in_addr>(&rdata), payload); in SerializeRData()
Dmdns_socket_listener.cpp112 …mreq.imr_interface = ifa ? reinterpret_cast<sockaddr_in *>(ifa->ifa_addr)->sin_addr : in_addr{INAD… in InitSocketV4()
116 sizeof(in_addr)) == 0); in InitSocketV4()
454 in_addr addr; in Multicast()
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
Dinterface_manager.cpp201 in_addr inAddr; in ModifyAddress()
285 struct in_addr addr = {}; in GetIfaceConfig()
365 struct in_addr ipv4Addr = {INADDR_ANY}; in SetIpAddress()
Dvpn_manager.cpp125 in_addr ipv4Addr = {}; in SetVpnAddress()
/foundation/communication/dhcp/services/dhcp_client/src/
Ddhcp_function.c47 struct in_addr addr4; in Ip4StrConToInt()
71 struct in_addr addr4; in Ip4IntConToStr()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/
Dpan_network.cpp158 struct in_addr ipv4Addr = {INADDR_ANY}; in SetIpAddress()
159 struct in_addr mask4Addr = {INADDR_ANY}; in SetIpAddress()

12