Ignore:
Timestamp:
01/21/19 11:43:12 (21 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
ddad48c
Parents:
c8171e5
Message:

Add datatype enum to libtrace_meta_item_t structure, Convert interface speeds from network to host byte ordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapng.c

    r66ffac4 rb27ed21  
    22322232                result->items[result->num-1].option = optcode;
    22332233                result->items[result->num-1].len = len;
    2234                 result->items[result->num-1].data_type = 0;
     2234                result->items[result->num-1].datatype = TRACE_META_UNKNOWN;
    22352235                result->items[result->num-1].data = calloc(1, len);
    22362236                memcpy(result->items[result->num-1].data,
     
    23442344                result->items[result->num-1].option = option;
    23452345                result->items[result->num-1].len = len;
    2346                 result->items[result->num-1].data_type = 0;
     2346                result->items[result->num-1].datatype = TRACE_META_UNKNOWN;
    23472347                result->items[result->num-1].data = calloc(1, len);
    23482348
    2349                 memcpy(result->items->data, ptr+sizeof(struct pcapng_optheader), len);
     2349                memcpy(result->items[result->num-1].data,
     2350                        ptr+sizeof(struct pcapng_optheader), len);
    23502351
    23512352                return (void *)result;
Note: See TracChangeset for help on using the changeset viewer.