/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_ip_manager.cpp | 180 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) in GetNetworkGateWay() [all...] |
H A D | wifi_direct_ip_manager.h | 73 static int32_t GetNetworkGateWay(const std::string &ipString, std::string &gateWay);
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | if_config.h | 65 const std::string &gateWay, const int &ipType); 68 const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay); 71 const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay);
|
H A D | if_config.cpp | 349 const std::string &gateWay, const int &ipType) in AddIfRoute() 352 AddIpv4Route(ifName, ipAddr, mask, gateWay); in AddIfRoute() 354 AddIpv6Route(ifName, ipAddr, mask, gateWay); in AddIfRoute() 364 const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) in AddIpv4Route() 366 LOGI("Enter AddIpv4Route, ifName is %{public}s, ipAddr is %{private}s, mask is %s, gateWay is %{private}s", in AddIpv4Route() 370 gateWay.c_str()); in AddIpv4Route() 380 if (inet_aton(gateWay.c_str(), &(addr->sin_addr)) < 0) { in AddIpv4Route() 416 const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) in AddIpv6Route() 453 ipRouteCmd.push_back(gateWay); in AddIpv6Route() 348 AddIfRoute(const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay, const int &ipType) AddIfRoute() argument 363 AddIpv4Route( const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) AddIpv4Route() argument 415 AddIpv6Route( const std::string &ifName, const std::string &ipAddr, const std::string &mask, const std::string &gateWay) AddIpv6Route() argument
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | wrapper_decoder.cpp | 450 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, int32_t length, 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()
|
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_ip_manager_test.cpp | 158 std::string gateWay; in HWTEST_F() local 160 int32_t ret = ipManager.GetNetworkGateWay(ipString, gateWay); in HWTEST_F() 162 EXPECT_EQ(gateWay, "192.168.1.1"); in HWTEST_F() 165 ret = ipManager.GetNetworkGateWay(ipString, gateWay); in HWTEST_F()
|
/foundation/communication/netmanager_ext/services/ethernetmanager/include/ |
H A D | ethernet_dhcp_callback.h | 29 std::string gateWay; member
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/wrapper/ |
H A D | wrapper_decoder.h | 63 bool SaveRtMsg(std::string dst, const std::string gateWay, const std::string device, int32_t length,
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | ethernet_configuration_test.cpp | 234 dhcpResult.gateWay = "test2"; in HWTEST_F() 253 dhcpResult.gateWay = "test2"; in HWTEST_F() 266 dhcpResult.gateWay = "test2"; in HWTEST_F() 279 dhcpResult.gateWay = "test2"; in HWTEST_F()
|
/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/ |
H A D | ethernet_configuration_test.cpp | 234 dhcpResult.gateWay = "test2"; in HWTEST_F() 253 dhcpResult.gateWay = "test2"; in HWTEST_F() 266 dhcpResult.gateWay = "test2"; in HWTEST_F() 279 dhcpResult.gateWay = "test2"; in HWTEST_F()
|
/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
H A D | ethernet_dhcp_controller.cpp | 90 dhcpResult.gateWay = result->strOptRouter1; in OnDhcpSuccess()
|
H A D | ethernet_configuration.cpp | 274 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()
|
/foundation/communication/netmanager_base/services/netsyscontroller/src/ |
H A D | mock_netsys_native_client.cpp | 473 const std::string &gateWay, const std::string &devName) in AddRoute() 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() 472 AddRoute(const std::string &ip, const std::string &mask, const std::string &gateWay, const std::string &devName) AddRoute() argument
|
/foundation/communication/netmanager_base/services/netsyscontroller/include/ |
H A D | mock_netsys_native_client.h | 478 int32_t AddRoute(const std::string &ip, const std::string &mask, const std::string &gateWay,
|