]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
libafscp fixes
authorDerrick Brashear <shadow@dementia.org>
Fri, 15 Apr 2011 17:34:14 +0000 (13:34 -0400)
committerDerrick Brashear <shadow@dementix.org>
Fri, 9 Sep 2011 17:12:15 +0000 (10:12 -0700)
fix callback package in libafscp to track addresses correctly (use
correct byte order)

Reviewed-on: http://gerrit.openafs.org/4474
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 25a46780fc0e9f64010cc06826e5753567c16647)

Change-Id: I71fed5388074b3ca33c374e57a921ff3f4f2e410
Reviewed-on: http://gerrit.openafs.org/5381
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/libafscp/afscp_callback.c
src/libafscp/afscp_server.c

index f803e22919c9f939582db9d0be1018729f824234..32db5fb95246ce1f3f7bb818f84a80eb15004c08 100644 (file)
@@ -307,7 +307,7 @@ SRXAFSCB_CallBack(struct rx_call * rxcall, AFSCBFids * Fids_Array,
 {
     struct rx_connection *rxconn = rx_ConnectionOf(rxcall);
     struct rx_peer *rxpeer = rx_PeerOf(rxconn);
-    struct afscp_server *server = afscp_AnyServerByAddr(rxpeer->host);
+    struct afscp_server *server = afscp_AnyServerByAddr(rx_HostOf(rxpeer));
     struct afscp_callback *cb;
     struct afscp_venusfid f;
     struct AFSFid *fid;
@@ -351,7 +351,7 @@ SRXAFSCB_InitCallBackState(struct rx_call * rxcall)
 {
     struct rx_connection *rxconn = rx_ConnectionOf(rxcall);
     struct rx_peer *rxpeer = rx_PeerOf(rxconn);
-    struct afscp_server *server = afscp_AnyServerByAddr(rxpeer->host);
+    struct afscp_server *server = afscp_AnyServerByAddr(rx_HostOf(rxpeer));
     struct afscp_callback *cb;
     struct afscp_venusfid f;
     int i;
@@ -594,7 +594,7 @@ SRXAFSCB_InitCallBackState3(struct rx_call * rxcall, afsUUID * serverUuid)
 {
     struct rx_connection *rxconn = rx_ConnectionOf(rxcall);
     struct rx_peer *rxpeer = rx_PeerOf(rxconn);
-    struct afscp_server *server = afscp_AnyServerByAddr(rxpeer->host);
+    struct afscp_server *server = afscp_AnyServerByAddr(rx_HostOf(rxpeer));
     struct afscp_callback *cb;
     struct afscp_venusfid f;
     int i;
index 826ef9800e3762a462de727ba1df32ea0f613c54..bb56f8d6d4c1ea6884761fb5c847fba5ec8967b9 100644 (file)
@@ -332,6 +332,7 @@ afscp_ServerById(struct afscp_cell *thecell, afsUUID * u)
     return ret;
 }
 
+/* takes server in host byte order */
 struct afscp_server *
 afscp_ServerByAddr(struct afscp_cell *thecell, afs_uint32 addr)
 {
@@ -433,6 +434,7 @@ afscp_ServerByAddr(struct afscp_cell *thecell, afs_uint32 addr)
     return ret;
 }
 
+/* takes server in host byte order */
 struct afscp_server *
 afscp_AnyServerByAddr(afs_uint32 addr)
 {