I use ns-allinone-2.31 to build a ns2 enviroment in x86_64 linux system.
But there is a problem while running multicase in dense mode ( i don't this problem also happen in sparse mode). The multicased packets are flooding over the entire network.
The reason of this problem is in "MCastClassifier::classify(Packet *pkt)" in classifier-mcast.cc.
The original code is:
if (p == 0) {
// Didn't find an entry.
tcl.evalf("%s new-group %d %d %d cache-miss", name(), src, dst, iface);
Try to change into:
if (p == 0) {
// Didn't find an entry.
tcl.evalf("%s new-group %ld %ld %d cache-miss", name(), src, dst, iface);
But there is a problem while running multicase in dense mode ( i don't this problem also happen in sparse mode). The multicased packets are flooding over the entire network.
The reason of this problem is in "MCastClassifier::classify(Packet *pkt)" in classifier-mcast.cc.
The original code is:
if (p == 0) {
// Didn't find an entry.
tcl.evalf("%s new-group %d %d %d cache-miss", name(), src, dst, iface);
Try to change into:
if (p == 0) {
// Didn't find an entry.
tcl.evalf("%s new-group %ld %ld %d cache-miss", name(), src, dst, iface);