HomeSort by relevance Sort by last modified time
    Searched refs:tun (Results 1 - 5 of 5) sorted by null

  /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 516 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu)); local
519 String interfaze = jniGetName(tun.getFd());
552 // Remove the old tun's user forwarding rules
553 // The new tun's user rules have already been added so they will take over
561 IoUtils.setBlocking(tun.getFileDescriptor(), config.blocking);
567 IoUtils.closeQuietly(tun);
578 return tun;
815 private native String jniGetName(int tun);
    [all...]
  /external/sepolicy/
file_contexts 109 /dev/tun u:object_r:tun_device:s0

Completed in 510 milliseconds