diff options
| author | itojun <itojun@NetBSD.org> | 2002-03-22 04:31:01 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2002-03-22 04:31:01 +0000 |
| commit | bd5373f4e24a450e8a09964f2cecbdb2d57303e7 (patch) | |
| tree | acb7db38daeb2d3db52453fb89ba2c9e9fa848b1 /sys/netinet | |
| parent | 1a286b1407abff28d6732f41ba56104b0296a890 (diff) | |
no need to check in_broadaddr/IN_MULTICAST in dropwithreset label.
suggested by enami
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/tcp_input.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index e4c08485c22..08be5623f83 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 <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 |
