summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-11-09 12:55:07 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-11-09 12:55:07 +0000
commit29f194457c9434cec11a95c9e1a22981b37e1c23 (patch)
tree00d1b1f343ceacaa4c61b263e81e4f79e7449948 /sys/netinet/tcp_syncache.c
parente07c0ca6c8efe78c9b32a682e5b2238a6a116f8f (diff)
Notes
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 8426a63c5a69..772713c0ef84 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