Changeset 52f8fc2 for lib/format_pcap.c


Ignore:
Timestamp:
02/23/06 13:14:32 (16 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:
8ea5b38
Parents:
aa62105
Message:

Cleanup some uses of packet->trace where the trace is already available!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rf0d19d4 r52f8fc2  
    299299                fflush((FILE *)OUTPUT.trace.dump);
    300300        }
    301         if (packet->trace->format == &pcap ||
    302                         packet->trace->format == &pcapint) {
     301        if (libtrace->format == &pcap ||
     302                        libtrace->format == &pcapint) {
    303303               
    304304                pcap_dump((u_char*)OUTPUT.trace.dump,(struct pcap_pkthdr *)packet->header,packet->payload);
     
    428428}
    429429
    430 static int pcap_get_fd(const struct libtrace_packet_t *packet) {
    431         return pcap_fileno(packet->trace->format_data->input.pcap);
     430static int pcap_get_fd(const libtrace_t *trace) {
     431        return pcap_fileno(trace->format_data->input.pcap);
    432432}
    433433
Note: See TracChangeset for help on using the changeset viewer.