set unicast_src_ip if an main_ip is specified
authorMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Wed, 1 Sep 2010 04:27:36 +0000 (06:27 +0200)
committerMarkus Kittenberger <Markus.Kittenberger@gmx.at>
Wed, 1 Sep 2010 04:27:36 +0000 (06:27 +0200)
src/cfgparser/oparse.y

index 618719a..5e5a3ef 100644 (file)
@@ -1346,6 +1346,7 @@ amain_ip: TOK_MAIN_IP TOK_IPV4_ADDR
     fprintf(stderr, "Bad main IP: %s\n", $2->string);
     YYABORT;
   }
+  else olsr_cnf->unicast_src_ip = olsr_cnf->main_addr;
   free($2);
 }
         |       TOK_MAIN_IP TOK_IPV6_ADDR