summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index 8426a63..772713c 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -179,14 +179,14 @@ static MALLOC_DEFINE(M_SYNCACHE, "syncache", "TCP syncache");
#define ENDPTS6_EQ(a, b) (memcmp(a, b, sizeof(*a)) == 0)
-#define SYNCACHE_TIMEOUT(sc, slot) do { \
- sc->sc_rxtslot = slot; \
- sc->sc_rxttime = ticks + TCPTV_RTOBASE * tcp_backoff[slot]; \
- TAILQ_INSERT_TAIL(&tcp_syncache.timerq[slot], sc, sc_timerq); \
- if (!callout_active(&tcp_syncache.tt_timerq[slot])) \
- callout_reset(&tcp_syncache.tt_timerq[slot], \
- TCPTV_RTOBASE * tcp_backoff[slot], \
- syncache_timer, (void *)((intptr_t)slot)); \
+#define SYNCACHE_TIMEOUT(sc, slot) do { \
+ sc->sc_rxtslot = (slot); \
+ sc->sc_rxttime = ticks + TCPTV_RTOBASE * tcp_backoff[(slot)]; \
+ TAILQ_INSERT_TAIL(&tcp_syncache.timerq[(slot)], sc, sc_timerq); \
+ if (!callout_active(&tcp_syncache.tt_timerq[(slot)])) \
+ callout_reset(&tcp_syncache.tt_timerq[(slot)], \
+ TCPTV_RTOBASE * tcp_backoff[(slot)], \
+ syncache_timer, (void *)((intptr_t)(slot))); \
} while (0)
static void
OpenPOWER on IntegriCloud