/[darkstattype]/trunk/darkstattype.c
ViewVC logotype

Diff of /trunk/darkstattype.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 4 by trond, 2014-03-19T08:51:24Z Revision 5 by trond, 2014-03-19T09:13:57Z
# Line 574  void decode_protos_data(void) Line 574  void decode_protos_data(void)
574    
575    indent();    indent();
576    
577    for (u = 0; u < ipprotocount; u++) {    for (u = 0; u < ipprotocount; u++) {
578      unsigned char proto;      unsigned char proto;
579      unsigned long in;      unsigned long in;
580      unsigned long out;      unsigned long out;
581    
582      print_indentation();      print_indentation();
583      printf("Protocol #%u of %u:\n", u + 1, ipprotocount);      printf("Protocol #%u of %u:\n", u + 1, ipprotocount);
584    
585      proto = read8u();      proto = read8u();
586    
587      indent();      indent();
588      print_indentation();      print_indentation();
589      printf("Protocol 0x%x\n", proto);      printf("Protocol 0x%02x\n", proto);
590    
591      in = read64u();      in = read64u();
592    
593      print_indentation();      print_indentation();
594      printf("In %lu\n", in);      printf("In %lu\n", in);
595    
596      out = read64u();      out = read64u();
597    
598      print_indentation();      print_indentation();
599      printf("Out %lu\n", out);      printf("Out %lu\n", out);
600    
601      exdent();      exdent();
602    } // for    } // for
603    
604    exdent();    exdent();


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

svn@ximalas.info
ViewVC Help
Powered by ViewVC 1.3.0-dev