Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314309
b: refs/heads/master
c: beeb96a
h: refs/heads/master
i:
  314307: 92aa63d
v: v3
  • Loading branch information
Matthias Schiffer authored and Antonio Quartulli committed Jun 18, 2012
1 parent acb295b commit 40ff460
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16a703459bb58aa873c5b36f42093f0f681628af
refs/heads/master: beeb96a4142180c34ddf592aef5a278c2d676bf0
21 changes: 14 additions & 7 deletions trunk/net/batman-adv/vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ int vis_seq_print_text(struct seq_file *seq, void *offset)
int vis_server = atomic_read(&bat_priv->vis_mode);
size_t buff_pos, buf_size;
char *buff;
int compare;

primary_if = primary_if_get_selected(bat_priv);
if (!primary_if)
Expand All @@ -228,14 +227,18 @@ int vis_seq_print_text(struct seq_file *seq, void *offset)
entries = (struct vis_info_entry *)
((char *)packet + sizeof(*packet));

vis_data_insert_interface(packet->vis_orig,
&vis_if_list, true);

for (j = 0; j < packet->entries; j++) {
if (entries[j].quality == 0)
continue;
compare =
compare_eth(entries[j].src, packet->vis_orig);
if (compare_eth(entries[j].src,
packet->vis_orig))
continue;
vis_data_insert_interface(entries[j].src,
&vis_if_list,
compare);
false);
}

hlist_for_each_entry(entry, pos, &vis_if_list, list) {
Expand Down Expand Up @@ -276,14 +279,18 @@ int vis_seq_print_text(struct seq_file *seq, void *offset)
entries = (struct vis_info_entry *)
((char *)packet + sizeof(*packet));

vis_data_insert_interface(packet->vis_orig,
&vis_if_list, true);

for (j = 0; j < packet->entries; j++) {
if (entries[j].quality == 0)
continue;
compare =
compare_eth(entries[j].src, packet->vis_orig);
if (compare_eth(entries[j].src,
packet->vis_orig))
continue;
vis_data_insert_interface(entries[j].src,
&vis_if_list,
compare);
false);
}

hlist_for_each_entry(entry, pos, &vis_if_list, list) {
Expand Down

0 comments on commit 40ff460

Please sign in to comment.