Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 1997 22:20:07 +0300 (MSK)
From:      Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2657: ypserv thinks there is no computers in network 10.1.2.3 netmask 255.255.255.0
Message-ID:  <199702041920.WAA16049@arc.hq.cti.ru>
Resent-Message-ID: <199702041930.LAA06865@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2657
>Category:       bin
>Synopsis:       ypserv thinks there is no computers in network 10.1.2.3 netmask 255.255.255.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb  4 11:30:01 PST 1997
>Last-Modified:
>Originator:     Dmitrij Tejblum
>Organization:
CompTek International
>Release:        FreeBSD 2.2-BETA
>Environment:

	

>Description:

With /var/yp/securenets file like

127.0.0.1 255.255.255.255
10.1.2.3 255.255.255.0

ypserv refuses all questions. It is strange.

>How-To-Repeat:

See above

>Fix:
	
Apply this patch:

*** yp_access.c.orig	Mon Feb  3 13:13:43 1997
--- yp_access.c	Mon Feb  3 13:14:41 1997
***************
*** 168,173 ****
--- 168,175 ----
  			continue;
  		}
  
+ 		tmp->net.s_addr &= tmp->mask.s_addr;
+ 
  		tmp->next = securenets;
  		securenets = tmp;
  	}

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702041920.WAA16049>