[Diffusion-users] Seems to be a bug in OneWayMatch function

Ashkan Zamani ashkan170 at gmail.com
Sun Aug 23 08:32:12 PDT 2009


Hello,

I'm doing my research on directed diffusion using ns 2.27. My application is
two-phase pull and I have changed the publish data in the manner that they
no more match any of the interests of sink nodes. The result is that in the
OneWayMatch() function of attrs.cc, the second "for" never ends and is never
broken by any of the cases in "switch". In the code, it is assumed that the
two attribute vectors do not match only when they have at least one uncommon
keys because there is just one point in the function that returns with false
value and it occures when the find_matching_key_from() function fails to
find the corresponding key. The surprising point is that when the two keys
match, why the corresponding values are not checked if they don't satisfy
the interest and the function is returned with false value?

Regards,
Mahdi Zamani
AmirKabir University of Technology


More information about the Diffusion-users mailing list