Changeset c0dba7a for lib/format_rt.c


Ignore:
Timestamp:
04/02/08 16:26:47 (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:
007fb43
Parents:
590fb30
Message:
  • Fixed compile error on systems where bh_tstamp in the bpf header is a bpf_timeval rather than a timeval, e.g. OpenBSD ( Reported by Niclas Rosell )
  • Updated all formats that require it to use the new "Do not own the buffer" prepare_packet flag
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rf0fb38f rc0dba7a  
    496496                libtrace_packet_t *packet, int blocking) {
    497497        uint32_t prep_flags = 0;
    498        
     498
     499        prep_flags |= TRACE_PREP_DO_NOT_OWN_BUFFER;
     500
    499501        if (rt_read(libtrace, &packet->buffer, (size_t)RT_INFO->rt_hdr.length,
    500502                                blocking) != RT_INFO->rt_hdr.length) {
Note: See TracChangeset for help on using the changeset viewer.