Searched refs:tunFd_ (Results 1 - 11 of 11) sorted by relevance
/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/ |
H A D | vpn_interface.cpp | 135 if (memcpy_s(&tunFd_, sizeof(tunFd_), CMSG_DATA(cmsgh), sizeof(tunFd_)) != EOK) { in RecvMsgFromUnixServer() 163 NETMGR_EXT_LOG_I("receive tun device fd: [%{public}d]", tunFd_.load()); in GetVpnInterfaceFd() 164 return tunFd_; in GetVpnInterfaceFd() 169 if (tunFd_ > 0) { in CloseVpnInterfaceFd() 170 NETMGR_EXT_LOG_I("close tunfd[%{public}d] of vpn interface", tunFd_.load()); in CloseVpnInterfaceFd() 171 close(tunFd_); in CloseVpnInterfaceFd() 172 tunFd_ = 0; in CloseVpnInterfaceFd()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | distributed_manager.cpp | 54 if (tunFd_ != 0) { in CreateDistributedInterface() 77 tunFd_ = tunfd; in CreateDistributedInterface() 218 if (tunFd_ > 0) { in CloseDistributedTunFd() 219 close(tunFd_); in CloseDistributedTunFd() 220 tunFd_ = 0; in CloseDistributedTunFd()
|
H A D | vpn_manager.cpp | 49 if (tunFd_ != 0) { in CreateVpnInterface() 87 tunFd_ = tunfd; in CreateVpnInterface() 104 if (tunFd_ != 0) { in DestroyVpnInterface() 105 close(tunFd_); in DestroyVpnInterface() 106 tunFd_ = 0; in DestroyVpnInterface() 310 SendVpnInterfaceFdToClient(clientFd, tunFd_); in StartUnixSocketListen()
|
H A D | vnic_manager.cpp | 73 if (tunFd_ != 0) { in CreateVnicInterface() 114 tunFd_ = tunfd; in CreateVnicInterface() 130 if (tunFd_ != 0) { in DestroyVnicInterface() 131 close(tunFd_); in DestroyVnicInterface() 132 tunFd_ = 0; in DestroyVnicInterface()
|
/foundation/communication/netmanager_ext/interfaces/innerkits/netvpnclient/include/ |
H A D | vpn_interface.h | 40 std::atomic_int tunFd_{0};
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | clatd.cpp | 49 : tunFd_(tunFd), readSock6_(readSock6), writeSock6_(writeSock6), v6Iface_(v6Iface) in Clatd() 130 {tunFd_, POLLIN, 0}, in RunLoop() 232 writev(tunFd_, &iovPackets[0], effectivePos); in ProcessV6Packet() 297 readLen = read(tunFd_, reinterpret_cast<iovec *>(&readBuf), sizeof(readBuf)); in ReadV4Packet()
|
/foundation/communication/netmanager_base/services/netmanagernative/include/manager/ |
H A D | vnic_manager.h | 61 std::atomic_int tunFd_ = 0; member in OHOS::NetManagerStandard::VnicManager
|
H A D | vpn_manager.h | 56 std::atomic_int tunFd_ = 0; member in OHOS::NetManagerStandard::VpnManager
|
H A D | distributed_manager.h | 62 std::atomic_int tunFd_ = 0; member in OHOS::NetManagerStandard::DistributedManager
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | clatd.h | 51 int tunFd_; member in OHOS::nmd::Clatd
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | vpn_manager_test.cpp | 89 VpnManager::GetInstance().tunFd_ = 1; in HWTEST_F()
|
Completed in 5 milliseconds