diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-08-02 17:44:28 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2018-08-02 19:11:56 +0200 |
commit | 3a192e93923b2ce2fcb4046994d058e557259ced (patch) | |
tree | 6fa241179597a7b2aec04263c3beffe61a353866 | |
parent | d4f878f583acae9d6c5f5301c1e857f115cfc8fb (diff) |
OptClientArchType
-rw-r--r-- | dhcpv4/options_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dhcpv4/options_test.go b/dhcpv4/options_test.go index 0617eb7..73b344b 100644 --- a/dhcpv4/options_test.go +++ b/dhcpv4/options_test.go @@ -96,6 +96,14 @@ func TestParseOption(t *testing.T) { require.Equal(t, OptionUserClassInformation, opt.Code(), "Code") require.Equal(t, 5, opt.Length(), "Length") require.Equal(t, option, opt.ToBytes(), "ToBytes") + + // Option client system architecture type option + option = []byte{93, 4, 't', 'e', 's', 't'} + opt, err = ParseOption(option) + require.NoError(t, err) + require.Equal(t, OptionClientSystemArchitectureType, opt.Code(), "Code") + require.Equal(t, 4, opt.Length(), "Length") + require.Equal(t, option, opt.ToBytes(), "ToBytes") } func TestParseOptionZeroLength(t *testing.T) { |