/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));
|
/external/android-clat/ |
clatd_microbenchmark.c | 16 * clatd_microbenchmark.c - micro-benchmark for clatd tun send path 45 #include "tun.h" 88 struct tun_pi tun = { 0, htons(ETH_P_IP) }; local 106 { &tun, sizeof(tun) }, // tun header
|
/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...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 757 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu)); local 760 String interfaze = jniGetName(tun.getFd()); 792 // Remove the old tun's user forwarding rules 793 // The new tun's user rules have already been added so they will take over 801 IoUtils.setBlocking(tun.getFileDescriptor(), config.blocking); 807 IoUtils.closeQuietly(tun); 818 return tun; [all...] |
/external/wpa_supplicant_8/src/radius/ |
radius.c | 1441 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local [all...] |
/external/selinux/libsepol/cil/src/ |
cil_resolve_ast.c | 3154 struct cil_tunable *tun = curr->data; local [all...] |