Changeset 3840760 for examples


Ignore:
Timestamp:
11/28/05 10:15:22 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
08594b8
Parents:
14d8a63
Message:

updated the examples/ and tools/ directories to correctly use trace_packet_create() now.

fixed a typo in format_wag (shouldn't use pcap_get_framing_length for wag!)

Location:
examples
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • examples/capture/capture.c

    r05e83dc r3840760  
    9898        struct sigaction sigact;
    9999        dag_record_t *erfptr = 0;
    100         struct libtrace_packet_t packet;
     100        struct libtrace_packet_t *packet = trace_packet_create();
    101101
    102102        struct itimerval itv;
  • examples/count/tracestats.c

    r4dd7363 r3840760  
    6868void run_trace(char *uri)
    6969{
    70         struct libtrace_packet_t packet;
     70        struct libtrace_packet_t *packet = trace_packet_create();
    7171        int i;
    7272        uint64_t count = 0;
  • examples/erfsplit/erfsplit.c

    r7e9d51c r3840760  
    7575        time_t ts = 0;
    7676        uint64_t number = 0;
    77         struct libtrace_packet_t packet;
     77        struct libtrace_packet_t *packet = trace_packet_create();
    7878        parse_cmdline(argc,argv);
    7979
  • examples/event/rate-tracetime.c

    r264f4469 r3840760  
    100100        int psize = 0;
    101101        struct libtrace_ip *ipptr = 0;
    102         struct libtrace_packet_t packet;
     102        struct libtrace_packet_t *packet = trace_packet_create();
    103103        uint32_t last_second = 0;
    104104        double ts = 0.0;
  • examples/event/rate.c

    re81d1af r3840760  
    105105        struct sigaction sigact;
    106106        struct libtrace_ip *ipptr = 0;
    107         struct libtrace_packet_t packet;
     107        struct libtrace_packet_t *packet = trace_packet_create();
    108108
    109109        struct itimerval itv;
  • examples/munge/munge.c

    r1974620 r3840760  
    177177        struct libtrace_filter_t *filter = NULL;
    178178        struct libtrace_t *trace = 0;
    179         struct libtrace_packet_t packet;
     179        struct libtrace_packet_t *packet = trace_packet_create();
    180180        struct libtrace_out_t *writer = 0;
    181181        bool enc_source = false;
  • examples/pcap2erf/pcap2erf.c

    rb535184 r3840760  
    7272   
    7373    struct pcap_pkthdr *header;
    74     struct libtrace_packet_t packet;
     74    struct libtrace_packet_t *packet = trace_packet_create();
    7575    unsigned long seconds, subseconds;
    7676    unsigned short rlen, lctr, wlen, offset, pad;
  • examples/protocol/protocol.c

    r5ed52b8 r3840760  
    9898
    9999        struct libtrace_ip *ipptr = 0;
    100         struct libtrace_packet_t packet;
     100        struct libtrace_packet_t *packet = trace_packet_create();
    101101       
    102102        int psize;
  • examples/rate/rate-dir.c

    r2cc187b r3840760  
    117117        int direction = 0;
    118118        struct libtrace_ip *ipptr = 0;
    119         struct libtrace_packet_t packet;
     119        struct libtrace_packet_t *packet = trace_packet_create();
    120120       
    121121        uint32_t last_second = 0;
  • examples/rate/rate.c

    r0675ea1 r3840760  
    9595        int psize = 0;
    9696        struct libtrace_ip *ipptr = 0;
    97         struct libtrace_packet_t packet;
     97        struct libtrace_packet_t *packet = trace_packet_create();
    9898
    9999        uint32_t last_second = 0;
  • examples/rxtest/rxtest.c

    r85c7de8 r3840760  
    5353int main(int argc, char **argv) {
    5454
    55         struct libtrace_packet_t packet;
     55        struct libtrace_packet_t *packet = trace_packet_create();
    5656        dag_record_t *erfptr;
    5757       
  • examples/sample/sample.c

    rde67322 r3840760  
    6464        int psize = 0;
    6565        struct libtrace_ip *ipptr = 0;
    66         struct libtrace_packet_t packet;
     66        struct libtrace_packet_t *packet = trace_packet_create();
    6767        struct libtrace_filter_t *filter = 0;
    6868
  • examples/tracedump/tracedump.c

    rf20b30e r3840760  
    3535int main(int argc, char *argv[]) {
    3636
    37         struct libtrace_packet_t packet;
     37        struct libtrace_packet_t *packet = trace_packet_create();
    3838        struct libtrace_t *trace;
    3939
  • examples/tracemark/tracemark.c

    redca0b8 r3840760  
    5858void run_trace(char *uri)
    5959{
    60         struct libtrace_packet_t packet;
     60        struct libtrace_packet_t *packet = trace_packet_create();
    6161        uint64_t count = 0;
    6262        uint64_t bytes = 0;
Note: See TracChangeset for help on using the changeset viewer.