Ignore:
Timestamp:
05/18/18 11:39:59 (3 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
991ff43
Parents:
b663d33
git-author:
Shane Alcock <salcock@…> (12/19/17 17:09:29)
git-committer:
Shane Alcock <salcock@…> (05/18/18 11:39:59)
Message:

Update to use new libwandder_etsili API

The new API should be more thread-safe than the original, at the
cost of being a bit more awkward to use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_pktmeta.c

    rb663d33 r00365c6  
    129129
    130130#ifdef HAVE_WANDDER
    131         wandder_decoder_t dec;
     131        wandder_etsispec_t *dec;
    132132        uint8_t *ccptr;
    133133
    134         init_wandder_decoder(&dec, (uint8_t *)link, *remaining, false);
    135         ccptr = wandder_etsili_get_cc_contents(&dec, remaining);
     134        /* XXX Bit annoying to be creating and freeing this every time */
     135        dec = wandder_create_etsili_decoder();
     136        wandder_attach_etsili_buffer(dec, (uint8_t *)link, *remaining, false);
     137        ccptr = wandder_etsili_get_cc_contents(dec, remaining);
    136138        /* Assuming all CCs are IP for now */
    137139        *type = TRACE_TYPE_NONE;
     140        wandder_free_etsili_decoder(dec);
    138141        return ccptr;
    139142
Note: See TracChangeset for help on using the changeset viewer.