From 8d747419d43348773975d02f79aa9df55e886fe2 Mon Sep 17 00:00:00 2001 From: aland Date: Mon, 11 Mar 2002 18:50:06 +0000 Subject: [PATCH] Update help messages for 'radclient' to say how to specify a port Patch from bj@zuto.de (Rainer Clasen) --- man/man1/radtest.1 | 3 ++- src/main/radclient.c | 2 +- src/main/radtest.in | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/man/man1/radtest.1 b/man/man1/radtest.1 index 5927c40..d230562 100644 --- a/man/man1/radtest.1 +++ b/man/man1/radtest.1 @@ -27,7 +27,8 @@ Username to send. Password of the user. .IP radius-server -Hostname or IP address of the radius server. +Hostname or IP address of the radius server. Optionally, you may specify a +port by appending :port .IP nas-port-id The value of the NAS-Port-Id attribute. Is an integer between 0 and 2^31, diff --git a/src/main/radclient.c b/src/main/radclient.c index 9b9ebc8..2858cf7 100644 --- a/src/main/radclient.c +++ b/src/main/radclient.c @@ -106,7 +106,7 @@ static VALUE_PAIR *readvp(FILE *fp) static void usage(void) { fprintf(stderr, "Usage: radclient [-c count] [-d raddb] [-f file] [-r retries] [-t timeout]\n" - "[-i id] [-qvxS] server acct|auth []\n"); + "[-i id] [-qvxS] server[:port] acct|auth []\n"); fprintf(stderr, " -c count Send each packet 'count' times.\n"); fprintf(stderr, " -d raddb Set dictionary directory.\n"); diff --git a/src/main/radtest.in b/src/main/radtest.in index 75e017b..1f207f6 100644 --- a/src/main/radtest.in +++ b/src/main/radtest.in @@ -11,7 +11,7 @@ exec_prefix="@exec_prefix@" bindir="@bindir@" usage() { - echo "Usage: radtest user passwd radius-server nas-port-id secret [ppphint] [nasname]" >&2 + echo "Usage: radtest user passwd radius-server[:port] nas-port-id secret [ppphint] [nasname]" >&2 exit 1 } -- 2.1.4