jablonka.czprosek.czf

discover

Subversion Repositories:
[/] [trunk/] [discover.c] - Diff between revs 3 and 4

Show entire file Ignore whitespace

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);

Powered by WebSVN 2.2.1