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

  /external/openssh/openbsd-compat/
port-tun.c 44 * SSH_TUN_LINUX Use the (newer) Linux tun/tap device
45 * SSH_TUN_FREEBSD Use the FreeBSD tun/tap device
59 sys_tun_open(int tun, int mode)
65 if ((fd = open("/dev/net/tun", O_RDWR)) == -1) {
78 name = "tun%d";
82 if (tun != SSH_TUNID_ANY) {
83 if (tun > SSH_TUNID_MAX) {
85 tun, strerror(errno));
88 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), name, tun);
97 if (tun == SSH_TUNID_ANY
    [all...]
  /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
37 LOCAL_SRC_FILES := clatd_test.cpp checksum.c translate.c icmp.c ipv4.c ipv6.c logging.c config.c tun.c
49 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 60 int tun = open("/dev/tun", O_RDWR | O_NONBLOCK); local
67 if (ioctl(tun, TUNSETIFF, &ifr4)) {
68 ALOGE("Cannot allocate TUN: %s", strerror(errno));
86 return tun;
89 close(tun);
93 static int get_interface_name(char *name, int tun)
96 if (ioctl(tun, TUNGETIFF, &ifr4)) {
264 int tun = create_interface(mtu); local
265 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/openssh/
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...]
auth-options.c 365 char *tun = NULL; local
367 tun = xmalloc(strlen(opts) + 1);
372 tun[i++] = *opts++;
379 free(tun);
383 tun[i] = '\0';
384 forced_tun_device = a2tun(tun, NULL);
385 free(tun);
387 debug("%.100s, line %lu: invalid tun device",
389 auth_debug_add("%.100s, line %lu: invalid tun device",
394 auth_debug_add("Forced tun device: %d", forced_tun_device)
    [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...]
Android.mk 79 openbsd-compat/port-tun.c \
  /frameworks/av/media/libstagefright/codec2/tests/
C2Param_test.cpp 787 // C2NumberTuning: kIndex | tun | global (args)
796 // C2NumberPortTuning: kIndex | tun | port (bool, args)
798 // C2NumberPortTuning::input: kIndex | tun | port | input (args)
799 // C2NumberPortTuning::output: kIndex | tun | port | output (args)
817 // C2NumberStreamTuning: kIndex | tun | str (bool, uint, args)
819 // C2NumberStreamTuning::input kIndex | tun | str | input (int, args)
820 // C2NumberStreamTuning::output kIx | tun | str | output (int, args)
964 EXPECT_EQ(C2NumberTuning::From(&tun), &tun); local
1462 std::unique_ptr<const C2NumbersTuning> tun = std::move(tun_); local
    [all...]
  /external/wpa_supplicant_8/src/radius/
radius.c 1452 struct radius_tunnel_attrs tunnel[RADIUS_TUNNEL_TAGS], *tun; local
    [all...]
  /external/ipsec-tools/
main.c 106 int tun = open("/dev/tun", 0); local
116 if (ioctl(tun, TUNSETIFF, &ifr)) {
117 do_plog(LLV_ERROR, "Cannot allocate TUN: %s\n", strerror(errno));
  /external/openssh/contrib/cygwin/
Makefile 51 -$(INSTALL) -m 644 $(srcdir)/README.tun $(DESTDIR)$(sshdocdir)/README.tun
  /frameworks/base/services/core/java/com/android/server/connectivity/
Vpn.java 782 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu)); local
785 String interfaze = jniGetName(tun.getFd());
817 // Remove the old tun's user forwarding rules
818 // The new tun's user rules have already been added so they will take over
    [all...]
  /kernel/tests/net/test/
ping6_test.py 56 def __init__(self, tun, mymac, routermac, routeraddr):
58 self._tun = tun
  /external/selinux/libsepol/cil/src/
cil_resolve_ast.c 3151 struct cil_tunable *tun = curr->data; local
    [all...]
  /system/sepolicy/private/
file_contexts 159 /dev/tun u:object_r:tun_device:s0

Completed in 290 milliseconds