net-pcap.cc File Reference

#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <string.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <pcap.h>
#include "config.h"
#include "scheduler.h"
#include "net.h"
#include "tclcl.h"
#include "packet.h"
#include "ether.h"
#include <fcntl.h>
#include <net/if.h>
#include <netinet/in.h>

Include dependency graph for net-pcap.cc:

Go to the source code of this file.

Data Structures

struct  NetworkAddress
struct  pcap
struct  pcap_md
struct  pcap_sf
struct  pcap_singleton
struct  pcap_singleton_callback
class  PcapFileNetwork
class  PcapFileNetworkClass
class  PcapLiveNetwork
class  PcapLiveNetworkClass
class  PcapNetwork

Defines

#define MIN(x, y)   ((x)<(y) ? (x) : (y))
#define PNET_PSTATE_ACTIVE   1
#define PNET_PSTATE_INACTIVE   0

Variables

PcapFileNetworkClass net_pcapfile
PcapLiveNetworkClass net_pcaplive
static const char rcsid []


Define Documentation

#define MIN x,
 )     ((x)<(y) ? (x) : (y))
 

Definition at line 302 of file net-pcap.cc.

#define PNET_PSTATE_ACTIVE   1
 

Definition at line 98 of file net-pcap.cc.

Referenced by PcapNetwork::close(), PcapNetwork::command(), PcapFileNetwork::open(), PcapLiveNetwork::open(), and PcapNetwork::recv().

#define PNET_PSTATE_INACTIVE   0
 

Definition at line 97 of file net-pcap.cc.

Referenced by PcapNetwork::reset().


Variable Documentation

PcapFileNetworkClass net_pcapfile [static]
 

PcapLiveNetworkClass net_pcaplive [static]
 

const char rcsid[] [static]
 

Initial value:

    "@(#) $Header: /nfs/jade/vint/CVSROOT/ns-2/emulate/net-pcap.cc,v 1.23 2005/09/07 06:35:45 tomh Exp $ (LBL)"

Definition at line 35 of file net-pcap.cc.


Generated on Tue Mar 6 16:55:08 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6