Changeset 14b90f8


Ignore:
Timestamp:
05/18/18 11:39:59 (2 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
0e2bdde
Parents:
1060b6d
git-author:
Shane Alcock <salcock@…> (05/18/18 11:32:06)
git-committer:
Shane Alcock <salcock@…> (05/18/18 11:39:59)
Message:

Fix bug in libpacketdump where we were using a bad 'level'

This would cause the iPPackets field to be massively indented,
way more than it should be.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_22.c

    r81881e6 r14b90f8  
     1#include <assert.h>
    12#include "libtrace.h"
    23#include "libpacketdump.h"
     
    1516        wandder_etsispec_t *dec;
    1617        wandder_decoder_t *basedec = NULL;
     18        int lastlevel = 0;
    1719
    1820        dec = wandder_create_etsili_decoder();
     
    2426                for (i = 0; i < wandder_get_level(basedec); i++) {
    2527                        printf("  ");
     28                        lastlevel = i + 1;
    2629                }
    2730                printf("%s\n", linespace);
     
    3235        if (cchdr) {
    3336                printf(" ETSILI: ");
    34                 for (i = 0; i < wandder_get_level(basedec); i++) {
     37                for (i = 0; i < lastlevel + 1; i++) {
    3538                        printf("  ");
    3639                }
Note: See TracChangeset for help on using the changeset viewer.