Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa Remove bogus check for bogus netmask.



details:   https://anonhg.NetBSD.org/src/rev/5b127303ed23
branches:  trunk
changeset: 543452:5b127303ed23
user:      ragge <ragge%NetBSD.org@localhost>
date:      Tue Feb 25 14:42:30 2003 +0000

description:
Remove bogus check for bogus netmask.

diffstat:

 sys/lib/libsa/bootp.c |  11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diffs (25 lines):

diff -r 3ab775680844 -r 5b127303ed23 sys/lib/libsa/bootp.c
--- a/sys/lib/libsa/bootp.c     Tue Feb 25 13:47:44 2003 +0000
+++ b/sys/lib/libsa/bootp.c     Tue Feb 25 14:42:30 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootp.c,v 1.22 2002/03/20 23:10:39 thorpej Exp $       */
+/*     $NetBSD: bootp.c,v 1.23 2003/02/25 14:42:30 ragge Exp $ */
 
 /*
  * Copyright (c) 1992 Regents of the University of California.
@@ -225,15 +225,6 @@
                printf("'native netmask' is %s\n", intoa(nmask));
 #endif
 
-       /* Check subnet mask against net mask; toss if bogus */
-       if ((nmask & smask) != nmask) {
-#ifdef BOOTP_DEBUG
-               if (debug)
-                       printf("subnet mask (%s) bad\n", intoa(smask));
-#endif
-               smask = 0;
-       }
-
        /* Get subnet (or natural net) mask */
        netmask = nmask;
        if (smask)



Home | Main Index | Thread Index | Old Index