Re: [ns] How to determine the current simulation time from C++ code?

2006-10-11 Thread Gianko

Piyush Agrawal wrote:
> Hi,
>
> How can I print the current time in the simulation from the C++ code?
>   
double curr_time_ = Schedule::instance().clock

G.




Re: [ns] how to configure a wireless node to route pakets?

2006-10-05 Thread Gianko

Shahatha wrote:
> hello,
>
>   Iam neu in ns2.
>   i try to write a topologe with three wirelss node
>   how can i configure a node to be abvle to forward pakets to other nodes?
>   
If you mean "packet forwarding" as "selfish forwarding" with DSR routing
algorithm you can change packet flow is in DSRAgent::recv(...) inside
~dsr/dsragent.cc

G.



Re: [ns] cmu new format trace

2006-09-28 Thread Gianko

Gianko wrote:
> Somebody may help me?
... the question was: somebody may hel me in understanding the lines above?

G.



[ns] cmu new format trace

2006-09-28 Thread Gianko

When I put node-config with params:
[...]
-wiredRouting OFF \
-agentTrace OFF \
-routerTrace OFF \
-macTrace OFF \
-movementTrace OFF \
[...]

in .tr file there are a lot of:
SFs 0.38400 _0_ 45 [0 -> 1] 1(0) to 1
SFs 0.393142857 _0_ 46 [0 -> 1] 1(0) to 1

Somebody may help me?



[ns] CMUTrace and classifier

2006-09-26 Thread Gianko

Hi all,
I'm looking for a right place we're implement a function that drop
packet for DSR purpouse or disable packet forwarding function in
a MANET.

I'd wish to know if the SRNodeNew's classifier is a CMUTrace class,
and if this is a right place to implement misbehaviour.

Regards,
G.