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  

ArpAgent Class Reference

Inheritance diagram for ArpAgent:

NsObject IOHandler TclObject Handler List of all members.

Public Member Functions

 ArpAgent ()
 ~ArpAgent ()

Protected Member Functions

char icode (const char *)
acache_entryfind (in_addr &)
void insert (in_addr &, ether_addr &, char code)
void dispatch (int)
int sendreq (in_addr &)
int sendresp (ether_addr &, in_addr &, ether_addr &)
int resolve (const char *host, char *&result, int sendreq)
void doreq (ether_arp *)
void doreply (ether_arp *)
void recv (Packet *, Handler *)
int command (int, const char *const *)

Protected Attributes

ether_header eh_template_
ether_arp ea_template_
ether_addr my_ether_
in_addr my_ip_
int base_size_
u_char * rcv_buf_
int nacache_
int cur_
int pending_

Constructor & Destructor Documentation



Member Function Documentation

int ArpAgent::command int   ,
const char *const *   
[protected, virtual]

Reimplemented from NsObject.

void ArpAgent::dispatch int    [protected, virtual]

Implements IOHandler.

void ArpAgent::doreply ether_arp *    [protected]

void ArpAgent::doreq ether_arp *    [protected]

ArpAgent::acache_entry * ArpAgent::find in_addr &    [protected]

char ArpAgent::icode const char *    [protected]

void ArpAgent::insert in_addr &   ,
ether_addr  ,
char    code

void ArpAgent::recv Packet  ,
[inline, protected, virtual]

Implements NsObject.

int ArpAgent::resolve const char *    host,
char *&    result,
int    sendreq

int ArpAgent::sendreq in_addr &    [protected]

int ArpAgent::sendresp ether_addr  ,
in_addr &   ,

Member Data Documentation

acache_entry* ArpAgent::acache_ [protected]

int ArpAgent::base_size_ [protected]

int ArpAgent::cur_ [protected]

ether_arp ArpAgent::ea_template_ [protected]

ether_header ArpAgent::eh_template_ [protected]

ether_addr ArpAgent::my_ether_ [protected]

in_addr ArpAgent::my_ip_ [protected]

int ArpAgent::nacache_ [protected]

Network* ArpAgent::net_ [protected]

int ArpAgent::pending_ [protected]

u_char* ArpAgent::rcv_buf_ [protected]

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