[Olsr-dev] ipv4Broadcast for windows olsrd
Markus Kittenberger
(spam-protected)
Sat Mar 15 18:33:31 CET 2008
Hi
In vienna we extensifely use ipvbroadcast option, but windows (and openbsd)
olsrd do not support it,.. (resulting in limited olsrd connectivity of them)
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,..
Now i found time to look into the source code,..
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,..
Follwoing patch should correct this,..
As i can`t compile the windows olsrd,..
Can anyone try this patch for me, pls?
--- ifnet.c 2008-01-04 14:29:26.000000000 +0100
+++ ifnet.n 2008-03-15 18:22:28.000000000 +0100
@@ -911,7 +911,7 @@
OLSR_PRINTF(3, "\tBroadcast address: %s\n", olsr_ip_to_string(&buf,
&NewVal));
#endif
- if (NewVal.v4.s_addr != OldVal.v4.s_addr)
+ if ((NewVal.v4.s_addr != OldVal.v4.s_addr) &&
(IntConf->cnf->ipv4_broadcast.v4.s_addr == 0))
{
OLSR_PRINTF(1, "\tBroadcast address change.\n");
OLSR_PRINTF(1, "\tOld: %s\n", olsr_ip_to_string(&buf, &OldVal));
regards Markus
p.s. can anyone verify if the openbsd port has no ipv4broadcast support for
the same reason?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20080315/9f215f00/attachment.html>
More information about the Olsr-dev
mailing list