Changeset e5c2bc4 for lib/format_erf.c


Ignore:
Timestamp:
06/27/06 12:41:26 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
496864e
Parents:
9461526
Message:

Redo the build system for libtrace3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r362c5f2 re5c2bc4  
    4444#include <stdlib.h>
    4545
    46 #if HAVE_DAG
     46#ifdef HAVE_DAG
    4747#include <sys/mman.h>
    4848#endif
     
    6666static struct libtrace_format_t erf;
    6767static struct libtrace_format_t rtclient;
    68 #if HAVE_DAG
     68#ifdef HAVE_DAG
    6969static struct libtrace_format_t dag;
    7070#endif
     
    7676#define INPUT DATA(libtrace)->input
    7777#define OUTPUT DATAOUT(libtrace)->output
    78 #if HAVE_DAG
     78#ifdef HAVE_DAG
    7979#define DAG DATA(libtrace)->dag
    8080#define DUCK DATA(libtrace)->duck
     
    100100        } seek;
    101101
    102 #if HAVE_DAG
     102#ifdef HAVE_DAG
    103103        struct {
    104104                uint32_t last_duck;     
     
    464464#ifdef HAVE_DAG
    465465static int dag_pause_input(libtrace_t *libtrace) {
    466 #if DAG_VERSION_2_4
     466#ifdef DAG_VERSION_2_4
    467467        dag_stop(INPUT.fd);
    468468#else
     
    510510}
    511511 
    512 #if HAVE_DAG
    513 #if DAG_VERSION_2_4
     512#ifdef HAVE_DAG
     513#ifdef DAG_VERSION_2_4
    514514static int dag_get_duckinfo(libtrace_t *libtrace,
    515515                                libtrace_packet_t *packet) {
     
    667667
    668668static int dag_start_input(libtrace_t *libtrace) {
    669 #if DAG_VERSION_2_4
     669#ifdef DAG_VERSION_2_4
    670670        if(dag_start(INPUT.fd) < 0) {
    671671                trace_set_err(libtrace,errno,"Cannot start DAG %s",
     
    922922       
    923923        if (packet->trace->format == &erf 
    924 #if HAVE_DAG
     924#ifdef HAVE_DAG
    925925                        || packet->trace->format == &dag
    926926#endif
     
    10571057#endif
    10581058
    1059 #if HAVE_DAG
     1059#ifdef HAVE_DAG
    10601060static void dag_help() {
    10611061        printf("dag format module: $Revision$\n");
Note: See TracChangeset for help on using the changeset viewer.