]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use :: for enum names
authorAlan T. DeKok <aland@freeradius.org>
Sat, 18 Jan 2025 23:03:49 +0000 (18:03 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 19 Jan 2025 01:52:15 +0000 (20:52 -0500)
src/bin/radwho.c

index d52e7bf28a84139b6a990018cd2c45aedef358e3..662d3989b029604b3fd63b9e35fb94f7023b5b29 100644 (file)
@@ -460,7 +460,7 @@ int main(int argc, char **argv)
                        fr_snprint(buffer, sizeof(buffer), session_id, -1, '"');
                        printf("Acct-Session-Id = \"%s\"\n", buffer);
 
-                       if (zap) printf("Acct-Status-Type = Stop\n");
+                       if (zap) printf("Acct-Status-Type = ::Stop\n");
 
                        printf("NAS-IP-Address = %s\n",
                               hostname(buffer, sizeof(buffer),
@@ -469,17 +469,17 @@ int main(int argc, char **argv)
 
                        switch (rt.proto) {
                        case 'S':
-                               printf("Service-Type = Framed-User\n");
-                               printf("Framed-Protocol = SLIP\n");
+                               printf("Service-Type = ::Framed-User\n");
+                               printf("Framed-Protocol = ::SLIP\n");
                                break;
 
                        case 'P':
-                               printf("Service-Type = Framed-User\n");
-                               printf("Framed-Protocol = PPP\n");
+                               printf("Service-Type = ::Framed-User\n");
+                               printf("Framed-Protocol = ::PPP\n");
                                break;
 
                        default:
-                               printf("Service-type = Login-User\n");
+                               printf("Service-type = ::Login-User\n");
                                break;
                        }
                        if (rt.framed_address != INADDR_NONE) {