HomeSort by relevance Sort by last modified time
    Searched refs:tunnel (Results 1 - 25 of 43) sorted by null

1 2

  /development/samples/ToyVpn/server/linux/
ToyVpnServer.cpp 87 int tunnel = socket(AF_INET6, SOCK_DGRAM, 0); local
89 setsockopt(tunnel, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(flag));
91 setsockopt(tunnel, IPPROTO_IPV6, IPV6_V6ONLY, &flag, sizeof(flag));
100 while (bind(tunnel, (sockaddr *)&addr, sizeof(addr))) {
112 int n = recvfrom(tunnel, packet, sizeof(packet), 0,
121 connect(tunnel, (sockaddr *)&addr, addrlen);
122 return tunnel;
187 // Wait for a tunnel.
188 int tunnel; local
189 while ((tunnel = get_tunnel(argv[2], argv[3])) != -1)
    [all...]
  /external/android-clat/
clatd.c 69 * tries to open the tunnel device
155 * tunnel - tun device data
157 void interface_poll(const struct tun_data *tunnel) {
179 if (!configure_packet_socket(tunnel->read_fd6)) {
190 * configures the ipv4 and ipv6 addresses on the tunnel interface
191 * tunnel - tun device data
193 void configure_tun_ip(const struct tun_data *tunnel) {
198 status = add_address(tunnel->device4, AF_INET, &Global_Clatd_Config.ipv4_local_subnet,
205 if((status = if_up(tunnel->device4, Global_Clatd_Config.ipv4mtu)) < 0) {
249 * tunnel - tun device dat
439 struct tun_data tunnel; local
    [all...]
  /bionic/libc/kernel/uapi/linux/
if_pppolac.h 30 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon508
  /development/ndk/platforms/android-L/include/linux/
if_pppolac.h 30 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon2107
  /external/kernel-headers/original/uapi/linux/
if_pppolac.h 29 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon26885
  /prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/
if_pppolac.h 25 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon52360
  /prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/
if_pppolac.h 25 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon53147
  /prebuilts/ndk/9/platforms/android-19/arch-arm64/usr/include/linux/
if_pppolac.h 30 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon74325
  /prebuilts/ndk/9/platforms/android-19/arch-mips64/usr/include/linux/
if_pppolac.h 30 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon75634
  /prebuilts/ndk/9/platforms/android-19/arch-x86_64/usr/include/linux/
if_pppolac.h 30 __u16 tunnel, session; member in struct:sockaddr_pppolac::__anon76942
  /external/iproute2/doc/
ip-tunnels.tex 30 to create tunnel. It does not work in 2.2.0!
34 ip tunnel add MY-TUNNEL mode ipip remote 193.233.7.65
36 will create tunnel device with name \verb|MY-TUNNEL|. Now you may configure
39 ifconfig MY-TUNNEL 10.0.0.1
41 Certainly, if you prefer name \verb|tunl1| to \verb|MY-TUNNEL|,
50 to tunnel net 10.0.0.0 via router 193.233.7.65. It does not
78 Q: In 2.0.36 I used to load \verb|tunnel| device module and \verb|ipip| module.
79 I cannot find any \verb|tunnel| in 2.2
    [all...]
  /development/samples/ToyVpn/src/com/example/android/toyvpn/
ToyVpnService.java 95 // tries to recreate the tunnel without shutting down everything.
100 // We try to create the tunnel for several times. The better way
133 DatagramChannel tunnel = null; local
136 // Create a DatagramChannel as the VPN tunnel.
137 tunnel = DatagramChannel.open();
139 // Protect the tunnel before connecting to avoid loopback.
140 if (!protect(tunnel.socket())) {
141 throw new IllegalStateException("Cannot protect the tunnel");
145 tunnel.connect(server);
148 // writing. Here we put the tunnel into non-blocking mode
    [all...]
  /external/mtpd/
mtpd.h 42 uint16_t tunnel; member in struct:sockaddr_pppolac::__anon31795
l2tp.c 196 /* We only handle packets in our tunnel. */
362 .local = {.tunnel = local_tunnel, .session = local_session},
363 .remote = {.tunnel = remote_tunnel, .session = remote_session},
414 uint16_t tunnel = 0; local
421 /* Here is the fun part. We always try to protect our tunnel and session
426 if (get_attribute_u16(ASSIGNED_TUNNEL, &tunnel) && tunnel &&
428 remote_tunnel = tunnel;
436 log_print(DEBUG, "Received SCCRP without %s", tunnel ?
437 "valid challenge response" : "assigned tunnel");
    [all...]
  /external/iproute2/ip/
Android.mk 5 rtm_map.c iptunnel.c ip6tunnel.c tunnel.c ipneigh.c ipntable.c iplink.c \
Makefile 2 rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
ipl2tp.c 63 int tunnel:1; member in struct:l2tp_parm
229 printf("Tunnel %u, encap %s\n",
235 printf(" Peer tunnel %u\n",
247 printf("Session %u in tunnel %u\n",
249 printf(" Peer session %u, tunnel %u\n",
486 fprintf(stderr, "Usage: ip l2tp add tunnel\n");
496 fprintf(stderr, " ip l2tp del tunnel tunnel_id ID\n");
498 fprintf(stderr, " ip l2tp show tunnel [ tunnel_id ID ]\n");
524 fprintf(stderr, "Unknown tunnel encapsulation.\n");
608 } else if (strcmp(*argv, "tunnel") == 0)
    [all...]
  /external/chromium_org/net/http/
http_proxy_client_socket_pool.cc 40 bool tunnel)
47 http_auth_cache_(tunnel ? http_auth_cache : NULL),
48 http_auth_handler_factory_(tunnel ? http_auth_handler_factory : NULL),
49 tunnel_(tunnel) {
206 if (params_->tunnel()) {
269 if (using_spdy_ && params_->tunnel()) {
291 params_->tunnel(),
309 DCHECK(params_->tunnel());
http_proxy_client_socket.h 38 // by the time Connect() is called. If tunnel is true then on Connect()
39 // this socket will establish an Http tunnel.
47 bool tunnel,
http_proxy_client_socket_pool.h 54 bool tunnel);
73 bool tunnel() const { return tunnel_; } function in class:net::HttpProxySocketParams
94 // HttpProxyConnectJob optionally establishes a tunnel through the proxy
146 // Begins the tcp connection and the optional Http proxy tunnel. If the
150 // that the tunnel needs authentication credentials, the socket will be
http_proxy_client_socket.cc 35 bool tunnel,
44 auth_(tunnel ?
51 tunnel_(tunnel),
114 // TODO(rch): figure out the right way to set up a tunnel with SPDY.
117 // create an SSL tunnel to the origin server using the CONNECT method
217 // to establish an SSL tunnel through the proxy. We can't read these
218 // bytes when establishing a tunnel because they might be controlled by
http_proxy_client_socket_pool_unittest.cc 146 scoped_refptr<HttpProxySocketParams> CreateParams(bool tunnel) {
150 GURL(tunnel ? "https://www.google.com/" : "http://www.google.com"),
152 HostPortPair("www.google.com", tunnel ? 443 : 80),
156 tunnel));
  /external/iproute2/man/man8/
Makefile 7 tc-sfb.8 tc-netem.8 tc-choke.8 ip-tunnel.8 ip-rule.8 ip-ntable.8 \
  /external/qemu/target-i386/
hax-i386.h 34 struct hax_tunnel *tunnel; member in struct:hax_vcpu_state
  /external/chromium_org/third_party/libjingle/source/talk/session/tunnel/
tunnelsessionclient.cc 42 const char NS_TUNNEL[] = "http://www.google.com/talk/tunnel";
45 const char CN_TUNNEL[] = "tunnel";
161 TunnelSession* tunnel = NULL; local
166 tunnel = *it;
170 ASSERT(tunnel != NULL);
177 return tunnel->GetStream();
195 TunnelSession* tunnel = MakeTunnelSession(session, data->thread, local
197 sessions_.push_back(tunnel);
199 data->stream = tunnel->GetStream();

Completed in 644 milliseconds

1 2