#  -*- 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: 6821181cfa9fb5ecca3215e62b9abafee2e21fd1 $
#

proto dhcpv6
proto-dictionary dhcpv6
fuzzer-out dhcpv6

#
#  Array of 16bit integers
#
encode-pair Client-Arch-Type = x86-BIOS, Client-Arch-Type = ARM-64-Uboot
match 00 3d 00 04 00 00 00 16

decode-pair -
match Client-Arch-Type = ::x86-BIOS, Client-Arch-Type = ::ARM-64-Uboot

#
#  Two different arrays of 16bit integers
#
encode-pair Client-Arch-Type = x86-BIOS, Client-Arch-Type = ARM-64-Uboot, S46-Priority = DS-Lite, S46-Priority = MAP-E
match 00 3d 00 04 00 00 00 16 00 6f 00 04 00 40 00 5e

decode-pair -
match Client-Arch-Type = ::x86-BIOS, Client-Arch-Type = ::ARM-64-Uboot, S46-Priority = ::DS-Lite, S46-Priority = ::MAP-E

#
#  Array type with one element
#
encode-pair Client-Arch-Type = x86-BIOS
match 00 3d 00 02 00 00

decode-pair -
match Client-Arch-Type = ::x86-BIOS

#
#  Array of IPv6 addresses
#
encode-pair SIP-Server-Address = 2001:db8:85a3::8a2e:370:7334, SIP-Server-Address = 2001:db8:85a3::8a2e:370:7335, SIP-Server-Address = 2001:4860:4860::8888
match 00 16 00 30 20 01 0d b8 85 a3 00 00 00 00 8a 2e 03 70 73 34 20 01 0d b8 85 a3 00 00 00 00 8a 2e 03 70 73 35 20 01 48 60 48 60 00 00 00 00 00 00 00 00 88 88

decode-pair -
match SIP-Server-Address = 2001:db8:85a3::8a2e:370:7334, SIP-Server-Address = 2001:db8:85a3::8a2e:370:7335, SIP-Server-Address = 2001:4860:4860::8888

count
match 19
