Removed last vestiges of NAS-Port-Id meaning the integer attribute
authoraland <aland>
Fri, 19 Dec 2003 19:46:47 +0000 (19:46 +0000)
committeraland <aland>
Fri, 19 Dec 2003 19:46:47 +0000 (19:46 +0000)
src/include/radius.h
src/lib/print.c

index 881a26b..7a79b44 100644 (file)
 #define        PW_CHAP_PASSWORD                3
 #define        PW_NAS_IP_ADDRESS               4
 #define        PW_NAS_PORT                     5
-/*
- *  FIXME: We should remove this...
- */
-#define        PW_NAS_PORT_ID                  5
 #define        PW_SERVICE_TYPE                 6
 #define        PW_FRAMED_PROTOCOL              7
 #define        PW_FRAMED_IP_ADDRESS            8
index eb8d8b4..0a840bf 100644 (file)
@@ -110,7 +110,11 @@ int vp_prints_value(char * out, int outlen, VALUE_PAIR *vp, int delimitst)
 
        switch (vp->type) {
                case PW_TYPE_STRING:
-                       if (vp->attribute == PW_NAS_PORT_ID)
+                       /*
+                        *  NAS-Port may have multiple integer values?
+                        *  This is an internal server extension...
+                        */
+                       if (vp->attribute == PW_NAS_PORT)
                                a = (char *)vp->strvalue;
                        else {
                                if (delimitst && vp->flags.has_tag) {