Changeset 3e66b30


Ignore:
Timestamp:
06/06/06 13:56:16 (15 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:
8a1fb3c
Parents:
0e91d5e
Message:

Preserve direction tagging when converting formats (part 1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rebe0c7f r3e66b30  
    910910        pad = erf_get_padding(packet);
    911911
    912         /* If we've had an rxerror, we have no payload to write - fix rlen to
    913          * be the correct length */
     912        /* If we've had an rxerror, we have no payload to write - fix
     913         * rlen to be the correct length
     914         */
     915        /* I Think this is bogus -- Perry */
    914916        if (payload == NULL) {
    915917                dag_hdr->rlen = htons(dag_record_size + pad);
     
    942944                /* Flags. Can't do this */
    943945                memset(&erfhdr.flags,1,sizeof(erfhdr.flags));
     946                if (trace_get_direction(packet)!=-1)
     947                        erfhdr.flags.iface = trace_get_direction(packet);
    944948                /* Packet length (rlen includes format overhead) */
    945949                erfhdr.rlen = htons(trace_get_capture_length(packet)
Note: See TracChangeset for help on using the changeset viewer.