diff options
author | jlemon <jlemon@FreeBSD.org> | 1997-08-21 19:53:04 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 1997-08-21 19:53:04 +0000 |
commit | 953ff8643c74df0595f4e8127ae23b35332a1530 (patch) | |
tree | e612a9978772919ce51835b6dfe8ddc4a89813f1 | |
parent | 35caaa5c561041db54bfb1abad6b9cc6ebfde56b (diff) | |
download | FreeBSD-src-953ff8643c74df0595f4e8127ae23b35332a1530.zip FreeBSD-src-953ff8643c74df0595f4e8127ae23b35332a1530.tar.gz |
Convert nets specified with -i/-n to network byte order.
PR: 3906, 3801
Submitted by: Bob Willcox <bob@luke.pmr.com>, Hiroya Tsubakimoto
-rw-r--r-- | usr.sbin/timed/timed/timed.c | 4 |
1 files 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) |