Changeset c9f6ee5


Ignore:
Timestamp:
10/25/06 15:50:55 (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:
1352066
Parents:
d5e1796
Message:

Add trace conversion support for pcapfile:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    r302714f rc9f6ee5  
    263263        int numbytes;
    264264        int ret;
     265
     266        /* If this packet cannot be converted to a pcap linktype then
     267         * pop off the top header until it can be converted
     268         */
     269        while (libtrace_to_pcap_dlt(trace_get_link_type(packet))==~0) {
     270                if (!demote_packet(packet)) {
     271                        trace_set_err_out(out,
     272                                TRACE_ERR_NO_CONVERSION,
     273                                "pcap does not support this format");
     274                        return -1;
     275                }
     276        }
     277
    265278
    266279        /* Now we know the link type write out a header if we've not done
Note: See TracChangeset for help on using the changeset viewer.