Date: Wed, 31 Jan 1996 17:00:05 -0800 (PST) From: Bill Fenner <fenner@parc.xerox.com> To: freebsd-bugs Subject: Re: bin/982: Bogus output from netstat -r Message-ID: <199602010100.RAA00494@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/982; it has been noted by GNATS.
From: Bill Fenner <fenner@parc.xerox.com>
To: joerg_wunsch@interface-business.de
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/982: Bogus output from netstat -r
Date: Wed, 31 Jan 1996 16:50:26 PST
How-To-Repeat:
run routed in a non-class A network.
Joerg, please try this routed patch.
Index: inet.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/routed/inet.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 inet.c
*** inet.c 1994/05/26 06:39:03 1.1.1.1
--- inet.c 1996/02/01 00:46:53
***************
*** 143,155 ****
} else if (IN_CLASSA(i)) {
mask = IN_CLASSA_NET;
} else if (IN_CLASSB(i)) {
! mask = i & IN_CLASSB_NET;
} else
! mask = i & IN_CLASSC_NET;
/*
* Check whether network is a subnet;
! * if so, use the modified interpretation of `host'.
*/
for (ifp = ifnet; ifp; ifp = ifp->int_next)
if ((ifp->int_netmask & i) == ifp->int_net)
--- 143,155 ----
} else if (IN_CLASSA(i)) {
mask = IN_CLASSA_NET;
} else if (IN_CLASSB(i)) {
! mask = IN_CLASSB_NET;
} else
! mask = IN_CLASSC_NET;
/*
* Check whether network is a subnet;
! * if so, use the modified interpretation of `subnet'.
*/
for (ifp = ifnet; ifp; ifp = ifp->int_next)
if ((ifp->int_netmask & i) == ifp->int_net)
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602010100.RAA00494>
