# | Line 48 | Line 48 | int main(int argc, char **argv){ | |
---|---|---|
48 | ||
49 | printf("Name\tSpeed\tDuplex\n"); | |
50 | for(i = 0; i < iface_count; i++) { | |
51 | – | printf("%d\n", network_iface_stats->dup); |
51 | printf("%s\t%d\t", network_iface_stats->interface_name, network_iface_stats->speed); | |
52 | switch (network_iface_stats->dup) { | |
53 | case FULL_DUPLEX: | |
# | Line 61 | Line 60 | int main(int argc, char **argv){ | |
60 | printf("unknown\n"); | |
61 | break; | |
62 | } | |
63 | + | network_iface_stats++; |
64 | } | |
65 | ||
66 | exit(0); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |