Changeset 19c6cbe for lib/format_erf.c


Ignore:
Timestamp:
10/31/06 17:09:16 (15 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:
2f3a25e
Parents:
7d952cb
Message:

Fixed bug where tracesplit and associated tools were not flushing remaining data at the end of their execution.
Resolved warning about unsigned/signed comparison in format_erf.
Added/removed a few newlines over the course of my debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rd304a7f r19c6cbe  
    698698
    699699        size=ntohs(erfptr->rlen)-(dag_record_size+pad);
    700 
    701700        numbytes=libtrace_io_write(OUTPUT.file, buffer, size);
    702701        if (numbytes != size) {
     
    705704                return -1;
    706705        }
    707 
    708706        return numbytes + pad + dag_record_size;
    709707}
     
    771769        if (payload == NULL) {
    772770                dag_hdr->rlen = htons(dag_record_size + pad);
     771               
    773772        }
    774773       
     
    791790                /* Flags. Can't do this */
    792791                memset(&erfhdr.flags,1,sizeof(erfhdr.flags));
    793                 if (trace_get_direction(packet)!=-1)
     792                if (trace_get_direction(packet)!=~0U)
    794793                        erfhdr.flags.iface = trace_get_direction(packet);
    795794
Note: See TracChangeset for help on using the changeset viewer.