Changeset b8cb571


Ignore:
Timestamp:
07/16/10 14:36:48 (10 years ago)
Author:
Shane Alcock <salcock@…>
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:
307892f
Parents:
04a0ba4
Message:
  • Make sure we include the header for read() and close()
  • Remove seemingly useless function
  • Re-enable probe_filename function
  • Fix warning for unused parameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_bpf.c

    r5952ff0 rb8cb571  
    5555#include <errno.h>
    5656#include <fcntl.h>
     57#include <unistd.h>
    5758
    5859/* This format deals with the BSD Native capture format, perhaps better
     
    102103}
    103104
    104 /* XXX This function doesn't appear to be used anywhere - nor does it do
    105  * anything particularly useful :) */
    106 static int bpf_start_filename(const char *filename)
    107 {
    108         return 0;
    109 }
    110 
    111105/* Initialises a BPF input trace */
    112106static int bpf_init_input(libtrace_t *libtrace)
     
    448442
    449443/* Returns the direction for a given BPF packet record */
    450 static libtrace_direction_t bpf_get_direction(const libtrace_packet_t *packet) {
     444static libtrace_direction_t bpf_get_direction(const libtrace_packet_t *packet UNUSED) {
    451445        /* BPF sadly can't do direction tagging */
    452446        return ~0;
     
    508502        "$Id$",
    509503        TRACE_FORMAT_BPF,
    510         //bpf_probe_filename,   /* probe filename */
    511         NULL,
     504        bpf_probe_filename,     /* probe filename */
    512505        NULL,                   /* probe magic */
    513506        bpf_init_input,         /* init_input */
Note: See TracChangeset for help on using the changeset viewer.