ffnord / ffmap-backend

THIS PROJECT DOESN'T HAVE A MAINTAINER!
Other
20 stars 56 forks source link

Fixes iteration over chars in maybe_node_by_mac() when processing neighbor entries #36

Closed thisco-de closed 9 years ago

thisco-de commented 9 years ago

As all other calls to maybe_node_by_mac() are correct, I assume that this bug got introduced rather by accidient. However, "node = self.maybe_node_by_mac((x['neighbor']))" causes nodedb.py to iterate over the characters in a MAC address, but not - as intended - over MAC addresses as elements of a tuple. This on the one hand cause longer execution times, of course, and on the other hand such neighbor nodes cannot be found in the list of known nodes.