Changeset 97e39a7 for lib/format_pcap.c


Ignore:
Timestamp:
04/14/06 14:13:07 (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:
566e404
Parents:
6b0560b
Message:

Port new linux native capture type from libtrace 2.
Fail if we try and decode a pcap link type and we don't have pcap installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    r33e1501 r97e39a7  
    326326         */
    327327        linktype = rt_to_pcap_dlt(packet->type);
    328         /*
    329         if (packet->trace->format_data == NULL)
    330                 linktype = rt_to_pcap_dlt(packet->type);
    331         else
    332                 linktype = pcap_datalink(DATA(packet->trace)->input.pcap);
    333         */
    334328        return pcap_dlt_to_libtrace(linktype);
    335329}
Note: See TracChangeset for help on using the changeset viewer.