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/7b3d3132867e
branches:  trunk
changeset: 829687:7b3d3132867e
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 f6adeb958da7 -r 7b3d3132867e 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