Changeset 53de8c0


Ignore:
Timestamp:
09/06/04 11:43:26 (16 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:
3fb49bc
Parents:
36f563c
Message:

2.0.3 testing release

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rf5899e4 r53de8c0  
    2929##
    3030
     31- Version 2.0.3 (unreleased)
     32        * Fixed packet->size bug for pcap
     33
    3134- Version 2.0.2
    3235        * Port to AMD64. Should also work on IA64
  • config.h

    r9e33dbe r53de8c0  
    1818
    1919/* Define to 1 if you have the <pcap-bpf.h> header file. */
    20 #define HAVE_PCAP_BPF_H 1
     20/* #undef HAVE_PCAP_BPF_H */
    2121
    2222/* Define to 1 if you have the <pcap.h> header file. */
  • examples/sample/sample.c

    rb535184 r53de8c0  
    5959
    6060        char *uri = 0;
     61        char *filterstring = 0;
    6162        int psize = 0;
    62         int status = 0;
    6363        struct libtrace_ip *ipptr = 0;
    6464        struct libtrace_packet_t packet;
     65        struct libtrace_filter_t *filter = 0;
    6566
    6667        if (argc == 2) {
    6768                uri = strdup(argv[1]);
    68         }
     69        } else if (argc == 3) {
     70                uri = strdup(argv[1]);
     71                filterstring = strdup(argv[2]);
     72        }
     73
     74        if (filterstring)
     75                filter = trace_bpf_setfilter(filterstring);
    6976
    7077        // open a trace
     
    7885                        break;
    7986                }
     87
     88                if(filter && !trace_bpf_filter(filter,&packet)) {
     89                        continue;
     90                }
    8091
    8192                printf("TS %f: ",trace_get_seconds(&packet));
  • lib/Makefile.am

    r9e33dbe r53de8c0  
    33include_HEADERS = libtrace.h dagformat.h wag.h
    44libtrace_la_LIBADD = @LIBPCAP@ @LIBZ@
    5 libtrace_la_LDFLAGS=-version-info 2:2:0 @LIBPCAP_PATH@ @LIBZ_PATH@
     5libtrace_la_LDFLAGS=-version-info 2:3:0 @LIBPCAP_PATH@ @LIBZ_PATH@
Note: See TracChangeset for help on using the changeset viewer.