class <Agent/TORA> toraAgent : public rtAgent


Inheritance:


Public Methods

int command(int argc, const char*const* argv)
Agent/TORA instproc init args
void recv(Packet* p, Handler*)
void rtNotifyLinkDN(nsaddr_t index)
void rtNotifyLinkStatus(nsaddr_t index, u_int32_t status)
void rtNotifyLinkUP(nsaddr_t index)
void rtRoutePacket(Packet *p)
toraAgent(nsaddr_t id)

Private Fields

td_head dstlist
Active destinations
PriQueue* ifqueue
A pointer to the network interface queue that sits between the "classifier" and the "link layer"
imepAgent* imepagent
nsaddr_t index
added for line 78 of tora.cc, needed for
Trace* logtarget
A mechanism for logging the contents of the routing table
int off_TORA_
byte offset of TORA header
rtqueue rqueue
A "drop-front" queue used by the routing layer to buffer packets to which it does not have a route
friend class TORADest
friend class TORANeighbor

Private Methods

Packet* deque(TORADest *td)
TORADest* dst_add(nsaddr_t id)
void dst_dump(void)
TORADest* dst_find(nsaddr_t id)
void enque(TORADest *td, Packet *p)
void forward(Packet *p, nsaddr_t nexthop, Time delay = 0.0)
inline int initialized()
void log_dst_state_change(TORADest *td)
void log_link_layer_feedback(Packet *p)
void log_link_layer_recycle(Packet *p)
void log_lnk_del(nsaddr_t dst)
void log_lnk_kept(nsaddr_t dst)
void log_nb_del(nsaddr_t dst, nsaddr_t id)
void log_recv_clr(Packet *p)
void log_recv_qry(Packet *p)
void log_recv_upd(Packet *p)
void log_route_loop(nsaddr_t prev, nsaddr_t next)
Logging Routines
void log_route_table(void)
void logNbDeletedLastDN(TORADest *td)
void logNextHopChange(TORADest *td)
void logToraDest(TORADest *td)
void logToraNeighbor(TORANeighbor *tn)
void purge_queue(void)
void recvCLR(Packet *p)
void recvQRY(Packet *p)
void recvTORA(Packet* p)
Incoming Packets
void recvUPD(Packet *p)
virtual void reset()
void rt_resolve(Packet *p)
void sendCLR(nsaddr_t id, double tau, nsaddr_t oid)
void sendQRY(nsaddr_t id)
Outgoing Packets
void sendUPD(nsaddr_t id)
void tora_output(Packet *p)
void trace(char* fmt, ...)

Inherited from rtAgent:

Protected Methods

nsaddr_t& ipaddr()

Private Fields

nsaddr_t ipaddr_

Inherited from Agent:

Public Fields

Agent instvar agent_port_
Agent instvar dst_addr_
Agent instvar dst_port_
Agent instvar namTrace_
Agent instvar tg_

Public Methods

inline nsaddr_t& addr()
Agent instproc attach-app {s_type}
Agent instproc attach-source {s_type}
Agent instproc attach-tbf { tbf }
Agent instproc attach-trace { file }
virtual void attachApp(Application* app)
virtual void close()
Agent instproc connect d
virtual void connect(nsaddr_t dst)
inline nsaddr_t& daddr()
inline nsaddr_t& dport()
Agent instproc dst-port {}
virtual void listen()
Agent instproc port {}
inline nsaddr_t& port()
virtual void send(int nbytes)
virtual void send(int sz, AppData *data)
void send(Packet* p, Handler* h)
virtual void sendmsg(int nbytes, const char *flags = 0)
virtual void sendmsg(int sz, AppData*, const char* flags = 0)
virtual void sendto(int sz, AppData*, const char* flags = 0)
virtual void sendto(int nbytes, const char* flags, nsaddr_t dst)
Agent instproc set args
void set_pkttype(packet_t pkttype)
virtual int& size()
virtual void timeout(int tno)
Agent instproc traffic-source agent

