From bd5373f4e24a450e8a09964f2cecbdb2d57303e7 Mon Sep 17 00:00:00 2001 From: itojun Date: Fri, 22 Mar 2002 04:31:01 +0000 Subject: [PATCH] no need to check in_broadaddr/IN_MULTICAST in dropwithreset label. suggested by enami --- sys/netinet/tcp_input.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index e4c08485c224..08be5623f835 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_input.c,v 1.138 2002/03/22 03:21:13 itojun Exp $ */ +/* $NetBSD: tcp_input.c,v 1.139 2002/03/22 04:31:01 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -152,7 +152,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.138 2002/03/22 03:21:13 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.139 2002/03/22 04:31:01 itojun Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -2250,11 +2250,6 @@ dropwithreset: if (tiflags & TH_RST) goto drop; - if (af == AF_INET && - (IN_MULTICAST(ip->ip_dst.s_addr) || - in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif))) - goto drop; - { /* * need to recover version # field, which was overwritten on