no need to check in_broadaddr/IN_MULTICAST in dropwithreset label.

suggested by enami
This commit is contained in:
itojun 2002-03-22 04:31:01 +00:00
parent 1a286b1407
commit bd5373f4e2
1 changed files with 2 additions and 7 deletions

View File

@ -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 <sys/cdefs.h>
__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