Changeset d56089a for examples


Ignore:
Timestamp:
12/15/05 14:16:33 (15 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:
9c87732
Parents:
b8bb4c5
Message:

Updated examples and tools to use new function names

Location:
examples
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • examples/capture/capture.c

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

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

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

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

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

    r3840760 rd56089a  
    177177        struct libtrace_filter_t *filter = NULL;
    178178        struct libtrace_t *trace = 0;
    179         struct libtrace_packet_t *packet = trace_packet_create();
     179        struct libtrace_packet_t *packet = trace_create_packet();
    180180        struct libtrace_out_t *writer = 0;
    181181        bool enc_source = false;
     
    260260                // no output specified, output in same format to stdout
    261261                asprintf(&output,"%s:-","erf");
    262                 writer = trace_output_create(output);
     262                writer = trace_create_output(output);
    263263        } else {
    264                 writer = trace_output_create(argv[optind +1]);
     264                writer = trace_create_output(argv[optind +1]);
    265265        }
    266266        if (!writer) {
    267                 trace_perror("trace_output_create");
     267                trace_perror("trace_create_output");
    268268                return 1;
    269269        }
  • examples/pcap2erf/pcap2erf.c

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

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

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

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

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

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

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

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