[ns] send unicast packets and packets to the direct neighbors !

=?GB2312?B?tqHQ/Q==?= dingx04 at gmail.com
Tue May 6 22:01:08 PDT 2008


Packet* p = Packet::alloc();
struct hdr_ip* ih = HDR_IP(p);

/* ... */
ih->ttl_ = 1; // i think this is what you want
/* ... */

Scheduler::instance().schedule(target_, p, 0.0);


2008/5/7, levy david <david6002 at gmail.com>:
>
>
> Hello all,
>
> I have some questions :
>
> 1 - how to define an agent to send unicast packet (sendunicast(packet, *
> destination*)!)
> 2 - how to define an agent to send packets to *the direct neighbors
> *3-  how to estimate the the number of the *one hop neighbors*
> 4 - how to define two types of node (type 1 with a behaviour and type 2
> with
> another behavior)
>
> I need a component that estimate the network' state (congestion,...) you
> have an idea ?
>
> Thank you.
> David
>



-- 
dx617(nOmIrAcIE)
DingXuan at THU.SS
01,0-51,531,427
1,326,963,605,4


More information about the Ns-users mailing list