Changeset 60e37e0


Ignore:
Timestamp:
08/21/06 21:14:05 (14 years ago)
Author:
Perry Lorier <perry@…>
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:
3a169d7
Parents:
c28b5c7
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rc0cd256 r60e37e0  
    943943                /* convert format - build up a new erf header */
    944944                /* Timestamp */
    945                 erfhdr.ts = trace_get_erf_timestamp(packet);
     945                erfhdr.ts = bswap_host_to_le64(trace_get_erf_timestamp(packet));
     946
     947                /* Flags. Can't do this */
     948                memset(&erfhdr.flags,1,sizeof(erfhdr.flags));
     949                if (trace_get_direction(packet)!=-1)
     950                        erfhdr.flags.iface = trace_get_direction(packet);
     951
    946952                /* Keep trying to simplify the packet until we can find
    947953                 * something we can do with it */
     
    957963                }
    958964                erfhdr.type = type;
    959                 /* Flags. Can't do this */
    960                 memset(&erfhdr.flags,1,sizeof(erfhdr.flags));
    961                 if (trace_get_direction(packet)!=-1)
    962                         erfhdr.flags.iface = trace_get_direction(packet);
    963 
    964965                /* Packet length (rlen includes format overhead) */
    965966                assert(trace_get_capture_length(packet)>0
     
    10081009        dag_record_t *erfptr = 0;
    10091010        erfptr = (dag_record_t *)packet->header;
    1010         return erfptr->ts;
     1011        return bswap_le_to_host64(erfptr->ts);
    10111012}
    10121013
Note: See TracChangeset for help on using the changeset viewer.