#  -*- 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: 93a07005ed447f010080495aaad31dd37c21a5a0 $
#

proto dhcpv6
proto-dictionary dhcpv6
fuzzer-out dhcpv6

#
#  Simple data types
#
encode-pair MIP6-Home-Net-Prefix = 2a00:1:1:100::/56
match 00 47 00 08 38 2a 00 00 01 00 01 01

decode-pair -
match MIP6-Home-Net-Prefix = 2a00:1:1:100::/56

#
#  And with the prefix length just over a byte boundary
#
encode-pair MIP6-Home-Net-Prefix = 2a00:1:1:100::/57
match 00 47 00 09 39 2a 00 00 01 00 01 01 00

decode-pair -
match MIP6-Home-Net-Prefix = 2a00:1:1:100::/57

#
#  And with the prefix length just under a byte boundary
#
encode-pair MIP6-Home-Net-Prefix = 2a00:1:1:100::/55
match 00 47 00 08 37 2a 00 00 01 00 01 00

decode-pair -
match MIP6-Home-Net-Prefix = 2a00:1:1::/55

count
match 15
