Update help messages for 'radclient' to say how to specify a port
authoraland <aland>
Mon, 11 Mar 2002 18:50:06 +0000 (18:50 +0000)
committeraland <aland>
Mon, 11 Mar 2002 18:50:06 +0000 (18:50 +0000)
Patch from bj@zuto.de (Rainer Clasen)

man/man1/radtest.1
src/main/radclient.c
src/main/radtest.in

index 5927c40..d230562 100644 (file)
@@ -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,
index 9b9ebc8..2858cf7 100644 (file)
@@ -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 [<secret>]\n");
+                       "[-i id] [-qvxS] server[:port] acct|auth [<secret>]\n");
        
        fprintf(stderr, " -c count    Send each packet 'count' times.\n");
        fprintf(stderr, " -d raddb    Set dictionary directory.\n");
index 75e017b..1f207f6 100644 (file)
@@ -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
 }