Changeset 5a70a80 for lib/format_pcap.c
- Timestamp:
- 02/15/18 17:59:50 (3 years ago)
- Branches:
- cachetimestamps, develop, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
- Children:
- 9375d2e
- Parents:
- a857389
- git-author:
- Anthony Coddington <anthony.coddington@…> (02/15/18 13:44:38)
- git-committer:
- Shane Alcock <salcock@…> (02/15/18 17:59:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcap.c
r4578626 r5a70a80 498 498 link = trace_get_packet_buffer(packet,&linktype,&remaining); 499 499 500 /* Silently discard RT metadata packets and packets with an 501 * unknown linktype. */ 502 if (linktype == TRACE_TYPE_NONDATA || linktype == TRACE_TYPE_UNKNOWN || linktype == TRACE_TYPE_ERF_META) { 503 return 0; 504 } 505 500 506 /* We may have to convert this packet into a suitable PCAP packet */ 501 507 … … 581 587 { 582 588 int err; 583 584 if (trace_get_link_type(packet) == TRACE_TYPE_NONDATA) 589 libtrace_linktype_t linktype = trace_get_link_type(packet); 590 591 /* Silently discard RT metadata packets and packets with an 592 * unknown linktype. */ 593 if (linktype == TRACE_TYPE_NONDATA || linktype == TRACE_TYPE_UNKNOWN || linktype == TRACE_TYPE_ERF_META) { 585 594 return 0; 595 } 586 596 587 597 if (!OUTPUT.trace.pcap) {
Note: See TracChangeset
for help on using the changeset viewer.