From: Alan T. DeKok Date: Wed, 6 Jul 2022 14:17:09 +0000 (-0400) Subject: test for manual encoding of TLVs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5912e0039af44eef25079d0f6cbb8e77cd4205a;p=thirdparty%2Ffreeradius-server.git test for manual encoding of TLVs --- diff --git a/src/tests/xlat/expr.txt b/src/tests/xlat/expr.txt index 4adf3e7b08f..25606e8f6ec 100644 --- a/src/tests/xlat/expr.txt +++ b/src/tests/xlat/expr.txt @@ -112,7 +112,9 @@ match foo0x00000000000000000000000000000000 xlat_expr 'foo%{Packet-Authentication-Vector}' match foo%{Packet-Authentication-Vector} - +# Ad-hoc packing of TLVs! +xlat_expr (octets)((uint16) 258) + (octets)((uint16) 4) + (octets)((ipv4addr) 127.0.0.1) +match 0x010200047f000001 xlat_expr (uint16) ((uint32) 1 + (uint8) 2) match 3