Changeset 22608b


Ignore:
Timestamp:
01/25/09 22:40:04 (9 years ago)
Author:
Erik Ekman <yarrick@…>
Branches:
iodine-0.6
Children:
a412b5
Parents:
d53d06
git-author:
Erik Ekman <yarrick@…> (01/25/09 22:40:04)
git-committer:
Erik Ekman <yarrick@…> (01/25/09 22:40:04)
Message:

give error when no TAP adapters found, and clean better

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rc69ea1 r22608b  
    5959        @(cd src; $(MAKE) clean) 
    6060        @(cd tests; $(MAKE) clean) 
    61         @rm -rf bin 
     61        @rm -rf bin iodine-latest-win32* 
    6262 
  • src/tun.c

    r4db813 r22608b  
    265265        get_device(adapter, sizeof(adapter)); 
    266266 
    267         if (strlen(adapter) == 0) 
    268                 return -1; 
     267        if (strlen(adapter) == 0) { 
     268                warnx("No TAP adapters found. See README-win32.txt for help.\n"); 
     269                return -1; 
     270        } 
    269271         
    270272        snprintf(tapfile, sizeof(tapfile), "%s%s.tap", TAP_DEVICE_SPACE, adapter); 
Note: See TracChangeset for help on using the changeset viewer.