summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcjc <cjc@FreeBSD.org>2002-02-27 13:52:06 +0000
committercjc <cjc@FreeBSD.org>2002-02-27 13:52:06 +0000
commit822f4e83812cbe6fa9e185b3f796166fe9db0484 (patch)
tree11b67bc19fc40a8f444eced5a90dd899fed9bb13 /sys
parentd56a374cacbd7e5f7e35bde56fe44b4699b6ccfb (diff)
downloadFreeBSD-src-822f4e83812cbe6fa9e185b3f796166fe9db0484.zip
FreeBSD-src-822f4e83812cbe6fa9e185b3f796166fe9db0484.tar.gz
Change the wording of the inline comments from the previous commit.
Objection from: ru
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_input.c11
-rw-r--r--sys/netinet/tcp_reass.c11
2 files changed, 6 insertions, 16 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 266d587..fbf64bd 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -799,14 +799,9 @@ findpcb:
/*
* RFC1122 4.2.3.10, p. 104: discard bcast/mcast SYN
*
- * It is possible for a malicious (or misconfigured)
- * attacker to send unicast link-layer packets with a
- * broadcast IP address. Use in_broadcast() to find them.
- * (This check was erroneously removed in CSRG revision
- * 7.35.)
- *
- * Packets with a multicast source address should also
- * be discarded.
+ * Note that it is quite possible to receive unicast
+ * link-layer packets with a broadcast IP address. Use
+ * in_broadcast() to find them.
*/
if (m->m_flags & (M_BCAST|M_MCAST))
goto drop;
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 266d587..fbf64bd 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -799,14 +799,9 @@ findpcb:
/*
* RFC1122 4.2.3.10, p. 104: discard bcast/mcast SYN
*
- * It is possible for a malicious (or misconfigured)
- * attacker to send unicast link-layer packets with a
- * broadcast IP address. Use in_broadcast() to find them.
- * (This check was erroneously removed in CSRG revision
- * 7.35.)
- *
- * Packets with a multicast source address should also
- * be discarded.
+ * Note that it is quite possible to receive unicast
+ * link-layer packets with a broadcast IP address. Use
+ * in_broadcast() to find them.
*/
if (m->m_flags & (M_BCAST|M_MCAST))
goto drop;
OpenPOWER on IntegriCloud