diff options
author | Emanuele Fia <name29@fb.com> | 2022-03-31 20:38:34 +0100 |
---|---|---|
committer | Emanuele Fia <name29@fb.com> | 2022-03-31 20:38:34 +0100 |
commit | 07cc76ec259f5fff3e81e11b340167a690bca9a1 (patch) | |
tree | c00d41eb17168b1ff9498f9a12a79db6aa6e2625 /dhcpv6/dhcpv6_test.go | |
parent | 3c283ff8b7dd3a8ea2dbc37d13a35bba7aab00e5 (diff) |
Extending support for more interface types in parse_circuit_id
Adding support for DHCPv6 for Ciena
Signed-off-by: Emanuele Fia <name29@fb.com>
Diffstat (limited to 'dhcpv6/dhcpv6_test.go')
-rw-r--r-- | dhcpv6/dhcpv6_test.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dhcpv6/dhcpv6_test.go b/dhcpv6/dhcpv6_test.go index b1f952d..cd235f1 100644 --- a/dhcpv6/dhcpv6_test.go +++ b/dhcpv6/dhcpv6_test.go @@ -133,6 +133,31 @@ func TestFromAndToBytes(t *testing.T) { expected := [][]byte{ {01, 0xab, 0xcd, 0xef, 0x00, 0x00, 0x00, 0x00}, []byte("0000\x00\x01\x00\x0e\x00\x01000000000000"), + { + 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x09, 0x00, 0x72, 0x01, 0x00, + 0x00, 0x01, 0x00, 0x01, 0x00, 0x12, 0x00, 0x00, + 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x44, 0x48, + 0x00, 0x06, 0x00, 0x0a, 0x00, 0x3b, 0x00, 0x17, + 0x00, 0x02, 0x00, 0x0c, 0x00, 0x38, 0x00, 0x08, + 0x00, 0x02, 0xff, 0xff, 0x00, 0x0f, 0x00, 0x15, + 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x2e, 0x30, 0x30, 0x35, 0x32, 0x00, 0x10, 0x00, + 0x17, 0x00, 0x00, 0x00, 0x01, 0x00, 0x11, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x03, 0x00, 0x0c, 0x1a, 0x8e, 0xee, 0x04, + 0x00, 0x00, 0x0e, 0x10, 0x00, 0x00, 0x15, 0x18, + 0x00, 0x35, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00}, } t.Parallel() for i, packet := range expected { |