Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/netinet Pull up revision 1.75 (requested by itojun):



details:   https://anonhg.NetBSD.org/src/rev/b865b865d635
branches:  netbsd-1-5
changeset: 493033:b865b865d635
user:      he <he%NetBSD.org@localhost>
date:      Wed Apr 03 21:16:45 2002 +0000

description:
Pull up revision 1.75 (requested by itojun):
  Reject TCP SYN packets sent to the broadcast address.

diffstat:

 sys/netinet/in.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c7a1fb2407f7 -r b865b865d635 sys/netinet/in.c
--- a/sys/netinet/in.c  Sat Mar 30 22:06:47 2002 +0000
+++ b/sys/netinet/in.c  Wed Apr 03 21:16:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in.c,v 1.61.4.3 2000/10/17 00:45:36 tv Exp $   */
+/*     $NetBSD: in.c,v 1.61.4.4 2002/04/03 21:16:45 he Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -928,6 +928,7 @@
 #define ia (ifatoia(ifa))
        for (ifa = ifp->if_addrlist.tqh_first; ifa; ifa = ifa->ifa_list.tqe_next)
                if (ifa->ifa_addr->sa_family == AF_INET &&
+                   !in_hosteq(in, ia->ia_addr.sin_addr) &&
                    (in_hosteq(in, ia->ia_broadaddr.sin_addr) ||
                     in_hosteq(in, ia->ia_netbroadcast) ||
                     (hostzeroisbroadcast && 



Home | Main Index | Thread Index | Old Index