Lines Matching refs:to_tun
838 /*ASSERT (!c->c2.to_tun.len);*/
902 * Output: c->c2.to_tun
1071 buffer_turnover (orig_buf, &c->c2.to_tun, &c->c2.buf, &c->c2.buffers->read_link_buf);
1073 /* to_tun defined + unopened tuntap can cause deadlock */
1075 c->c2.to_tun.len = 0;
1079 buf_reset (&c->c2.to_tun);
1378 * Input: c->c2.to_tun
1390 if (c->c2.to_tun.len <= 0)
1399 process_ip_header (c, PIP_MSSFIX|PIPV4_EXTRACT_DHCP_ROUTER|PIPV4_CLIENT_NAT|PIPV4_OUTGOING, &c->c2.to_tun);
1401 if (c->c2.to_tun.len <= MAX_RW_SIZE_TUN (&c->c2.frame))
1412 dmsg (D_TUN_RW, "TUN WRITE [%d]", BLEN (&c->c2.to_tun));
1415 ipv4_packet_size_verify (BPTR (&c->c2.to_tun),
1416 BLEN (&c->c2.to_tun),
1423 size = write_tun_buffered (c->c1.tuntap, &c->c2.to_tun);
1425 size = write_tun (c->c1.tuntap, BPTR (&c->c2.to_tun), BLEN (&c->c2.to_tun));
1436 if (size != BLEN (&c->c2.to_tun))
1440 BLEN (&c->c2.to_tun),
1454 c->c2.to_tun.len,
1458 buf_reset (&c->c2.to_tun);