Cleanup Commit
[tpg/acess2.git] / Usermode / Applications / ifconfig_src / main.c
index eb8fa19..ba78838 100644 (file)
@@ -70,6 +70,13 @@ void DumpInterfaces(int DumpAll)
                type = ioctl(fd, 4, NULL);
                
                printf("%s:\t", filename);
+               {
+                       int len = ioctl(fd, ioctl(fd, 3, "get_device"), NULL);
+                       char *buf = malloc(len+1);
+                       ioctl(fd, ioctl(fd, 3, "get_device"), buf);
+                       printf("'%s'\t", buf);
+                       free(buf);
+               }
                switch(type)
                {
                case 0:
@@ -125,7 +132,7 @@ int AddInterface( char *Device )
                return -1;
        }
        
-       printf("-- Added '"IPSTACK_ROOT"/ip%i' using device %s\n", ret, Device);
+       printf("-- Added '"IPSTACK_ROOT"/%i' using device %s\n", ret, Device);
        
        return ret;
 }

UCC git Repository :: git.ucc.asn.au