Changeset 3fe7937 for examples


Ignore:
Timestamp:
12/09/04 17:53:09 (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:
b49264a
Parents:
68d4cd7
Message:

check for fragmented packet- if so, don't return TCP header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tracedump/tracedump-libtrace.cc

    r5d6ebe1 r3fe7937  
    1818                filter=trace_bpf_setfilter(argv[2]);
    1919
    20         while(trace_read_packet(trace,&packet)!=-1) {
     20        while(trace_read_packet(trace,&packet)> 0 ){
    2121                time_t sec = (time_t)trace_get_seconds(&packet);
    2222                char *link=(char *)trace_get_link(&packet);
Note: See TracChangeset for help on using the changeset viewer.