/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...] |
/external/openssh/ |
auth-options.c | 360 char *tun = NULL; local 362 tun = xmalloc(strlen(opts) + 1); 367 tun[i++] = *opts++; 374 free(tun); 378 tun[i] = '\0'; 379 forced_tun_device = a2tun(tun, NULL); 380 free(tun); 382 debug("%.100s, line %lu: invalid tun device", 384 auth_debug_add("%.100s, line %lu: invalid tun device", 389 auth_debug_add("Forced tun device: %d", forced_tun_device) [all...] |
misc.c | 252 int tun; local 263 tun = a2tun(sp, NULL); 265 return (*remote == SSH_TUNID_ERR ? *remote : tun); 271 tun = strtonum(s, 0, SSH_TUNID_MAX, &errstr); 275 return (tun); 648 tun_open(int tun, int mode) 651 return (sys_tun_open(tun, mode)); 658 if (tun <= SSH_TUNID_MAX) { 659 snprintf(name, sizeof(name), "/dev/tun%d", tun); [all...] |
serverloop.c | 1027 int mode, tun; local 1045 tun = packet_get_int(); 1047 if (tun != SSH_TUNID_ANY && forced_tun_device != tun) 1049 tun = forced_tun_device; 1051 sock = tun_open(tun, mode); 1054 c = channel_new("tun", SSH_CHANNEL_OPEN, sock, sock, -1, 1055 CHAN_TCP_WINDOW_DEFAULT, CHAN_TCP_PACKET_DEFAULT, 0, "tun", 1); 1122 } else if (strcmp(ctype, "tun@openssh.com") == 0) { [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 532 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu)); local 535 String interfaze = jniGetName(tun.getFd()); 569 // Remove the old tun's user forwarding rules 570 // The new tun's user rules have already been added so they will take over 578 IoUtils.setBlocking(tun.getFileDescriptor(), config.blocking); 584 IoUtils.closeQuietly(tun); 595 return tun; 864 private native String jniGetName(int tun); [all...] |
/external/libvncserver/x11vnc/ |
v4l.c | 281 char *str, *p, *fmt = NULL, *tun = NULL, *inp = NULL; local 316 } else if (strstr(p, "tun=") == p) { 317 tun = strdup(p+4); 368 if (tun) { 370 if (!strcasecmp(tun, "PAL")) { 372 } else if (!strcasecmp(tun, "NTSC")) { 374 } else if (!strcasecmp(tun, "SECAM")) { 376 } else if (!strcasecmp(tun, "AUTO")) { [all...] |
/external/wpa_supplicant_8/src/radius/ |
radius.c | 1432 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local [all...] |
/external/selinux/libsepol/cil/src/ |
cil_resolve_ast.c | 2868 struct cil_tunable *tun = curr->data; local [all...] |