Changeset 2fbcb26 for lib/format_rt.c


Ignore:
Timestamp:
03/22/07 15:29:17 (14 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
344da9f
Parents:
b778083
Message:

tracedump now ignores packets that are not actual data packets, particularly RT meta-data packets.
Corrected the calculation of get_capture_length for RT meta-data packets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rb778083 r2fbcb26  
    633633                        /* This is a little trickier to work out */
    634634                        rt_md_hdr = (rt_metadata_t *)packet->buffer;
    635                         return rt_md_hdr->label_len + rt_md_hdr->value_len;
     635                        return rt_md_hdr->label_len + rt_md_hdr->value_len +
     636                                sizeof(rt_metadata_t);
    636637                default:
    637638                        printf("Unknown type: %d\n", packet->type);
Note: See TracChangeset for help on using the changeset viewer.