Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit 7ceb16cbb2fd008b0f8cb89c6862e7a9bcc0166e Author: Simon Wunderlich siwu@hrz.tu-chemnitz.de Date: Sat Jul 20 15:13:37 2013 +0200
alfred: fix iface entry list in vis packet generation
This was using the wrong index counter ...
Reported-by: Gui Iribarren gui@altermundi.net Signed-off-by: Simon Wunderlich siwu@hrz.tu-chemnitz.de
7ceb16cbb2fd008b0f8cb89c6862e7a9bcc0166e vis/vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis/vis.c b/vis/vis.c index c867679..3d0c5f0 100644 --- a/vis/vis.c +++ b/vis/vis.c @@ -389,7 +389,7 @@ int compile_vis_data(struct globals *globals) int iface_n = 0, entries_n = 0;
list_for_each_entry(i_entry, &globals->iface_list, list) { - memcpy(&globals->vis_data->ifaces[entries_n], i_entry->mac, ETH_ALEN); + memcpy(&globals->vis_data->ifaces[iface_n], i_entry->mac, ETH_ALEN);
iface_n++; if (iface_n == 254)