Changeset 05e83dc for examples


Ignore:
Timestamp:
03/24/05 16:56:06 (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:
1b67314
Parents:
23c13e8
Message:

some assorted fixes in the examples tree, to support building under freebsd. Isn't quite there yet.

Changed trace_read_packet to use pcap_next_ex, and to set a timeout of 1ms on pcap_open. This fixes the blocking under freebsd, it seems

Location:
examples
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • examples/capture/capture.c

    r4389bd1 r05e83dc  
    3232#include <stdlib.h>
    3333#include <assert.h>
     34#include <unistd.h>
    3435#include <string.h>
     36#include <inttypes.h>
     37#include <sys/types.h>
    3538#include <netinet/in.h>
    3639#include <netinet/ip.h>
    3740#include <signal.h>
    3841#include <setjmp.h>
    39 #include <unistd.h>
    4042#include <sys/time.h>
    41 #include <stdint.h>
    4243#include "zlib.h"
    4344#include "libtrace.h"
  • examples/erfsplit/Makefile

    rc773929 r05e83dc  
    22CFLAGS= -Wall -Wimplicit -Wformat -O2 -pipe -g
    33
    4 INCLUDE = -I/usr/local/wand/include -I/usr/local/dag/include
     4INCLUDE = -I/usr/local/include -I/usr/local/dag/include
    55CFLAGS += $(INCLUDE)
    6 LDLIBS =  -L/usr/local/wand/lib -ltrace
     6LDLIBS =  -L/usr/local/lib -ltrace
    77
    88BINS    = erfsplit
  • examples/munge/Makefile

    r5959435 r05e83dc  
    1 CFLAGS=-W -Wall -g -I/tmp/include
     1CFLAGS=-W -Wall -g -I/usr/local/include
    22LDLIBS=-ltrace lib/libtrace_enc.a
    33LDFLAGS=-L/tmp/lib
  • examples/munge/lib/Makefile

    r0013085 r05e83dc  
    33
    44CFLAGS = -Wall -Wimplicit -Wformat -pipe -O2 -fPIC -g
    5 CFLAGS += -I ../../../ -I/tmp/include
     5CFLAGS += -I ../../../ -I/usr/local/include
    66LDFLAGS = -L/tmp/lib -L/usr/local/lib -L.
    77
  • examples/sample/Makefile

    r10b165c r05e83dc  
    99LDLIBS = $(libdir) -ltrace
    1010
    11 BINS = sample
     11BINS = sample printip
    1212.PHONY: all clean distclean install depend
    1313
     
    1515
    1616clean:
    17         $(RM) *~ *.o $(BINS) $(OBJS) core
     17        $(RM) $(BINS) $(OBJS)
    1818
    1919distclean:
    20         $(RM) *~ *.o $(BINS) $(OBJS) core
     20        $(RM) $(BINS) $(OBJS)
    2121
    2222install:
Note: See TracChangeset for help on using the changeset viewer.