]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make Client-NDI (code 94) a struct, add test, move to appropriate dictionary. (#4434)
authorJames Jones <jejones3141@gmail.com>
Mon, 21 Mar 2022 21:08:03 +0000 (16:08 -0500)
committerGitHub <noreply@github.com>
Mon, 21 Mar 2022 21:08:03 +0000 (17:08 -0400)
src/tests/unit/protocols/dhcpv4/rfc4578.txt [new file with mode: 0644]

diff --git a/src/tests/unit/protocols/dhcpv4/rfc4578.txt b/src/tests/unit/protocols/dhcpv4/rfc4578.txt
new file mode 100644 (file)
index 0000000..e332b64
--- /dev/null
@@ -0,0 +1,15 @@
+#
+#  Test vectors for DHCP attributes
+#
+proto dhcpv4
+proto-dictionary dhcpv4
+fuzzer-out dhcpv4
+
+encode-pair Client-NDI = { Type = 1, Major = 2, Minor = 1 }
+match 5e 03 01 02 01
+
+decode-pair -
+match Client-NDI = { Type = 1, Major = 2, Minor = 1 }
+
+count
+match 7