diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1997-04-13 21:25:51 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1997-04-13 21:25:51 +0000 |
commit | b37124026e9750afdf29bdaf16030ecc4e7dfc15 (patch) | |
tree | a8839c11b75a4c9418b66f599c2b4a0c1596574d /usr.sbin/named | |
parent | 7b96f320b0e975487768b954efccc69ee93a6f68 (diff) |
use res_random.c for ids
Diffstat (limited to 'usr.sbin/named')
-rw-r--r-- | usr.sbin/named/dig/Makefile | 4 | ||||
-rw-r--r-- | usr.sbin/named/host/host.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/named/dig/Makefile b/usr.sbin/named/dig/Makefile index a85b88cf6e1..13307071f27 100644 --- a/usr.sbin/named/dig/Makefile +++ b/usr.sbin/named/dig/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 1997/03/14 03:40:32 downsj Exp $ +# $OpenBSD: Makefile,v 1.5 1997/04/13 21:25:34 provos Exp $ # $NetBSD: Makefile,v 1.2 1996/03/31 13:55:34 mrg Exp $ # from: $Id: Makefile,v 8.1 1994/12/15 06:23:45 vixie Exp @@ -9,7 +9,7 @@ PROG= dig SRCS= dig.c list.c subr.c debug.c send.c base64.c gethostnamadr.c res_comp.c \ res_debug.c res_init.c res_mkquery.c res_query.c res_send.c \ - inet_ntop.c inet_pton.c + res_random.c inet_ntop.c inet_pton.c CFLAGS+=${INCLUDE} ${CONFIG} -DDEBUG .include <bsd.prog.mk> diff --git a/usr.sbin/named/host/host.c b/usr.sbin/named/host/host.c index c5b1a4d95bc..48c1d8396cc 100644 --- a/usr.sbin/named/host/host.c +++ b/usr.sbin/named/host/host.c @@ -1,4 +1,4 @@ -/* $OpenBSD: host.c,v 1.2 1997/03/12 10:41:53 downsj Exp $ */ +/* $OpenBSD: host.c,v 1.3 1997/04/13 21:25:50 provos Exp $ */ /* * Copyright (c) 1985, 1989 Regents of the University of California. @@ -540,7 +540,7 @@ input char *argv[]; _res.retrans = DEF_RETRANS; /* timeout in secs between retries */ /* initialize packet id */ - _res.id = getpid() & 0x7fff; + _res.id = res_randomid(); /* save new defaults */ new_res = _res; |