[ns] bug in BST (ns 2.1b8)

Francesc Font (EPFL) francesc at lsihp19.epfl.ch
Mon May 27 07:30:02 PDT 2002

Hi ns-users,
    I have found a bug in ns/classifier-bst.cc. My simulations
of BST protocol (ns 2.1b8) suffered a "Segmentation Fault". The problem
is in the ns/classifier-bst.tcl file. Concretely in the upstream_add
function. In the chained list we need to initialize the last pointer
to NULL when adding a new entry in the multicast routing table...
(add the next line)

    next->next = NULL (line 248)

Have a nice day!

More information about the Ns-users mailing list