On Wed, Jan 30, 2002 at 03:37:58PM -0700, Jeremy Wadsack wrote: > > KEVIN ZEMBOWER ([EMAIL PROTECTED]): > > > One of the things which was disquieting to me while trying to > > troubleshoot my problems with TCP and UDP ports was the inability to > > check what options I had compiled with using "amadmin <conf> version". > > I've pasted in the results of my system at the end of this message. It > > seemed like many other compile time definitions were listed in the > > "defs" section. I initially doubted whether I had compiled it right, > > because "--with-udpportrange=932,948" and > > "--with-tcpportrange=10080,10100" didn't appear. I believe that this > > section is output in some of the routine logging files, also. > > > Just my suggestion. Wasn't sure if I could or should submit this to the > > amanda-dev list, since I don't subscribe to it. > > > -Kevin Zembower > > > amanda@admin:~ > amadmin DailySet1 version > > build: VERSION="Amanda-2.4.3b1" > > BUILT_DATE="Fri Jan 4 11:18:53 EST 2002" > > BUILT_MACH="Linux admin 2.4.4-64GB-SMP #1 SMP Fri May 18 > > 14:54:08 GMT 2001 i686 unknown" > > CC="gcc" > > paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin" > > libexecdir="/usr/local/libexec" mandir="/usr/local/man" > > AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda" > > CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/" > > RDEV_PREFIX="/dev/" DUMP="/sbin/dump" > > RESTORE="/sbin/restore" SAMBA_CLIENT="/usr/bin/smbclient" > > GNUTAR="/bin/tar" COMPRESS_PATH="/usr/bin/gzip" > > UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail" > > listed_incr_dir="/usr/local/var/amanda/gnutar-lists" > > defs: DEFAULT_SERVER="admin" DEFAULT_CONFIG="DailySet1" > > DEFAULT_TAPE_SERVER="admin" > > DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM > > LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE > > AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS > > CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP > > COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast" > > COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
does this help. or is this exactly what is not nead, how far do we go? this could end up being a big mess. diff -u -r1.28 genversion.c --- common-src/genversion.c 2001/03/20 00:27:18 1.28 +++ common-src/genversion.c 2002/01/31 00:10:13 @@ -116,6 +116,13 @@ const char *v; char *verstr; int v_len; +#ifdef TCPPORTRANGE + char tcp_port_range[12]; +#endif + +#ifdef UDPPORTRANGE + char udp_port_range[12]; +#endif printf("/* version.c - generated by genversion.c - DO NOT EDIT! */\n"); printf("const char * const version_info[] = {\n"); @@ -340,6 +347,16 @@ #ifdef UNCOMPRESS_OPT prvar("UNCOMPRESS_OPT", UNCOMPRESS_OPT); +#endif + +#ifdef TCPPORTRANGE + snprintf(tcp_port_range, 12, "%d,%d", TCPPORTRANGE); + prvar("TCPPORTRANGE", tcp_port_range); +#endif + +#ifdef UDPPORTRANGE + snprintf(udp_port_range, 12, "%d,%d", UDPPORTRANGE); + prvar("UDPPORTRANGE", udp_port_range); #endif endline();