Lines Matching refs:tap
720 tun_alloc(char *dev, int tap, int make) in tun_alloc() argument
739 ifr.ifr_flags = (tap ? IFF_TAP : IFF_TUN) | IFF_NO_PI; in tun_alloc()
752 tun_alloc(char *dev, int tap, int make) in tun_alloc() argument
824 ifconf(const char *tundev, const char *ipaddr, int tap) in ifconf() argument
834 if (!tap) { in ifconf()
853 if (!tap) { in ifconf()
930 int tap = 0; in main() local
993 tap = 1; in main()
1079 if(tap) { in main()
1088 tunfd = tun_alloc(tundev, tap, make); in main()
1092 tap ? "tap" : "tun", tundev); in main()
1099 ifconf(tundev, ipaddr, tap); in main()