]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add test for RFC 3495; this exercises nested TLVs (#4448)
authorJames Jones <jejones3141@gmail.com>
Thu, 7 Apr 2022 20:33:11 +0000 (15:33 -0500)
committerGitHub <noreply@github.com>
Thu, 7 Apr 2022 20:33:11 +0000 (16:33 -0400)
src/tests/unit/protocols/dhcpv4/rfc3495.txt [new file with mode: 0644]

diff --git a/src/tests/unit/protocols/dhcpv4/rfc3495.txt b/src/tests/unit/protocols/dhcpv4/rfc3495.txt
new file mode 100644 (file)
index 0000000..044f3da
--- /dev/null
@@ -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