Subject: bin/2961: The -n flag of timed doesn't work
To: None <gnats-bugs@gnats.netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: netbsd-bugs
Date: 11/25/1996 19:43:04
>Number: 2961
>Category: bin
>Synopsis: The -n flag of timed doesn't work
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 25 10:50:02 1996
>Last-Modified:
>Originator: Juergen Hannken-Illjes
>Organization:
TU Braunschweig, EIS
>Release: tar-balls as of Nov 23, 1996<NetBSD-current source date>
>Environment:
System: NetBSD home 1.2B NetBSD 1.2B (CUSTOM) #9: Mon Nov 25 16:37:48 MET 1996 hannken@home:/usr/src/sys/arch/i386/compile/CUSTOM i386
>Description:
timed's -n flag doesn't work if network byte order and host byte order
are different.
>How-To-Repeat:
try the -n flag
>Fix:
RCS file: /cvs/NetBSD/src/usr.sbin/timed/timed/timed.c,v
retrieving revision 1.1.1.1
diff -u -2 -r1.1.1.1 timed.c
--- timed.c 1996/07/01 15:25:26 1.1.1.1
+++ timed.c 1996/11/25 18:42:16
@@ -453,5 +453,5 @@
for (nt = nets; nt; nt = nt->next) {
- if (ntp->net.s_addr == nt->net)
+ if (ntohl(ntp->net.s_addr) == nt->net)
break;
}
>Audit-Trail:
>Unformatted: