summaryrefslogtreecommitdiffstats
path: root/sys/netipx
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-03-25 14:29:03 +0000
committerrwatson <rwatson@FreeBSD.org>2006-03-25 14:29:03 +0000
commit2856a58cbd34cfee4e1c6f14e170922f5e740d7d (patch)
tree708d5f23b43945c7589dbd835bf067ceb08fedae /sys/netipx
parent4a5d9d5dd3dfb4c03c8d3ff47b1ac35206dcae01 (diff)
downloadFreeBSD-src-2856a58cbd34cfee4e1c6f14e170922f5e740d7d.zip
FreeBSD-src-2856a58cbd34cfee4e1c6f14e170922f5e740d7d.tar.gz
Slight style reformatting of spx_timers() comments; panic if an
unrecognized timer is passed into the function. MFC after: 1 month
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/spx_usrreq.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 8666c31..98d548c 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -1859,22 +1859,21 @@ spx_timers(struct spxpcb *cb, int timer)
cb->s_force = 1 + timer;
switch (timer) {
-
- /*
- * 2 MSL timeout in shutdown went off. TCP deletes connection
- * control block.
- */
case SPXT_2MSL:
+ /*
+ * 2 MSL timeout in shutdown went off. TCP deletes
+ * connection control block.
+ */
printf("spx: SPXT_2MSL went off for no reason\n");
cb->s_timer[timer] = 0;
break;
- /*
- * Retransmission timer went off. Message has not been acked within
- * retransmit interval. Back off to a longer retransmit interval and
- * retransmit one packet.
- */
case SPXT_REXMT:
+ /*
+ * Retransmission timer went off. Message has not been acked
+ * within retransmit interval. Back off to a longer
+ * retransmit interval and retransmit one packet.
+ */
if (++cb->s_rxtshift > SPX_MAXRXTSHIFT) {
cb->s_rxtshift = SPX_MAXRXTSHIFT;
spxstat.spxs_timeoutdrop++;
@@ -1950,6 +1949,9 @@ spx_timers(struct spxpcb *cb, int timer)
spx_drop(cb, ETIMEDOUT);
cb = NULL;
break;
+
+ default:
+ panic("spx_timers: unknown timer %d", timer);
}
return (cb);
}
OpenPOWER on IntegriCloud