]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-rx-send-req-ack-20070516
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Wed, 16 May 2007 21:37:47 +0000 (21:37 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 16 May 2007 21:37:47 +0000 (21:37 +0000)
FIXES 60046

change reply code where appropriate

(cherry picked from commit a900fe30894b5c1bf3a55f2f539179c75c177dad)

src/rx/rx.c

index ada4df8268933ac60a14a9db94212b04471138d2..f6837a7251474c5f3cbd78f091990b87be4825a3 100644 (file)
@@ -3359,9 +3359,11 @@ rxi_ReceiveDataPacket(register struct rx_call *call,
 
            /* We need to send an ack of the packet is out of sequence, 
             * or if an ack was requested by the peer. */
-           if (seq != prev + 1 || missing || (flags & RX_REQUEST_ACK)) {
+           if (seq != prev + 1 || missing) {
                ackNeeded = RX_ACK_OUT_OF_SEQUENCE;
-           }
+           } else if (flags & RX_REQUEST_ACK) {
+               ackNeeded = RX_ACK_REQUESTED;
+            }
 
            /* Acknowledge the last packet for each call */
            if (flags & RX_LAST_PACKET) {