Protected Fields

Application* app_
Tcl_Channel channel_
int class_
int defttl_
ns_addr_t dst_
int fid_
int flags_
ns_addr_t here_
int off_ip_
OldValue* oldValueList_
int prio_
int seqno_
int size_
char* traceName_
packet_t type_
static int uidcnt_

Protected Methods

void addAgentTrace(const char *name)
Packet* allocpkt(int)
Packet* allocpkt()
virtual int delay_bind_dispatch(const char *varName, const char *localName, TclObject *tracer)
virtual void delay_bind_init_all()
void deleteAgentTrace()
void dumpTracedVars()
virtual void idle()
void initpkt(Packet*)
void insertOldValue(TracedVar *v, const char *value)
OldValue* lookupOldValue(TracedVar *v)
void monitorAgentTrace()
virtual void recvBytes(int bytes)

Private Methods

void flushAVar(TracedVar *v)

Inherited from Connector:

Public Methods

virtual void drop(Packet* p)
inline NsObject* target()

Protected Fields

NsObject* drop_
NsObject* target_

Protected Methods

virtual void drop(Packet* p, const char *s)

Inherited from NsObject:

Public Methods

virtual void debug(const char *fmt, ...)
int isdebug()

Protected Fields

int debug_
int off_cmn_
int off_flags_

Protected Methods

void handle(Event*)

Inherited from Handler:


Documentation

friend class TORANeighbor

friend class TORADest

toraAgent(nsaddr_t id)

void recv(Packet* p, Handler*)

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

void rtNotifyLinkUP(nsaddr_t index)

void rtNotifyLinkDN(nsaddr_t index)

void rtNotifyLinkStatus(nsaddr_t index, u_int32_t status)

void rtRoutePacket(Packet *p)

nsaddr_t index
added for line 78 of tora.cc, needed for

TORADest* dst_find(nsaddr_t id)

TORADest* dst_add(nsaddr_t id)

void dst_dump(void)

void rt_resolve(Packet *p)

void forward(Packet *p, nsaddr_t nexthop, Time delay = 0.0)

void purge_queue(void)

void enque(TORADest *td, Packet *p)

Packet* deque(TORADest *td)

void recvTORA(Packet* p)
Incoming Packets

void recvQRY(Packet *p)

void recvUPD(Packet *p)

void recvCLR(Packet *p)

void sendQRY(nsaddr_t id)
Outgoing Packets

void sendUPD(nsaddr_t id)

void sendCLR(nsaddr_t id, double tau, nsaddr_t oid)

void tora_output(Packet *p)

inline int initialized()

int off_TORA_
byte offset of TORA header

td_head dstlist
Active destinations

imepAgent* imepagent

Trace* logtarget
A mechanism for logging the contents of the routing table

void trace(char* fmt, ...)

virtual void reset()

rtqueue rqueue
A "drop-front" queue used by the routing layer to buffer packets to which it does not have a route

PriQueue* ifqueue
A pointer to the network interface queue that sits between the "classifier" and the "link layer"

void log_route_loop(nsaddr_t prev, nsaddr_t next)
Logging Routines

void log_link_layer_feedback(Packet *p)

void log_link_layer_recycle(Packet *p)

void log_lnk_del(nsaddr_t dst)

void log_lnk_kept(nsaddr_t dst)

void log_nb_del(nsaddr_t dst, nsaddr_t id)

void log_recv_qry(Packet *p)

void log_recv_upd(Packet *p)

void log_recv_clr(Packet *p)

void log_route_table(void)

void log_dst_state_change(TORADest *td)

void logNextHopChange(TORADest *td)

void logNbDeletedLastDN(TORADest *td)

void logToraDest(TORADest *td)

void logToraNeighbor(TORANeighbor *tn)

Agent/TORA instproc init args
Agent/rtProto instproc init args { puts "DOWN HERE 2" $self next $args } Agent/rtProto/TORA -superclass Agent


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