discover |
Subversion Repositories: |
Rev 3 | Rev 4 | |
---|---|---|
Line 253... | Line 253... | |
break; |
break; | |
|
| |
case 10: |
case 10: | |
t = ntohl(*(uint32_t *)p); |
t = ntohl(*(uint32_t *)p); | |
printf("Uptime: %dd, %d:%02d:%02d\n", t / 60 / 60 / 24, t / 60 / 60 % 24, t / 60 % 60, t % 60); |
printf("Uptime: %dd, %d:%02d:%02d\n", t / 60 / 60 / 24, t / 60 / 60 % 24, t / 60 % 60, t % 60); | |
break; | ||
| ||
case 16: | ||
printf("System ID: 0x%02hhX%02hhX\n", p[0], p[1]); | ||
break; |
break; | |
|
| |
default: |
default: | |
|
| |
printf("Entry %3d: ", urh->type); |
printf("Entry %3d: ", urh->type); |