/frameworks/base/services/core/jni/ |
com_android_server_connectivity_Vpn.cpp | 59 int tun = open("/dev/tun", O_RDWR | O_NONBLOCK); local 66 if (ioctl(tun, TUNSETIFF, &ifr4)) { 67 ALOGE("Cannot allocate TUN: %s", strerror(errno)); 85 return tun; 88 close(tun); 92 static int get_interface_name(char *name, int tun) 95 if (ioctl(tun, TUNGETIFF, &ifr4)) { 263 int tun = create_interface(mtu); local 264 if (tun < 0) [all...] |
/external/wpa_supplicant_8/src/radius/ |
radius.c | 1411 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local [all...] |
/external/ipsec-tools/ |
main.c | 108 int tun = open("/dev/tun", 0); local 118 if (ioctl(tun, TUNSETIFF, &ifr)) { 119 do_plog(LLV_ERROR, "Cannot allocate TUN: %s\n", strerror(errno));
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 513 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu)); local 516 String interfaze = jniGetName(tun.getFd()); 549 // Remove the old tun's user forwarding rules 550 // The new tun's user rules have already been added so they will take over 558 IoUtils.setBlocking(tun.getFileDescriptor(), config.blocking); 564 IoUtils.closeQuietly(tun); 575 return tun; 828 private native String jniGetName(int tun); [all...] |
/external/sepolicy/ |
file_contexts | 109 /dev/tun u:object_r:tun_device:s0
|