The following commit has been merged in the master branch: commit 658c77c7821b53b0d5913cb996904079cb923b09 Author: Andreas Langer an.langer@gmx.de Date: Thu Aug 10 02:45:44 2006 +0200
visualation server ( early alpha )
diff --git a/batman.c b/batman.c index caee894..5503a12 100755 --- a/batman.c +++ b/batman.c @@ -865,7 +865,7 @@ int batman() output(" \n \n");
schedule_own_packet(); - if(vis_if.addr.sin_addr.s_addr) + if(vis_if.sock) send_vis_packet();
list_for_each(forw_pos, &forw_list) { diff --git a/linux.c b/linux.c index db0052a..1d1bd52 100755 --- a/linux.c +++ b/linux.c @@ -502,7 +502,9 @@ int main(int argc, char *argv[]) vis_if.addr.sin_port = htons(1967); vis_if.addr.sin_addr.s_addr = vis_server; vis_if.sock = socket( PF_INET, SOCK_DGRAM, 0); - } + } else + memset(&vis_if, 0, sizeof(vis_if)); +
if (found_ifs == 0) {