aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorCrist J. Clark <cjc@FreeBSD.org>2002-02-27 13:52:06 +0000
committerCrist J. Clark <cjc@FreeBSD.org>2002-02-27 13:52:06 +0000
commit93ec91ba6d5254d9a5152e7527e6db770a399258 (patch)
tree11b67bc19fc40a8f444eced5a90dd899fed9bb13 /sys/netinet
parentffddaaeeebccea06c128483efb44f209824f8cdc (diff)
downloadsrc-93ec91ba6d5254d9a5152e7527e6db770a399258.tar.gz
src-93ec91ba6d5254d9a5152e7527e6db770a399258.zip
Change the wording of the inline comments from the previous commit.
Objection from: ru
Notes
Notes: svn path=/head/; revision=91374
Diffstat (limited to 'sys/netinet')
-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 266d58746681..fbf64bd15396 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 266d58746681..fbf64bd15396 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;