/external/android-clat/ |
Android.mk | 4 LOCAL_SRC_FILES:=clatd.c dump.c checksum.c translate.c icmp.c ipv4.c ipv6.c config.c dns64.c logging.c getaddr.c netlink_callbacks.c netlink_msg.c setif.c mtu.c tun.c ring.c 33 LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c 45 LOCAL_SRC_FILES := clatd_microbenchmark.c checksum.c tun.c
|
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/autotest/client/deps/lansim/src/py/ |
tuntap_unittest.py | 30 tun = tuntap.TunTap(tuntap.IFF_TUN, name="faketun%d") 31 self.assertEqual(tun.mode, tuntap.IFF_TUN)
|
/external/wpa_supplicant_8/src/radius/ |
radius.c | 1441 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 | 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...] |
/system/extras/tests/net_test/ |
ping6_test.py | 50 def __init__(self, tun, mymac, routermac): 52 self._tun = tun
|
/system/sepolicy/ |
file_contexts | 132 /dev/tun u:object_r:tun_device:s0
|
/external/selinux/libsepol/cil/src/ |
cil_resolve_ast.c | 3154 struct cil_tunable *tun = curr->data; local [all...] |