[Click] HashMap problem

j94921058@ntu.edu.tw j94921058 at ntu.edu.tw
Thu Jan 3 04:00:56 EST 2008


Hi all:
    When I build two element class ,and run click router in userleveal.

Element 1
element.cc
...
       element2->insertmap( EtherAddress(ether_temp->ether_shost));
...
---------------
Element 2

element2.hh
...
typedef HashMap<EtherAddress, entry> NeiMap;
NeiMap* neimap;
...
---------------
element2.cc
...
insertmap(const Etheraddress & ether)
{
...
neimap->insert(ether, entry_data)
}

I run click-1.5.0 in userlevel.  when click recive an packet from network.
Element1  will call element2's funtion.
when element2 excute neimap->insert(ether,entry_data) i get a  
segmentation fault.
Does someone know how to fix this problem?
Thanks

Yi-Xiang Ma



More information about the click mailing list