Changeset c1f2553


Ignore:
Timestamp:
02/24/06 10:59:11 (16 years ago)
Author:
Shane Alcock <salcock@…>
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:
913721f
Parents:
9836f12
Message:

Fixed bug where trace_event_dag passed a packet rather than a trace to get_fd
Initialised wtf output options to sensible values

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rd3b2234 rc1f2553  
    672672        erfptr = (dag_record_t *)packet->header;
    673673        erfptr->rlen = htons(size + erf_get_framing_length(packet));
     674        printf("Set length: %i\n", trace_get_capture_length(packet));
    674675        return trace_get_capture_length(packet);
    675676}
     
    690691
    691692        if (trace->format->get_fd) {
    692                 dag_fd = trace->format->get_fd(packet);
     693                dag_fd = trace->format->get_fd(trace);
    693694        } else {
    694695                dag_fd = 0;
  • lib/format_wag.c

    rd3b2234 rc1f2553  
    163163                calloc(1,sizeof(struct libtrace_format_data_out_t));
    164164
     165        OUTPUT.file = 0;
     166        OPTIONS.zlib.level = 0;
     167        OPTIONS.zlib.filemode = O_CREAT | O_LARGEFILE | O_WRONLY;
     168       
    165169        return 0;
    166170}
  • lib/libtrace_int.h

    r52f8fc2 rc1f2553  
    4040#include "libtrace.h"
    4141#include "fifo.h"
    42 
     42       
    4343#if HAVE_PCAP_BPF_H
    4444#  include <pcap-bpf.h>
Note: See TracChangeset for help on using the changeset viewer.