11 /*void shellHandlers[] = {
22 myMac = get_mac("eth0");
28 printf("Model: %s\n", settings.model);
29 struct vlan * vl = settings.vlans;
37 printf("%u\t", vl->id);
38 for (n = 0; n < 5; n++)
39 printf("%c\t", vl->members & (0x80 >> n) ? (vl->tag & (0x80 >> n) ? 'T' : 'U') : '-', (unsigned int) vl->members);
44 for (n = 0; n < 5; n++) {
45 printf("Port %u\t%s\t\t%lu Bytes in\t\t%lu Bytes out\n", n + 1,
46 (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);
51 //settings.password = "password";
53 //gs105e_mirrorPorts(3, MSK_PORT1|MSK_PORT4);