(uint32) &Service-Type
has the cast omitted, as Service-Type is already uint32
However, the cast is still useful, as we may want to print the
integer value of Service-Type!
So we have to do:
(uint32) (&Service-Type)
which is a bit stupid
xlat_expr 5 + 5 - 10
match ((5 + 5) - 10)
+#
+# This is arguably wrong
+#
+xlat_expr (integer) &Service-Type
+match &Service-Type
+
+xlat_expr (uint32) (&Service-Type)
+match %(cast:uint32 &Service-Type)
+
count
-match 65
+match 69
#
xlat_expr (octets) %md5(&User-Name)
match 0x9f9d51bc70ef21ca5c14f307980a29d8
+
+xlat_expr &Service-Type
+match Framed-User
+
+xlat_expr (uint32) (&Service-Type)
+match 2
User-Name = "bob"
User-Password = "hello"
NAS-Identifier = "test"
+Service-Type = ::Framed-User