Changeset d74ca03 for tools


Ignore:
Timestamp:
11/28/18 11:12:43 (22 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
2193905
Parents:
1ed3f1e
Message:

Add check in tracereplay for unknown linktype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereplay/tracereplay.c

    r1e0a804 rd74ca03  
    102102
    103103        pkt_buffer = trace_get_packet_buffer(packet,&linktype,&remaining);
     104        /* Check if the linktype was found, if not skip this packet */
     105        if (linktype == TRACE_TYPE_UNKNOWN || linktype == TRACE_TYPE_CONTENT_INVALID) {
     106                fprintf(stderr, "Encountered packet with unknown linktype, Skipping it\n");
     107                return NULL;
     108        }
     109
    104110        remaining = 0;
    105111        new_packet = trace_create_packet();
Note: See TracChangeset for help on using the changeset viewer.