+ default: return;
+ }
+ }
+#elif defined(HAVE_MINGW) || defined(HAVE_CYGWIN)
+ if(*gateway_str) {
+ switch(subnet.type) {
+ case SUBNET_IPV4: fprintf(out, "netsh inetface ipv4 add route %s \"%%INTERFACE%%\" %s\n", subnet_str, gateway_str); break;
+ case SUBNET_IPV6: fprintf(out, "netsh inetface ipv6 add route %s \"%%INTERFACE%%\" %s\n", subnet_str, gateway_str); break;
+ default: return;
+ }
+ } else {
+ switch(subnet.type) {
+ case SUBNET_IPV4: fprintf(out, "netsh inetface ipv4 add route %s \"%%INTERFACE%%\"\n", subnet_str); break;
+ case SUBNET_IPV6: fprintf(out, "netsh inetface ipv6 add route %s \"%%INTERFACE%%\"\n", subnet_str); break;
+ default: return;