[Click] Help with Click HashMap

Eddie Kohler kohler at CS.UCLA.EDU
Tue Apr 4 13:08:08 EDT 2006


You need to be much more specific about your problem.


On Apr 4, 2006, at 9:12 AM, Swati Sinha Deb wrote:

> Hi Eddie,
>
> Thanks for the reply.
>
>>
>>    _pkt_map.insert(_pktid, p->clone());
>>     ....
>>    return p;
>>
> I tried the changes you mentioned but I get loads of following  
> error as soon as I start reading the packets from my callback  
> function.
>
> LinearIPLookup: no gw for 90000e0
>
> It's probably as you explained the packets might be getting  
> modified or destroyed by the downstream element. Is there any other  
> way to get around this problem? Thanks.
>
> regards,
> Swati
>
>
>> Either that or return 0.
>> Eddie
>>
>>
>>
>>>
>>> void PktHandler::callback(uint32_t pktid_, int token_)
>>> {
>>>     WritablePacket *p =  _pkt_map.find(pktid_);
>>>     //here I am not able to read the packet p.
>>>     .....................
>>> }
>>>
>>> regards,
>>> Swati
>>>
>>>
>>>
>>> _______________________________________________
>>> click mailing list
>>> click at amsterdam.lcs.mit.edu
>>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
>
>
>
> ----------------------
> Swati Sinha Deb, Research Fellow
> Wireless and Networks Research Laboratory,
> Electrical & Electronic Engineering, University of Bristol,
> Merchant Venturers Building, Woodland Road,
> Bristol BS8 1UB
> E-mail: Swati.Deb at bristol.ac.uk
> Tel.: +44 (0)117 331 5058



More information about the click mailing list