From 9492662dae0651fd4d6698d35b58ade7300e149e Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Sat, 29 Dec 2018 09:16:15 -0800 Subject: dhcpv4: simplify marshaling options to binary. - Consolidate writing the option code and length to Options.Marshal rather than doing it in each individual option. - Use uio in marshaling code. --- dhcpv4/option_bootfile_name_test.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'dhcpv4/option_bootfile_name_test.go') diff --git a/dhcpv4/option_bootfile_name_test.go b/dhcpv4/option_bootfile_name_test.go index 2671ac5..76f60f4 100644 --- a/dhcpv4/option_bootfile_name_test.go +++ b/dhcpv4/option_bootfile_name_test.go @@ -17,8 +17,6 @@ func TestOptBootfileNameToBytes(t *testing.T) { } data := opt.ToBytes() expected := []byte{ - 67, // OptionBootfileName - 9, // length 'l', 'i', 'n', 'u', 'x', 'b', 'o', 'o', 't', } require.Equal(t, expected, data) -- cgit v1.2.3