unsigned int slLen;
- if (len > 0)
- hexDump(data, len);
+// if (len > 0)
+// hexDump(data, len);
if (len == -1) {
- printf("Received No or Invalid Packet\n");
+// printf("Received No or Invalid Packet\n");
return -1;
}
if (memcmp(&data[8], myMac, 6) | data[0] != 0x01 | (!(data[1] == 0x02 | data[1] == 0x04))) {
shell_sys(argv, elem);
}
+ if (strncmp(argv[0], "help", 4) == 0) {
+ printf("Available commands: \n");
+ printf("[discover|select|nodev|ip|vlan|port|sys] \n");
+ }
int n, i, m, o;
if (elem == 1) {
-
+ printf(" port [show|diag|mirror] \n");
return;
}
if (strncmp(argv[1], "show", 4) == 0) {
int n, i, m, o;
if (elem == 1) {
- printf("\n");
+ printf(" port [show|name|password|restart] \n");
return;
}
int n, m, o;
if (elem == 1) {
-
+ printf(" port [show|enable|show|add|del|assign|revoke] \n");
return;
}