class PcapNetwork : public Network


Inheritance:


Public Fields

double offset_
time offset to 1st pkt in a trace
double t_firstpkt_
ts of 1st pkt recvd

Public Methods

void close()
virtual int command(int argc, const char*const* argv)
int filter(const char*)
compile + install a filter
virtual double gents(pcap_pkthdr*)
generate timestamp
virtual int open(int mode, const char *)
PcapNetwork()
int rchannel()
int recv(u_char *buf, int len, sockaddr&, double&)
get from net
void reset()
int schannel()
int send(u_char *buf, int len)
write to net
virtual int skiphdr()
int stat_pdrops()
int stat_pkts()

Protected Fields

char errbuf_[PCAP_ERRBUF_SIZE]
place to put err msgs
unsigned int local_netmask_
seems shouldn't be necessary :(
int optimize_
bpf optimizer enable
pcap_t* pcap_
reference to pcap state
int pcnt_
pkts counted
int pfd_
pcap fd
char srcname_[PATH_MAX]
device or file name
int state_
PNET_PSTATE_xxx (above)

Protected Methods

virtual void bindvars()
static void phandler(u_char* u, pcap_pkthdr* h, u_char* p)

Inherited from Network:

Public Methods

int mode()
static char* modename(int)
static int nonblock(int fd)
static int parsemode(const char*)

Protected Fields

int mode_

Documentation

PcapNetwork()

int rchannel()

int schannel()

virtual int command(int argc, const char*const* argv)

virtual int open(int mode, const char *)

virtual int skiphdr()

virtual double gents(pcap_pkthdr*)
generate timestamp

int recv(u_char *buf, int len, sockaddr&, double&)
get from net

int send(u_char *buf, int len)
write to net

void close()

void reset()

int filter(const char*)
compile + install a filter

int stat_pkts()

int stat_pdrops()

double offset_
time offset to 1st pkt in a trace

double t_firstpkt_
ts of 1st pkt recvd

static void phandler(u_char* u, pcap_pkthdr* h, u_char* p)

virtual void bindvars()

char errbuf_[PCAP_ERRBUF_SIZE]
place to put err msgs

char srcname_[PATH_MAX]
device or file name

int pfd_
pcap fd

int pcnt_
pkts counted

int state_
PNET_PSTATE_xxx (above)

int optimize_
bpf optimizer enable

pcap_t* pcap_
reference to pcap state

unsigned int local_netmask_
seems shouldn't be necessary :(


Direct child classes:
PcapLiveNetwork
PcapFileNetwork

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de