From: Alan T. DeKok Date: Sun, 4 Feb 2024 15:24:09 +0000 (-0500) Subject: Add foreign tests to DHCPv6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27cc08e0003dba62f07ad2d127ee578d4adfad8a;p=thirdparty%2Ffreeradius-server.git Add foreign tests to DHCPv6 --- diff --git a/share/dictionary/dhcpv6/dictionary.rfc7037 b/share/dictionary/dhcpv6/dictionary.rfc7037 index 27437c8f5e5..9f5d435c2f0 100644 --- a/share/dictionary/dhcpv6/dictionary.rfc7037 +++ b/share/dictionary/dhcpv6/dictionary.rfc7037 @@ -10,4 +10,4 @@ # ############################################################################## -ATTRIBUTE RADIUS 81 octets # group ref=..RADIUS +ATTRIBUTE RADIUS 81 group ref=..RADIUS diff --git a/src/tests/unit/protocols/dhcpv6/bools.txt b/src/tests/unit/protocols/dhcpv6/bools.txt index 75143db39f2..b60f9174811 100644 --- a/src/tests/unit/protocols/dhcpv6/bools.txt +++ b/src/tests/unit/protocols/dhcpv6/bools.txt @@ -9,9 +9,6 @@ proto dhcpv6 proto-dictionary dhcpv6 fuzzer-out dhcpv6 -#decode-pair 005100085a04030019fc0000005100087f040300190301c5 -#match raw.RADIUS = 0x5a04030019fc0000, raw.RADIUS = 0x7f040300190301c5 - # # True values are encoded by using an empty attribute. # diff --git a/src/tests/unit/protocols/dhcpv6/foreign.txt b/src/tests/unit/protocols/dhcpv6/foreign.txt new file mode 100644 index 00000000000..d571b2a3ca4 --- /dev/null +++ b/src/tests/unit/protocols/dhcpv6/foreign.txt @@ -0,0 +1,22 @@ +# -*- text -*- +# Copyright (C) 2019 Network RADIUS SARL (legal@networkradius.com) +# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0 +# +# Version $Id$ +# + +proto dhcpv6 +proto-dictionary dhcpv6 +fuzzer-out dhcpv6 + +decode-pair 005100085a04030019fc0000005100087f040300190301c5 +match raw.RADIUS = 0x5a04030019fc0000, raw.RADIUS = 0x7f040300190301c5 + +encode-pair RADIUS = { User-Name = "bob" } +match 00 51 00 05 01 05 62 6f 62 + +decode-pair - +match RADIUS = { User-Name = "bob" } + +count +match 9