Main Page   Modules   Data Structures   File List   Data Fields   Globals  

pcap_filter.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <pcap.h>

Go to the source code of this file.

Defines

#define MAX_PRINT   80
#define MAX_LINE   16

Functions

void dispatcher_handler (u_char *, const struct pcap_pkthdr *, const u_char *)
void usage ()
void main (int argc, char **argv)


Define Documentation

#define MAX_LINE   16
 

Definition at line 28 of file pcap_filter.c.

#define MAX_PRINT   80
 

Definition at line 27 of file pcap_filter.c.


Function Documentation

void dispatcher_handler u_char *   ,
const struct pcap_pkthdr  ,
const u_char *   
 

Definition at line 147 of file pcap_filter.c.

References pcap_dump.

Referenced by main.

void main int    argc,
char **    argv
 

Definition at line 35 of file pcap_filter.c.

References bpf_u_int32, dispatcher_handler, pcap_compile, pcap_dump_open, pcap_dumper_t, PCAP_ERRBUF_SIZE, pcap_lookupnet, pcap_loop, pcap_open_live, pcap_open_offline, pcap_setfilter, pcap_t, and usage.

void usage  
 

Definition at line 158 of file pcap_filter.c.

Referenced by main.


documentation. Copyright (c) 2002 Politecnico di Torino. All rights reserved.