Home
last modified time | relevance | path

Searched refs:gateWay (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/
H A Dwifi_direct_ip_manager.cpp180 std::string gateWay; in AddInterfaceAddress() local
181 int32_t ret = GetNetworkGateWay(ipString, gateWay); in AddInterfaceAddress()
191 LOCAL_NETWORK_ID, interface, destination, gateWay); in AddInterfaceAddress()
200 std::string gateWay; in DeleteInterfaceAddress() local
201 int32_t ret = GetNetworkGateWay(ipString, gateWay); in DeleteInterfaceAddress()
207 LOCAL_NETWORK_ID, interface, destination, gateWay); in DeleteInterfaceAddress()
230 int32_t WifiDirectIpManager::GetNetworkGateWay(const std::string &ipString, std::string &gateWay) in GetNetworkGateWay() argument
235 gateWay = ipString.substr(0, pos) + ".1"; in GetNetworkGateWay()
236 CONN_LOGI(CONN_WIFI_DIRECT, "gateWay=%{public}s", WifiDirectAnonymizeIp(gateWay).c_str()); in GetNetworkGateWay()
H A Dwifi_direct_ip_manager.h73 static int32_t GetNetworkGateWay(const std::string &ipString, std::string &gateWay);
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dif_config.cpp349 const std::string &gateWay, const int &ipType) in AddIfRoute() argument
352 AddIpv4Route(ifName, ipAddr, mask, gateWay); in AddIfRoute()
354 AddIpv6Route(ifName, ipAddr, mask, gateWay); in AddIfRoute()
364 …td::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) in AddIpv4Route() argument
370 gateWay.c_str()); in AddIpv4Route()
380 if (inet_aton(gateWay.c_str(), &(addr->sin_addr)) < 0) { in AddIpv4Route()
416 …td::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) in AddIpv6Route() argument
453 ipRouteCmd.push_back(gateWay); in AddIpv6Route()
H A Dif_config.h65 const std::string &gateWay, const int &ipType);
68 …d::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay);
71 …d::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay);
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/
H A Dwrapper_decoder.cpp450 char gateWay[INET6_ADDRSTRLEN] = {0}; in InterpreteRtMsg() local
459 if (IsDataEmpty(*gateWay, RTA_GATEWAY_STR, msgName) && in InterpreteRtMsg()
460 !inet_ntop(rtmFamily, RTA_DATA(rtAttr), gateWay, sizeof(gateWay))) { in InterpreteRtMsg()
480 if (!SaveRtMsg(dst, gateWay, device, rtmDstLen, rtmFamily)) { in InterpreteRtMsg()
509 bool WrapperDecoder::SaveRtMsg(std::string dst, const std::string gateWay, const std::string device… in SaveRtMsg() argument
520 if (dst.empty() || (gateWay.empty() && device.empty())) { in SaveRtMsg()
522 dst.size(), gateWay.size(), device.size()); in SaveRtMsg()
528 message_->PushMessage(NetsysEventMessage::Type::GATEWAY, gateWay); in SaveRtMsg()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_ip_manager_test.cpp158 std::string gateWay; variable
160 int32_t ret = ipManager.GetNetworkGateWay(ipString, gateWay);
162 EXPECT_EQ(gateWay, "192.168.1.1");
165 ret = ipManager.GetNetworkGateWay(ipString, gateWay);
/ohos5.0/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
H A Dethernet_configuration_test.cpp234 dhcpResult.gateWay = "test2";
253 dhcpResult.gateWay = "test2";
266 dhcpResult.gateWay = "test2";
279 dhcpResult.gateWay = "test2";
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/include/
H A Dethernet_dhcp_callback.h29 std::string gateWay; member
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_configuration.cpp274 gateway.address_ = dhcpResult.gateWay; in ConvertToConfiguration()
275 gateway.family_ = static_cast<uint8_t>(CommonUtils::GetAddrFamily(dhcpResult.gateWay)); in ConvertToConfiguration()
279 if (dhcpResult.gateWay != dhcpResult.route1 && dhcpResult.route1 != EMPTY_NET_ADDR) { in ConvertToConfiguration()
282 } else if (dhcpResult.gateWay != dhcpResult.route2 && dhcpResult.route2 != EMPTY_NET_ADDR) { in ConvertToConfiguration()
716 return dhcpResult.gateWay == gateway.address_; in IsValidDhcpResult()
718 …NETMGR_EXT_LOG_I("Same gateway:%{public}s", CommonUtils::ToAnonymousIp(dhcpResult.gateWay).c_str()… in IsValidDhcpResult()
H A Dethernet_dhcp_controller.cpp90 dhcpResult.gateWay = result->strOptRouter1; in OnDhcpSuccess()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/wrapper/
H A Dwrapper_decoder.h63 …bool SaveRtMsg(std::string dst, const std::string gateWay, const std::string device, int32_t lengt…
/ohos5.0/foundation/communication/netmanager_base/services/netsyscontroller/src/
H A Dmock_netsys_native_client.cpp473 const std::string &gateWay, const std::string &devName) in AddRoute() argument
481 if (inet_aton(gateWay.c_str(), &(_sin.sin_addr)) < 0) { in AddRoute()
482 NETMGR_LOG_E("inet_aton gateWay[%{private}s]", gateWay.c_str()); in AddRoute()
/ohos5.0/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dmock_netsys_native_client.h476 int32_t AddRoute(const std::string &ip, const std::string &mask, const std::string &gateWay,