class <Network/Pcap/Live> PcapLiveNetwork : public PcapNetwork


Inheritance:


Public Methods

NetworkAddress& laddr()
NetworkAddress& naddr()
PcapLiveNetwork()

Protected Fields

int dlink_type_
data link type (see pcap)
NetworkAddress linkaddr_
link-layer address
unsigned int local_net_
NetworkAddress netaddr_
network-layer (IP) address
int promisc_
put intf into promisc mode?
int snaplen_
of bytes to grab
double timeout_

Protected Methods

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

Private Methods

int bpf_open(pcap_t *p, char *errbuf, int how)
pcap_t* pcap_open_live(char *, int slen, int prom, int, char *, int)
XXX somewhat specific to bpf-- this stuff is a hack until pcap can be fixed to allow for opening the bpf r/w

Inherited from PcapNetwork:

Public Fields

double offset_
double t_firstpkt_

Public Methods

void close()
int filter(const char*)
int rchannel()
int recv(u_char *buf, int len, sockaddr&, double&)
void reset()
int schannel()
int send(u_char *buf, int len)
int stat_pdrops()
int stat_pkts()

Protected Fields

char errbuf_[PCAP_ERRBUF_SIZE]
unsigned int local_netmask_
int optimize_
pcap_t* pcap_
int pcnt_
int pfd_
char srcname_[PATH_MAX]
int state_

Protected Methods

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

PcapLiveNetwork()

NetworkAddress& laddr()

NetworkAddress& naddr()

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()

int snaplen_
of bytes to grab

int promisc_
put intf into promisc mode?

double timeout_

NetworkAddress linkaddr_
link-layer address

NetworkAddress netaddr_
network-layer (IP) address

unsigned int local_net_

int dlink_type_
data link type (see pcap)

pcap_t* pcap_open_live(char *, int slen, int prom, int, char *, int)
XXX somewhat specific to bpf-- this stuff is a hack until pcap can be fixed to allow for opening the bpf r/w

int bpf_open(pcap_t *p, char *errbuf, int how)


This class has no child classes.

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