Thanks rtmistler for welcoming me on LQ and give suggestion..
But when I wrote 'make' command got an error.
sinal@sinal-VirtualBox:~/Documents/ns-allinone-2.34/ns-2.34$ make
g++ -c -O2 -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/sinal/Documents/ns-allinone-2.34/tclcl-1.19 -I/home/sinal/Documents/ns-allinone-2.34/otcl -I/home/sinal/Documents/ns-allinone-2.34/include -I/home/sinal/Documents/ns-allinone-2.34/include -I/home/sinal/Documents/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tcp/tcp_master.o tcp/tcp_master.cc
tcp/tcp_master.cc: In constructor ‘TcpMaster::TcpMaster()’:
tcp/tcp_master.cc:36:31: error: ‘PT_TCPMASTER’ was not declared in this scope
TcpMaster::TcpMaster(): Agent(PT_TCPMASTER) {
^
tcp/tcp_master.cc: In member function ‘FullTcpAgent* TcpMaster:
penServer(int, TcpSocket*)’:
tcp/tcp_master.cc:62:12: error: ‘class FullTcpAgent’ has no member named ‘tcpMaster’
agent->tcpMaster = this;
^
tcp/tcp_master.cc:63:12: error: ‘class FullTcpAgent’ has no member named ‘mySocket’
agent->mySocket = listening;
^
In file included from tcp/tcp_master.cc:20:0:
tcp/tcp-full.h:216:7: error: ‘virtual void FullTcpAgent::listen()’ is protected
void listen(); // do passive open
^
tcp/tcp_master.cc:64:17: error: within this context
agent->listen();
^
In file included from tcp/tcp_master.cc:20:0:
tcp/tcp-full.h: In member function ‘FullTcpAgent* TcpMaster:
penConnect(int, int, TcpSocket*)’:
tcp/tcp-full.h:216:7: error: ‘virtual void FullTcpAgent::listen()’ is protected
void listen(); // do passive open
^
tcp/tcp_master.cc:77:23: error: within this context
agent->listen();
^
tcp/tcp_master.cc:84:14: error: ‘class FullTcpAgent’ has no member named ‘tcpMaster’
agent->tcpMaster = this;
^
tcp/tcp_master.cc:85:14: error: ‘class FullTcpAgent’ has no member named ‘mySocket’
agent->mySocket = writing;
^
tcp/tcp_master.cc: In member function ‘FullTcpAgent* TcpMaster::newInComing(Packet*, TcpSocket*)’:
tcp/tcp_master.cc:110:12: error: ‘class FullTcpAgent’ has no member named ‘tcpMaster’
agent->tcpMaster = this;
^
tcp/tcp_master.cc:116:12: error: ‘class FullTcpAgent’ has no member named ‘mySocket’
agent->mySocket = sock;
^
In file included from tcp/tcp_master.cc:20:0:
tcp/tcp-full.h:216:7: error: ‘virtual void FullTcpAgent::listen()’ is protected
void listen(); // do passive open
^
tcp/tcp_master.cc:119:17: error: within this context
agent->listen();
^
make: *** [tcp/tcp_master.o] Error 1