commit: r370 - branches/branch_3_17/daemon
[email protected] Fri, 17 Nov 2006 14:31:06 -0500
| Newsgroups | gmane.network.spread.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: jonathan Date: 2006-11-17 14:31:06 -0500 (Fri, 17 Nov 2006) New Revision: 370 Modified: branches/branch_3_17/daemon/Changelog branches/branch_3_17/daemon/network.c Log: Do not bind to broadcast address on windows,as it is not permitted. Sockets bound to specific interfaces on windows will also receive broadcasts. Bug reported by Michael Chelnokov. Modified: branches/branch_3_17/daemon/Changelog =================================================================== --- branches/branch_3_17/daemon/Changelog 2006-11-17 18:47:07 UTC (rev 369) +++ branches/branch_3_17/daemon/Changelog 2006-11-17 19:31:06 UTC (rev 370) @@ -1,3 +1,10 @@ +Fri Nov 17 13:43:42 2006 Jonathan Stanton <[email protected]> + + * network.c (Net_init): Do not bind to broadcast address + on windows,as it is not permitted. Sockets bound to specific + interfaces on windows will also receive broadcasts. Bug + reported by Michael Chelnokov. + Wed Nov 15 10:27:33 2006 Jonathan Stanton <[email protected]> * sp.c (connect_nointr_timeout): Move wait_timeout Modified: branches/branch_3_17/daemon/network.c =================================================================== --- branches/branch_3_17/daemon/network.c 2006-11-17 18:47:07 UTC (rev 369) +++ branches/branch_3_17/daemon/network.c 2006-11-17 19:31:06 UTC (rev 370) @@ -130,7 +130,9 @@ else { interface_addr = My.ifc[i].ip; if (Bcast_needed && !bcast_bound) { +#ifndef ARCH_PC_WIN95 Bcast_channel[Num_bcast_channels++] = DL_init_channel( RECV_CHANNEL, My.port, Bcast_address, Bcast_address ); +#endif bcast_bound = TRUE; } }