batman-adv: fix visualization output without neighbors on the primary interface
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 5 May 2012 15:51:53 +0000 (17:51 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 18 Jun 2012 16:01:04 +0000 (18:01 +0200)
commitbeeb96a4142180c34ddf592aef5a278c2d676bf0
tree08c96dbb5baf1c6e1f92e6c327a6fe2c43ebf203
parent16a703459bb58aa873c5b36f42093f0f681628af
batman-adv: fix visualization output without neighbors on the primary interface

The primary entry and the corresponding secondary entries are missing when there
are no neighbors on the primary interface. This also causes the TT entries to
miss and makes nodes with multiply secondary interface fall apart since there
is no way to see they are related without a primary entry.

Fix this by always emitting a primary entry.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/vis.c