Changeset 1974620 for lib/trace.c


Ignore:
Timestamp:
08/25/05 20:01:13 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
b5cd711
Parents:
3073c04
Message:

added format conversion into pcap and erf formats, and have tested the writers for these formats.

Added a 'type' field to the format_t structure, which specifies the type of trace we're dealing with - erf, pcap, wag.

updated munge to use the new functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    re01bfa8 r1974620  
    794794                // seconds -> timestamp
    795795                seconds = packet->trace->format->get_seconds(packet);
    796                 timestamp = (((uint32_t)seconds) << 32) + \
     796                timestamp = ((uint64_t)((uint32_t)seconds) << 32) + \
    797797                            (( seconds - (uint32_t)seconds   ) * UINT_MAX);
    798798        }
Note: See TracChangeset for help on using the changeset viewer.