ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PcapLiveNetwork Class Reference

Inheritance diagram for PcapLiveNetwork:

PcapNetwork Network TclObject List of all members.

Public Member Functions

 PcapLiveNetwork ()
NetworkAddressladdr ()
NetworkAddressnaddr ()

Protected Member Functions

double gents (pcap_pkthdr *)
int devtonaddr (const char *name, NetworkAddress &)
int open (int mode)
int open (int mode, const char *)
int command (int argc, const char *const *argv)
int skiphdr ()
const char * autodevname ()
void bindvars ()

Protected Attributes

int snaplen_
int promisc_
double timeout_
NetworkAddress linkaddr_
NetworkAddress netaddr_
unsigned int local_net_
int dlink_type_

Constructor & Destructor Documentation

PcapLiveNetwork::PcapLiveNetwork   [inline]

Member Function Documentation

const char * PcapLiveNetwork::autodevname   [protected]

void PcapLiveNetwork::bindvars   [protected, virtual]

Implements PcapNetwork.

int PcapLiveNetwork::command int    argc,
const char *const *    argv
[protected, virtual]

XXX: only for ethernet now

Reimplemented from PcapNetwork.

int PcapLiveNetwork::devtonaddr const char *    name,

double PcapLiveNetwork::gents pcap_pkthdr *    [inline, protected, virtual]

Implements PcapNetwork.

NetworkAddress& PcapLiveNetwork::laddr   [inline]

NetworkAddress& PcapLiveNetwork::naddr   [inline]

int PcapLiveNetwork::open int    mode,
const char *   
[protected, virtual]

Implements PcapNetwork.

int PcapLiveNetwork::open int    mode [protected]

int PcapLiveNetwork::skiphdr   [protected, virtual]

Implements PcapNetwork.

Member Data Documentation

int PcapLiveNetwork::dlink_type_ [protected]

NetworkAddress PcapLiveNetwork::linkaddr_ [protected]

unsigned int PcapLiveNetwork::local_net_ [protected]

NetworkAddress PcapLiveNetwork::netaddr_ [protected]

int PcapLiveNetwork::promisc_ [protected]

int PcapLiveNetwork::snaplen_ [protected]

double PcapLiveNetwork::timeout_ [protected]

The documentation for this class was generated from the following file:
This document is generated by doxygen.