diff --git a/dist/am-utils/amd/amq_subr.c b/dist/am-utils/amd/amq_subr.c index 985def702691..127108989457 100644 --- a/dist/am-utils/amd/amq_subr.c +++ b/dist/am-utils/amd/amq_subr.c @@ -1,4 +1,5 @@ -/* $NetBSD: amq_subr.c,v 1.2 2000/06/16 02:10:12 dogcow Exp $ */ +/* $NetBSD: amq_subr.c,v 1.3 2000/11/20 00:02:56 wiz Exp $ */ + /* * Copyright (c) 1997-2000 Erez Zadok * Copyright (c) 1990 Jan-Simon Pendry @@ -39,7 +40,7 @@ * * %W% (Berkeley) %G% * - * Id: amq_subr.c,v 1.6 2000/01/12 16:44:16 ezk Exp + * Id: amq_subr.c,v 1.6 2000/01/12 16:44:16 ezk Exp * */ /* diff --git a/dist/am-utils/amd/srvr_nfs.c b/dist/am-utils/amd/srvr_nfs.c index 405ae7726a35..08d2aa8eaa8c 100644 --- a/dist/am-utils/amd/srvr_nfs.c +++ b/dist/am-utils/amd/srvr_nfs.c @@ -1,4 +1,5 @@ -/* $NetBSD: srvr_nfs.c,v 1.2 2000/06/16 02:10:12 dogcow Exp $ */ +/* $NetBSD: srvr_nfs.c,v 1.3 2000/11/20 00:02:56 wiz Exp $ */ + /* * Copyright (c) 1997-2000 Erez Zadok * Copyright (c) 1990 Jan-Simon Pendry @@ -39,7 +40,7 @@ * * %W% (Berkeley) %G% * - * Id: srvr_nfs.c,v 1.6 2000/01/12 16:44:26 ezk Exp + * Id: srvr_nfs.c,v 1.7 2000/02/16 13:52:57 ezk Exp * */ @@ -673,6 +674,17 @@ find_nfs_srvr(mntfs *mf) } #endif /* HAVE_NFS_NFSV2_H */ + /* check if we globally overridden the NFS version/protocol */ + if (gopt.nfs_vers) { + nfs_version = gopt.nfs_vers; + plog(XLOG_INFO, "find_nfs_srvr: force NFS version to %d", + (int) nfs_version); + } + if (gopt.nfs_proto) { + nfs_proto = gopt.nfs_proto; + plog(XLOG_INFO, "find_nfs_srvr: force NFS protocol to %s", nfs_proto); + } + /* * lookup host address and canonical name */ diff --git a/dist/am-utils/fsinfo/fsinfo.c b/dist/am-utils/fsinfo/fsinfo.c index 55ed5e119a8e..d044fba46976 100644 --- a/dist/am-utils/fsinfo/fsinfo.c +++ b/dist/am-utils/fsinfo/fsinfo.c @@ -1,4 +1,5 @@ -/* $NetBSD: fsinfo.c,v 1.2 2000/06/16 02:10:13 dogcow Exp $ */ +/* $NetBSD: fsinfo.c,v 1.3 2000/11/20 00:03:15 wiz Exp $ */ + /* * Copyright (c) 1997-2000 Erez Zadok * Copyright (c) 1989 Jan-Simon Pendry @@ -39,7 +40,7 @@ * * %W% (Berkeley) %G% * - * Id: fsinfo.c,v 1.5 2000/01/12 16:44:59 ezk Exp + * Id: fsinfo.c,v 1.5 2000/01/12 16:44:59 ezk Exp * */ diff --git a/dist/am-utils/include/amq_defs.h b/dist/am-utils/include/amq_defs.h index 048b761e2903..4edd8b76bfeb 100644 --- a/dist/am-utils/include/amq_defs.h +++ b/dist/am-utils/include/amq_defs.h @@ -1,4 +1,5 @@ -/* $NetBSD: amq_defs.h,v 1.2 2000/06/16 02:10:13 dogcow Exp $ */ +/* $NetBSD: amq_defs.h,v 1.3 2000/11/20 00:03:16 wiz Exp $ */ + /* * Copyright (c) 1997-2000 Erez Zadok * Copyright (c) 1990 Jan-Simon Pendry @@ -39,7 +40,7 @@ * * %W% (Berkeley) %G% * - * Id: amq_defs.h,v 1.4 2000/01/12 16:45:05 ezk Exp + * Id: amq_defs.h,v 1.4 2000/01/12 16:45:05 ezk Exp * */ diff --git a/dist/am-utils/libamu/wire.c b/dist/am-utils/libamu/wire.c index 446e143984af..6731df9b6fa1 100644 --- a/dist/am-utils/libamu/wire.c +++ b/dist/am-utils/libamu/wire.c @@ -1,4 +1,5 @@ -/* $NetBSD: wire.c,v 1.2 2000/06/16 02:10:13 dogcow Exp $ */ +/* $NetBSD: wire.c,v 1.3 2000/11/20 00:03:16 wiz Exp $ */ + /* * Copyright (c) 1997-2000 Erez Zadok * Copyright (c) 1990 Jan-Simon Pendry @@ -39,7 +40,7 @@ * * %W% (Berkeley) %G% * - * Id: wire.c,v 1.8 2000/02/07 08:35:29 ezk Exp + * Id: wire.c,v 1.8.2.2 2000/06/09 20:16:26 ezk Exp * */ @@ -61,7 +62,6 @@ #include #include - #ifdef HAVE_IFADDRS_H #include #endif /* HAVE_IFADDRS_H */ @@ -170,7 +170,17 @@ getwire_lookup(u_long address, u_long netmask, int ishost) u_char addr[4]; if (irs_gen == NULL) +#ifdef irs_irp_acc + /* + * bsdi4 added another argument to this function, without changing + * its name. The irs_irp_acc is the one (hacky) distinguishing + * feature found in that can differentiate between bsdi3 and + * bsdi4. + */ irs_gen = irs_gen_acc("", NULL); +#else /* not irs_irp_acc */ + irs_gen = irs_gen_acc(""); +#endif /* not irs_irp_acc */ if (irs_gen && irs_nw == NULL) irs_nw = (*irs_gen->nw_map)(irs_gen); net = ntohl(address) & (mask = ntohl(netmask));