Sorry, people,  forget my last message. I've had a mistake with some
pointers in C++. The AgentList is OK.

Best regards,

Mario Ezequiel

2009/12/11 Mário Augusto <marioeaugu...@gmail.com>:
> Hi All,
>
> I'm studying mip-reg.cc module because I need to get a list of
> available agents which the mobile could connect to. I've put some
> fprintf(stdout) into MIPMHAgent::recv and into MIPMHAgent::timeout to
> dump the AgentList every 0.2 seconds and I realised that the AgentList
> gets empty less than 0.2 seconds after the MH received an ADS (and
> before the expire_time is reached). Below is a peace of the output. My
> scenario has 3 base stations and one mobile. I'm running NS 2.33
> version.
> Into the MIPMHAgent::timeout function, none of the agents are never
> deleted because at that time the AgentList is already empty.
>
> Does someone know why AgentList becomes empty and where the agents
> (from AgentList) are being deleted?
>
> Thanks for your answer.
>
> Mario Ezequiel
> University of Sao Paulo, Brazil
>
> Output (ptr->expire_time=beacon_+$now):
>
> receiving MIPT_ADS from 8388609(miph->coa_) at 0.023717:
> ptr->expire_time=1.000000+0.023717
> At 0.200000, agent list = 8388609
> At 0.400000, agent list =
> receiving MIPT_ADS from 4194305(miph->coa_) at 0.561706:
> ptr->expire_time=1.000000+0.561706
> At 0.600000, agent list = 4194305
> At 0.800000, agent list =
> executing MIPMHAgent::timeout (case MIP_TIMER_AGTLIST) at 1.000000
> At 1.000000, agent list =
> receiving MIPT_ADS from 8388609(miph->coa_) at 1.024124:
> ptr->expire_time=1.000000+1.024124
> At 1.200000, agent list = 8388609
> At 1.400000, agent list =
> receiving MIPT_ADS from 4194305(miph->coa_) at 1.560502:
> ptr->expire_time=1.000000+1.560502
> At 1.600000, agent list = 4194305
> At 1.800000, agent list =
> At 2.000000, agent list =
> executing MIPMHAgent::timeout (case MIP_TIMER_AGTLIST) at 2.000000
> receiving MIPT_ADS from 8388609(miph->coa_) at 2.024486:
> ptr->expire_time=1.000000+2.024486
> At 2.200000, agent list = 8388609
> At 2.400000, agent list =
> receiving MIPT_ADS from 4194305(miph->coa_) at 2.566437:
> ptr->expire_time=1.000000+2.566437
> At 2.600000, agent list = 4194305
> At 2.800000, agent list =
> executing MIPMHAgent::timeout (case MIP_TIMER_AGTLIST) at 3.000000
> At 3.000000, agent list =
>

Reply via email to