Home
last modified time | relevance | path

Searched refs:tunfd (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dvnic_manager.cpp77 int32_t tunfd = open(VNIC_TUN_DEVICE_PATH, O_RDWR | O_NONBLOCK); in CreateVnicInterface() local
78 if (tunfd <= 0) { in CreateVnicInterface()
84 if (ioctl(tunfd, TUNSETIFF, &ifr) < 0) { in CreateVnicInterface()
85 close(tunfd); in CreateVnicInterface()
99 close(tunfd); in CreateVnicInterface()
104 NETNATIVE_LOGI("open virtual device successfully, [%{public}d]", tunfd); in CreateVnicInterface()
105 tunFd_ = tunfd; in CreateVnicInterface()
H A Dvpn_manager.cpp59 int32_t tunfd = open(TUN_DEVICE_PATH, O_RDWR | O_NONBLOCK); in CreateVpnInterface() local
60 if (tunfd <= 0) { in CreateVpnInterface()
66 if (ioctl(tunfd, TUNSETIFF, &ifr) < 0) { in CreateVpnInterface()
67 close(tunfd); in CreateVpnInterface()
81 close(tunfd); in CreateVpnInterface()
86 NETNATIVE_LOGI("open virtual device successfully, [%{public}d]", tunfd); in CreateVpnInterface()
87 tunFd_ = tunfd; in CreateVpnInterface()
/ohos5.0/foundation/communication/netmanager_base/services/etc/init/
H A Dnetsysnative.cfg42 "name" : "tunfd",
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/
H A Djs-apis-net-vpn-sys.md131 console.info("tunfd: " + JSON.stringify(data));
202 console.info("setUp success, tunfd: " + JSON.stringify(data));
H A Djs-apis-net-vpnExtension.md338 hilog.error(0x0000, 'developTag', 'tunfd: %{public}s', JSON.stringify(data) ?? '');
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/
H A Djs-apis-net-vpn-sys.md131 console.info("tunfd: " + JSON.stringify(data));
202 console.info("setUp success, tunfd: " + JSON.stringify(data));
H A Djs-apis-net-vpnExtension.md338 hilog.error(0x0000, 'developTag', 'tunfd: %{public}s', JSON.stringify(data) ?? '');
/ohos5.0/docs/zh-cn/application-dev/network/
H A Dnet-vpn.md240 … NETMANAGER_VPN_LOGE("read tun device error: %{public}d, tunfd: %{public}d", errno, fdInfo.tunFd);
/ohos5.0/docs/en/application-dev/network/
H A Dnet-vpn.md240 … NETMANAGER_VPN_LOGE("read tun device error: %{public}d, tunfd: %{public}d", errno, fdInfo.tunFd);
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
H A Dlast_kmsg1116 <14>[ 9.462862] [pid=603][Init][INFO][init_service_socket.c:142]CreateSocket tunfd success
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
H A Dlast_kmsg1116 <14>[ 9.462862] [pid=603][Init][INFO][init_service_socket.c:142]CreateSocket tunfd success
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/
H A Dlast_kmsg1116 <14>[ 9.462862] [pid=603][Init][INFO][init_service_socket.c:142]CreateSocket tunfd success
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest014/
H A Dlast_kmsg1116 <14>[ 9.462862] [pid=603][Init][INFO][init_service_socket.c:142]CreateSocket tunfd success
/ohos5.0/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest015/
H A Dlast_kmsg1116 <14>[ 9.462862] [pid=603][Init][INFO][init_service_socket.c:142]CreateSocket tunfd success