[ns] how to display hierarchical address?

55ahmad at niit.edu.pk 55ahmad at niit.edu.pk
Thu Apr 14 10:14:27 PDT 2005


Yes, it is a good idea. I have applied and got ip address in appropriate
format. Thanks for your kind help.

I need some more favour and hope that you are the person who can help me.
Actually, I want to store TCP segment at a base station node before
forwarding it to the destination in a wired-cum-wireless node. Now, i
wants to know that in which module should i write my code to store the
segment becoz if i add my code in any TCP function, it affects for all
nodes but i need to apply only to base station node. Please also note that
base station is just like a router so, it goes upto RTR layer not to
transport layer.

Your precious suggestions or sample code shall be helpful for me to
proceed in my MS thesis implementation.

Thanks a lot.

best regards,
Ahmad Ali Iqbal
MS(IT) Research Student
NUST Institute of Information Technology (NIIT)
Room # 13, NIIT Hostel-III,
166-A, Street # 9, Chaklala Scheme-III,
Rawalpindi, Pakistan. Postal Code: 46000
Email: ahmad.ali at niit.edu.pk
       aaipk@{yahoo, hotmail}.com
Cell #: +92 300 5270958
        +92 333 5581588




> Try this
> 	Address::instance().print_nodeaddr(iph->daddr())
>
> Regards
>
> On Thu, 2005-04-14 at 11:07, 55ahmad at niit.edu.pk wrote:
>> When I display the address of a base station in DSDV.cc file, it shows a
>> long numeric number. plz help me to make this address appearing in a
>> hierarchial format number. e.g. 1.3.0 instead of 49832176.
>>
>> I add the following code in DSDV_Agent::forwardPacket (Packet * p)
>>               function at line number 907 to display the address of a
>> base
>> station.
>>
>> printf("No entry found for %d. Index is %d, %d.\n", iph->daddr(),
>> myaddr_,
>> dst);
>>
>> May be i need to use some other format specifier to display this address
>> in hierachical format. Any suggestions are warmly welcomed.
>>
>



More information about the Ns-users mailing list