Hi<br><br>In vienna we extensifely use ipvbroadcast option, but windows (and openbsd) olsrd do not support it,.. (resulting in limited olsrd connectivity of them)<br>i tested ipv4broadcast option on a windows laptop, realising (reading the debug output) that the ibv4_broadcast adress is correctly set, but gets overwritten by a new interface config just a second later,..<br>
<br>Now i found time to look into the source code,..<br><br>while in the unix/ifnet.c the detected broadcast address is only used when no ipv4broadcast adress is specified in config, in win32/ifnet.c it is used anyway,..<br>
<br>Follwoing patch should correct this,.. <br>As i can`t compile the windows olsrd,..<br>Can anyone try this patch for me, pls?<br><br>--- ifnet.c 2008-01-04 14:29:26.000000000 +0100<br>+++ ifnet.n 2008-03-15 18:22:28.000000000 +0100<br>
@@ -911,7 +911,7 @@<br> OLSR_PRINTF(3, "\tBroadcast address: %s\n", olsr_ip_to_string(&buf, &NewVal));<br> #endif<br><br>- if (NewVal.v4.s_addr != OldVal.v4.s_addr)<br>+ if ((NewVal.v4.s_addr != OldVal.v4.s_addr) && (IntConf->cnf->ipv4_broadcast.v4.s_addr == 0))<br>
{<br> OLSR_PRINTF(1, "\tBroadcast address change.\n");<br> OLSR_PRINTF(1, "\tOld: %s\n", olsr_ip_to_string(&buf, &OldVal));<br><br>regards Markus<br><br>p.s. can anyone verify if the openbsd port has no ipv4broadcast support for the same reason?<br>