pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/spread Add a fix for multi homed configurations.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b24fe6f75c07
branches:  trunk
changeset: 459971:b24fe6f75c07
user:      recht <recht%pkgsrc.org@localhost>
date:      Wed Aug 13 19:46:24 2003 +0000

description:
Add a fix for multi homed configurations.
By Jonathan Stanton on spread-users@.

diffstat:

 net/spread/distinfo         |   3 ++-
 net/spread/patches/patch-bf |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r b45f19eddfe3 -r b24fe6f75c07 net/spread/distinfo
--- a/net/spread/distinfo       Wed Aug 13 19:46:23 2003 +0000
+++ b/net/spread/distinfo       Wed Aug 13 19:46:24 2003 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2003/08/09 13:07:41 recht Exp $
+$NetBSD: distinfo,v 1.4 2003/08/13 19:46:24 recht Exp $
 
 SHA1 (spread-src-3.17.1.tar.gz) = c316370aa565ec76e67ed3c6bcceba1702395f56
 Size (spread-src-3.17.1.tar.gz) = 290861 bytes
 SHA1 (patch-ba) = 90f2896dc62627772a05c06add99c59a55e91c88
 SHA1 (patch-bb) = efd9b08d775542622ce35265e2b72d655b5ca00f
 SHA1 (patch-bd) = 5d09d5e182cb2bf52f6366ff02e4f73dcd067e5e
+SHA1 (patch-bf) = 6b5bf8086d6366ac9b52e7351c0c062f236e8c7d
diff -r b45f19eddfe3 -r b24fe6f75c07 net/spread/patches/patch-bf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/spread/patches/patch-bf       Wed Aug 13 19:46:24 2003 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-bf,v 1.1 2003/08/13 19:46:24 recht Exp $
+
+--- network.c.orig     2002-09-22 04:56:52.000000000 +0200
++++ network.c  2003-08-13 21:34:39.000000000 +0200
+@@ -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 );



Home | Main Index | Thread Index | Old Index