[OpenAFS-devel] patch for ubik/beacon.c

Hartmut Reuter reuter@rzg.mpg.de
Wed, 18 Aug 2004 14:57:18 +0200


Playing around with multi-address database servers on little-endian 
machines
I found out that there is one conversion of the ip-address too much:

/afs/ipp/.cs/openmrafs/openafs/src/ubik: cvs diff
cvs diff: Diffing .
Index: beacon.c
===================================================================
RCS file: /afs/ipp/CVS/openmrafs/openafs/src/ubik/beacon.c,v
retrieving revision 1.5
diff -u -r1.5 beacon.c
--- beacon.c    22 Jun 2004 11:13:51 -0000      1.5
+++ beacon.c    18 Aug 2004 12:27:13 -0000
@@ -570,7 +570,7 @@
         for (i = 0; i < totalServers; i++) {
             if (info)
                 tmpAddr =
-                   ntohl((afs_uint32) info->hostAddr[i].sin_addr.s_addr);
+                   (afs_uint32) info->hostAddr[i].sin_addr.s_addr;
             else
                 tmpAddr = aservers[i];
             if (myAddr[j] == tmpAddr) {
/afs/ipp/.cs/openmrafs/openafs/src/ubik:

Hartmut
-----------------------------------------------------------------
Hartmut Reuter                           e-mail reuter@rzg.mpg.de
					   phone +49-89-3299-1328
RZG (Rechenzentrum Garching)               fax   +49-89-3299-1301
Computing Center of the Max-Planck-Gesellschaft (MPG) and the
Institut fuer Plasmaphysik (IPP)
-----------------------------------------------------------------