Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Remove this check, it is already done at the beg...



details:   https://anonhg.NetBSD.org/src/rev/aefa1a9cc044
branches:  trunk
changeset: 359386:aefa1a9cc044
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Feb 08 19:25:48 2018 +0000

description:
Remove this check, it is already done at the beginning of the function.

diffstat:

 sys/netinet/tcp_input.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r af747ad159f6 -r aefa1a9cc044 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Thu Feb 08 19:16:24 2018 +0000
+++ b/sys/netinet/tcp_input.c   Thu Feb 08 19:25:48 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.366 2018/02/08 18:58:59 maxv Exp $     */
+/*     $NetBSD: tcp_input.c,v 1.367 2018/02/08 19:25:48 maxv Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.366 2018/02/08 18:58:59 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.367 2018/02/08 19:25:48 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1758,11 +1758,7 @@
                } else {
                        /*
                         * Received a SYN.
-                        *
-                        * RFC1122 4.2.3.10, p. 104: discard bcast/mcast SYN
                         */
-                       if (m->m_flags & (M_BCAST|M_MCAST))
-                               goto drop;
 
                        switch (af) {
 #ifdef INET6



Home | Main Index | Thread Index | Old Index