X-Git-Url: https://git.sur5r.net/?p=gsconf;a=blobdiff_plain;f=main.c;fp=main.c;h=3150ae7f008bcdab9120349359ae00180783af4a;hp=2e39ff0bb351218da205a1f89d40c81c213196a8;hb=bdf95351d3563e4039ee2cc229452d78b3b6a612;hpb=fe06c7690b8f78c8939cc69669c9d04cc52b3293 diff --git a/main.c b/main.c index 2e39ff0..3150ae7 100644 --- a/main.c +++ b/main.c @@ -8,10 +8,7 @@ #include int shellHandler = 0; -/*void shellHandlers[] = { - -}*/ int main () { @@ -24,35 +21,6 @@ int main () { gs105e_init(); shell(); - /* - printf("Model: %s\n", settings.model); - struct vlan * vl = settings.vlans; - - if (vl == NULL) { - printf("NO Vlans\n"); - } else - printf("Vlans\n"); - - while (vl != NULL) { - printf("%u\t", vl->id); - for (n = 0; n < 5; n++) - printf("%c\t", vl->members & (0x80 >> n) ? (vl->tag & (0x80 >> n) ? 'T' : 'U') : '-', (unsigned int) vl->members); - printf("\n"); - vl = vl->next; - } - - for (n = 0; n < 5; n++) { - printf("Port %u\t%s\t\t%lu Bytes in\t\t%lu Bytes out\n", n + 1, - (settings.portStatistics[n].state == 0x05 ? "1000 Mbit/s" : (settings.portStatistics[n].state == 0x04 ? "100 Mbit/s" : (settings.portStatistics[n].state == 0x03 ? "10 Mbit/s": (settings.portStatistics[n].state == 0x00 ? "no connection": "???")))), settings.portStatistics[n].bytesIn, settings.portStatistics[n].bytesOut); - } - - - - //settings.password = "password"; - - //gs105e_mirrorPorts(3, MSK_PORT1|MSK_PORT4); - - */ }