X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Fifconfig_src%2Fmain.c;h=ba788383db2076a3d89ccd5a6f4cf47ce7f31cbd;hb=45f9a29e481ce9ea7ca7121541f0e0f90147f5b1;hp=1cff6d9807c505762b2d41053c17cf08344564bb;hpb=756b72155cbcec50d6117329cf3132168a8713b1;p=tpg%2Facess2.git diff --git a/Usermode/Applications/ifconfig_src/main.c b/Usermode/Applications/ifconfig_src/main.c index 1cff6d98..ba788383 100644 --- a/Usermode/Applications/ifconfig_src/main.c +++ b/Usermode/Applications/ifconfig_src/main.c @@ -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: