rx: connection aborts send serial zero when no conn available 32/12932/3
authorJeffrey Altman <jaltman@auristor.com>
Fri, 23 Feb 2018 23:47:46 +0000 (18:47 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Sat, 14 Apr 2018 01:39:53 +0000 (21:39 -0400)
When no connection object is available, send serial number zero (0)
instead of one (1).  There is no harm in sending one (1) but it might
be confused as the first packet sent on the connection.  Multiple
connection aborts sent would all be sent with serial one (1).

Serial number zero (0) can be an indication to humans reading packet
traces that the sender has no knowledge of the connection.

Change-Id: I1951284f810170bd130e4f1d8ed93b903cd66659
Reviewed-on: https://gerrit.openafs.org/12932
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/rx/rx.c

index 698be10..e84cf32 100644 (file)
@@ -3425,7 +3425,7 @@ rxi_ReceivePacket(struct rx_packet *np, osi_socket socket,
        don't abort an abort. */
     if (!conn) {
         if (unknownService && (np->header.type != RX_PACKET_TYPE_ABORT))
-           rxi_SendRawAbort(socket, host, port, 1, RX_INVALID_OPERATION,
+           rxi_SendRawAbort(socket, host, port, 0, RX_INVALID_OPERATION,
                              np, 0);
         return np;
     }