19c19 < "[-f tun-clone-device]\n", name); --- > "[-f tun-clone-device] [-y if-type]\n", name); 23a24 > fprintf(stderr, "-y interface type \"tun\" or \"tap\"\n"); 31a33 > int if_type; 36c38 < while((opt = getopt(argc, argv, "bd:f:t:u:")) > 0){ --- > while((opt = getopt(argc, argv, "bd:f:t:u:y:")) > 0){ 63a66,71 > case 'y': > if(strcmp(optarg, "tun") == 0) > if_type = IFF_TUN; > else > if_type = IFF_TAP; > break; 84c92 < ifr.ifr_flags = IFF_TAP | IFF_NO_PI; --- > ifr.ifr_flags = if_type | IFF_NO_PI;