Ignore:
Timestamp:
10/19/07 15:57:28 (14 years ago)
Author:
Scott Raynel <smr26@…>
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:
e8d0993
Parents:
7daeab9
Message:

When writing using pcapfile, silently discard RT metadata packets and
packets with an unknown linktype rather than setting trace_err. This
allows conversion from rt: to pcapfile:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    rd4a6783 rd469c8a  
    286286
    287287        ptr = trace_get_packet_buffer(packet,&linktype,&remaining);
     288       
     289        /* Silently discard RT metadata packets and packets with an
     290         * unknown linktype. */
     291        if (linktype == TRACE_TYPE_METADATA || linktype == -1) {
     292                return 0;
     293        }
    288294
    289295        /* If this packet cannot be converted to a pcap linktype then
Note: See TracChangeset for help on using the changeset viewer.