aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/vis.h
diff options
context:
space:
mode:
authorLinus Lüssing <linus.luessing@web.de>2010-03-22 22:46:14 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-11 11:35:59 -0700
commitf6497e38fda6970819daacb67725d67474079381 (patch)
tree1caa4f81012ec4d60458d1e245a500041cf23239 /drivers/staging/batman-adv/vis.h
parentStaging: batman-adv: don't have interrupts disabled while sending. (diff)
downloadlinux-dev-f6497e38fda6970819daacb67725d67474079381.tar.xz
linux-dev-f6497e38fda6970819daacb67725d67474079381.zip
Staging: batman-adv: Fix VIS output bug for secondary interfaces
TQ and HNA records for originators on secondary interfaces were wrongly being included on the primary interface. Ensure we output a line for each source interface on every node, so we correctly separate primary and secondary interface records. Signed-off-by: Linus Lüssing <linus.luessing@web.de> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/vis.h')
-rw-r--r--drivers/staging/batman-adv/vis.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/staging/batman-adv/vis.h b/drivers/staging/batman-adv/vis.h
index 465da4765cee..a1f92a4b101d 100644
--- a/drivers/staging/batman-adv/vis.h
+++ b/drivers/staging/batman-adv/vis.h
@@ -49,10 +49,13 @@ struct recvlist_node {
extern struct hashtable_t *vis_hash;
extern spinlock_t vis_hash_lock;
+void proc_vis_insert_interface(const uint8_t *interface,
+ struct hlist_head *if_list,
+ bool primary);
void proc_vis_read_entry(struct seq_file *seq,
struct vis_info_entry *entry,
- struct hlist_head *if_list,
- uint8_t *vis_orig);
+ uint8_t *src,
+ bool primary);
void proc_vis_read_prim_sec(struct seq_file *seq,
struct hlist_head *if_list);
void receive_server_sync_packet(struct vis_packet *vis_packet,