Changeset 05e83dc for examples/capture


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

File:
1 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"
Note: See TracChangeset for help on using the changeset viewer.