Ignore:
Timestamp:
07/02/13 14:19:40 (8 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:
da46c9d
Parents:
fdb5e98
Message:
  • Changed all BYTE_ORDER checks to be consistent and use the same macros
  • Ensure that BYTE_ORDER is defined for *all* systems -- stupid BSDs
  • Be careful about writing values from timevals into our pcap header -- 64 bit timevals could cause some issues here
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    rc909fad r11041eb  
    456456        }
    457457
    458         hdr.ts_sec = tv.tv_sec;
    459         hdr.ts_usec = tv.tv_usec;
     458
     459        hdr.ts_sec = (uint32_t)tv.tv_sec;
     460        hdr.ts_usec = (uint32_t)tv.tv_usec;
    460461        hdr.caplen = trace_get_capture_length(packet);
    461462        assert(hdr.caplen < LIBTRACE_PACKET_BUFSIZE);
Note: See TracChangeset for help on using the changeset viewer.