Page MenuHomeFreeBSD

D51721.diff
No OneTemporary

D51721.diff

diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -3493,7 +3493,14 @@
if (tp != NULL) {
INP_LOCK_ASSERT(tptoinpcb(tp));
}
-
+ /*
+ * If more than one TCP specific rstreason should be supported,
+ * ensure that no side channel is opened. In particular, consider
+ * possible interactions with tcp_send_challenge_ack().
+ * XXXMT: should we remove support for BANDLIM_UNLIMITED?
+ */
+ KASSERT(rstreason == BANDLIM_UNLIMITED || rstreason == BANDLIM_TCP_RST,
+ ("%s: unexpected rstreason %d", __func__, rstreason));
/* Don't bother if destination was broadcast/multicast. */
if ((tcp_get_flags(th) & TH_RST) || m->m_flags & (M_BCAST|M_MCAST))
goto drop;

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 1, 11:14 PM (36 m, 18 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34580356
Default Alt Text
D51721.diff (751 B)

Event Timeline