- Timestamp:
- 08/21/06 21:14:05 (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_erf.c
rc0cd256 r60e37e0 943 943 /* convert format - build up a new erf header */ 944 944 /* 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 946 952 /* Keep trying to simplify the packet until we can find 947 953 * something we can do with it */ … … 957 963 } 958 964 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 964 965 /* Packet length (rlen includes format overhead) */ 965 966 assert(trace_get_capture_length(packet)>0 … … 1008 1009 dag_record_t *erfptr = 0; 1009 1010 erfptr = (dag_record_t *)packet->header; 1010 return erfptr->ts;1011 return bswap_le_to_host64(erfptr->ts); 1011 1012 } 1012 1013
Note: See TracChangeset
for help on using the changeset viewer.