Changeset 631c337


Ignore:
Timestamp:
11/12/07 15:23:29 (13 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:
95b1d6d
Parents:
3996329
Message:
  • RT packets that do not have any sort of payload, e.g. RT_KEYCHANGE, will no longer cause rt_read_packet to return 0, which libtrace programs will treat as an EOF
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    r6399a90 r631c337  
    579579        /* Return the number of bytes read from the stream */
    580580        RT_INFO->rt_hdr.type = TRACE_RT_LAST;
    581         return RT_INFO->rt_hdr.length;
     581        return RT_INFO->rt_hdr.length + sizeof(rt_header_t);
    582582}
    583583
Note: See TracChangeset for help on using the changeset viewer.