Hi
I'm so excited about lots of responses that I received!!! Anyway, I found the solution and bring it here for your information. You can add any information to the trace file like below (This is for AODV); --------------------------------------------------------------------- sprintf(logtarget->pt_->buffer(),"node IP Address = %d",index); logtarget->pt_->dump(); --------------------------------------------------------------------- Reza From: Reza Karimi [mailto:rezakarim...@gmail.com] Sent: Tuesday, August 19, 2014 11:55 PM To: ns-users@ISI.EDU Subject: Adding comments to the trace file Hi Is there any way to add comments to the trace file from C++ domain like what I bring it below? s 0.000000000 _0_ AGT --- 0 cbr 512 [0 0 0 0] ------- [0:0 2:0 32 0] [0] 0 0 r 0.000000000 _0_ RTR --- 0 cbr 512 [0 0 0 0] ------- [0:0 2:0 32 0] [0] 0 0 /////////////////////Here is my comment/////////////////////////// s 0.000000000 _0_ RTR --- 0 AODV 48 [0 0 0 0] ------- [0:255 -1:255 30 0] [0x2 1 1 [2 0] [0 4]] (REQUEST) s 0.000535000 _0_ MAC --- 0 AODV 106 [0 ffffffff 0 800] ------- [0:255 -1:255 30 0] [0x2 1 1 [2 0] [0 4]] (REQUEST) I think I should find the pointer to the trace file, but I don't know how? Thanks in advance for your helps. Reza