Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161145076
D51721.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D51721.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D51721: tcp: ensure that tcp_dropwithreset() has expected rstreason
Attached
Detach File
Event Timeline
Log In to Comment