Changeset a6d38b6 for examples/capture


Ignore:
Timestamp:
11/02/04 16:23:59 (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:
4389bd1
Parents:
aa27e1e
Message:

updated capture example

fixed bug in DAG read path of libtrace where it wasn't reading from the memory hole correctly

Location:
examples/capture
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/capture/Makefile

    raa27e1e ra6d38b6  
    44
    55INCLUDE = -I$(PREFIX)/include
    6 CFLAGS = -Wall -Wimplicit -Wformat -pipe -g -O2 -D_FILE_OFFSET_BITES=64
     6CFLAGS = -Wall -Wimplicit -Wformat -pipe -g -O2 -D_FILE_OFFSET_BITES=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
    77CFLAGS += $(INCLUDE)
    88libdir = -L$(PREFIX)/lib
  • examples/capture/capture.c

    raa27e1e ra6d38b6  
    110110                perror("setitimer");
    111111
     112        if (argc == 1) {
     113                printf("usage: capture <uri> [<output filename>]\n");
     114                exit(0);
     115        }
    112116        if (argc == 2) {
    113117                uri = strdup(argv[1]);
Note: See TracChangeset for help on using the changeset viewer.