]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add support for -P
authorAlan T. DeKok <aland@freeradius.org>
Fri, 13 May 2011 08:38:53 +0000 (10:38 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 13 May 2011 08:38:53 +0000 (10:38 +0200)
src/main/radtest.in

index 729711acaf40f4793e2d7dd8c3c2cbdeda74dd83..cc2ae1277e987741f1be60561d2c1e02a77c8990 100644 (file)
@@ -15,6 +15,7 @@ usage() {
        echo "        -d RADIUS_DIR       Set radius directory" >&2
        echo "        -t <type>           Set authentication method" >&2
        echo "                            type can be pap, chap, mschap, or eap-md5" >&2
+       echo "        -P protocol         Select udp (default) or tcp" >&2
        echo "        -x                  Enable debug output" >&2
        echo "        -4                  Use IPv4 for the NAS address (default)" >&2
        echo "        -6                  Use IPv6 for the NAS address" >&2
@@ -58,6 +59,10 @@ do
                OPTIONS="$OPTIONS -d $2"
                shift;shift
                ;;
+       -P) 
+               OPTIONS="$OPTIONS -P $2"
+               shift;shift
+               ;;
        -x)
                OPTIONS="$OPTIONS -x"
                shift