/frameworks/base/services/jni/ |
com_android_server_connectivity_Vpn.cpp | 58 int tun = open("/dev/tun", O_RDWR | O_NONBLOCK); local 65 if (ioctl(tun, TUNSETIFF, &ifr4)) { 66 LOGE("Cannot allocate TUN: %s", strerror(errno)); 84 return tun; 87 close(tun); 91 static int get_interface_name(char *name, int tun) 94 if (ioctl(tun, TUNGETIFF, &ifr4)) { 327 int tun = create_interface(mtu); local 328 if (tun < 0) [all...] |
/external/wpa_supplicant/ |
radius.c | 1170 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local 1186 tun = &tunnel[0]; 1188 tun = &tunnel[data[0]]; 1194 tun->tag_used++; 1195 tun->type = (data[1] << 16) | (data[2] << 8) | data[3]; 1200 tun->tag_used++; 1201 tun->medium_type = 1213 tun->tag_used++; 1214 tun->vlanid = atoi(buf); 1220 tun = &tunnel[i] [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/radius/ |
radius.c | 1176 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local 1192 tun = &tunnel[0]; 1194 tun = &tunnel[data[0]]; 1200 tun->tag_used++; 1201 tun->type = WPA_GET_BE24(data + 1); 1206 tun->tag_used++; 1207 tun->medium_type = WPA_GET_BE24(data + 1); 1218 tun->tag_used++; 1219 tun->vlanid = atoi(buf); 1225 tun = &tunnel[i] [all...] |
/external/wpa_supplicant_8/src/radius/ |
radius.c | 1218 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local 1234 tun = &tunnel[0]; 1236 tun = &tunnel[data[0]]; 1242 tun->tag_used++; 1243 tun->type = WPA_GET_BE24(data + 1); 1248 tun->tag_used++; 1249 tun->medium_type = WPA_GET_BE24(data + 1); 1260 tun->tag_used++; 1261 tun->vlanid = atoi(buf); 1267 tun = &tunnel[i] [all...] |
/external/ipsec-tools/ |
main.c | 99 int tun = open("/dev/tun", 0); local 109 if (ioctl(tun, TUNSETIFF, &ifr)) { 110 do_plog(LLV_ERROR, "Cannot allocate TUN: %s\n", strerror(errno));
|
/frameworks/base/services/java/com/android/server/connectivity/ |
Vpn.java | 209 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu)); local 211 String interfaze = jniGetName(tun.getFd()); 232 tun.close(); 249 return tun; 342 private native String jniGetName(int tun);
|