From: James Jones Date: Thu, 7 Apr 2022 20:33:11 +0000 (-0500) Subject: Add test for RFC 3495; this exercises nested TLVs (#4448) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b86f942f08b05fca975d390a8b5f39ba7ce3c15;p=thirdparty%2Ffreeradius-server.git Add test for RFC 3495; this exercises nested TLVs (#4448) --- diff --git a/src/tests/unit/protocols/dhcpv4/rfc3495.txt b/src/tests/unit/protocols/dhcpv4/rfc3495.txt new file mode 100644 index 0000000000..044f3da365 --- /dev/null +++ b/src/tests/unit/protocols/dhcpv4/rfc3495.txt @@ -0,0 +1,15 @@ +# +# Test vectors for DHCP attributes +# +proto dhcpv4 +proto-dictionary dhcpv4 +fuzzer-out dhcpv4 + +encode-pair CCC = { Ticket-Granting-Server-Utilization = yes, Provisioning-Server = { FQDN = "example.com", Address = 192.168.0.1 } } +match 7a 1a 07 01 01 03 15 00 0d 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 01 04 c0 a8 00 01 + +decode-pair - +match CCC.Ticket-Granting-Server-Utilization = yes, raw.CCC.Provisioning-Server = 0x000d076578616d706c6503636f6d000104c0a80001 + +count +match 7