[Spread-cvs] cvs commit: spread/daemon Readme.txt network.c

jonathan at spread.org jonathan at spread.org
Wed Jul 16 16:44:32 EDT 2003


jonathan    03/07/16 16:44:32

  Modified:    daemon   Readme.txt network.c
  Log:
  Fix bug when host has multiple interfaces and configures multiple "D"
  interfaces in spread.conf. Update Readme.txt.
  
  Revision  Changes    Path
  1.36      +7 -0      spread/daemon/Readme.txt
  
  Index: Readme.txt
  ===================================================================
  RCS file: /storage/cvsroot/spread/daemon/Readme.txt,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- Readme.txt	19 Jun 2003 23:18:34 -0000	1.35
  +++ Readme.txt	16 Jul 2003 20:44:32 -0000	1.36
  @@ -49,6 +49,13 @@
   | Version 3.17.1 Built 20/June/2003                                         |
   \===========================================================================/
   
  +Current Fixes:
  +--------------
  +*) Fix daemon quit when multiple interfaces are configured as "D" daemon 
  +interfaces in the spread.conf file. Bug reported by Orit Wasserman.
  +*) Updated url for Java 'ant' build system. Patch by Daniel Rall.
  +
  +
   June 20, 2003 Ver 3.17.1
   ----------------------------
   Bugfixes:
  
  
  
  1.9       +4 -1      spread/daemon/network.c
  
  Index: network.c
  ===================================================================
  RCS file: /storage/cvsroot/spread/daemon/network.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- network.c	22 Sep 2002 02:56:52 -0000	1.8
  +++ network.c	16 Jul 2003 20:44:32 -0000	1.9
  @@ -90,6 +90,7 @@
   	proc		dummy_proc;
           int32u          interface_addr;
           int             i;
  +        bool            bcast_bound = FALSE;
   
   	Cn = Conf();
   	My = Conf_my();
  @@ -125,8 +126,10 @@
                                   interface_addr = 0;
                           else {
                                   interface_addr = My.ifc[i].ip;
  -                                if (Bcast_needed) 
  +                                if (Bcast_needed && !bcast_bound) {
                                       Bcast_channel[Num_bcast_channels++] = DL_init_channel( RECV_CHANNEL, My.port, Bcast_address, Bcast_address );
  +                                    bcast_bound = TRUE;
  +                                }
                           }
                           Bcast_channel[Num_bcast_channels++] = DL_init_channel( RECV_CHANNEL, My.port, Bcast_address, interface_addr );
                           Token_channel[Num_token_channels++] = DL_init_channel( RECV_CHANNEL, My.port+1, 0, interface_addr );
  
  
  




More information about the Spread-cvs mailing list