From 953ff8643c74df0595f4e8127ae23b35332a1530 Mon Sep 17 00:00:00 2001 From: jlemon Date: Thu, 21 Aug 1997 19:53:04 +0000 Subject: Convert nets specified with -i/-n to network byte order. PR: 3906, 3801 Submitted by: Bob Willcox , Hiroya Tsubakimoto --- usr.sbin/timed/timed/timed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/timed/timed/timed.c b/usr.sbin/timed/timed/timed.c index 997e492..2c129de 100644 --- a/usr.sbin/timed/timed/timed.c +++ b/usr.sbin/timed/timed/timed.c @@ -42,7 +42,7 @@ static char sccsid[] = "@(#)timed.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.2 $" +#ident "$Revision: 1.3 $" #endif /* sgi */ #define TSPTYPES @@ -452,7 +452,7 @@ main(argc, argv) ntp->dest_addr.sin_port = port; for (nt = nets; nt; nt = nt->next) { - if (ntp->net.s_addr == nt->net) + if (ntp->net.s_addr == htonl(nt->net)) break; } if (nflag && !nt || iflag && nt) -- cgit v1.1