Hi, everyone I am trying to implement Diffie-Hellman key exchange protocol on two node in ad hoc network. I create a new kind of agent and new application. However, when a packet of public key is broadcast in the network, it shows the following message "Problem: *** glibc detected *** bin/ns: free(): invalid next size (normal): 0x0a8cc1a0 ***." Then, the simulation is crashed. I am wondering if this is a problem about packet transmission. I upload my source code in the attachment of this message. (I am afraid that it is cumbersome to post the code in the message. So, i link these files.) http://old.nabble.com/file/p33480854/bbcast-packet.h bbcast-packet.h http://old.nabble.com/file/p33480854/bbcast-packet.cc bbcast-packet.cc http://old.nabble.com/file/p33480854/bdagent.h bdagent.h http://old.nabble.com/file/p33480854/bdagent.cc bdagent.cc http://old.nabble.com/file/p33480854/bdapp.h bdapp.h http://old.nabble.com/file/p33480854/bdapp.cc bdapp.cc Would everyone please give me some suggestion about this problem? PS: bbcast-packet defines the structure of packet used for broadcast public keys. bdagent handles the procedures of packet transmission(packet broadcast). bdapp generates a public key and secret key of a node.
-- View this message in context: http://old.nabble.com/Problem%3A-***-glibc-detected-***-bin-ns%3A-free%28%29%3A-invalid-next-size-%28normal%29%3A-0x0a8cc1a0-***-tp33480854p33480854.html Sent from the ns-users mailing list archive at Nabble.com.