Home | History | Annotate | Download | only in src

Lines Matching defs:tun

90 #include "tun.h"
311 * If it's an LCP and we're in multilink mode, adjust our tun
552 struct tun_data tun;
558 data = (u_char *)&tun;
559 sz = sizeof tun;
561 data = tun.data;
562 sz = sizeof tun.data;
565 /* something to read from tun */
574 n -= sz - sizeof tun.data;
580 af = ntohl(tun.header.family);
591 if (af == AF_INET && ((struct ip *)tun.data)->ip_dst.s_addr ==
595 pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.in,
598 n += sz - sizeof tun.data;
617 pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.dial,
626 * threshold at which we stop select()ing to read() the tun
633 pri = PacketCheck(bundle, af, tun.data, n, &bundle->filter.out,
637 tun.header.timeout = secs;
638 ncp_Enqueue(&bundle->ncp, af, pri, (char *)&tun, n + sizeof tun.header);
807 * everything's AF_INET (hopefully the tun device won't pass us