summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/testbench/layers_test.go
diff options
context:
space:
mode:
authorJulian Elischer <jrelis@google.com>2020-08-14 02:05:23 -0700
committergVisor bot <gvisor-bot@google.com>2020-08-14 02:07:36 -0700
commit190634e0fcf4cf25a449e1bd39533ca2ddad66e6 (patch)
tree9fcd438bcdf162d3e3c1bf7954b8a50baf1e7b2c /test/packetimpact/testbench/layers_test.go
parentd6520e1d0592f99161faedef3eba49439b140917 (diff)
Give the ICMP Code its own type
This is a preparatory commit for a larger commit working on ICMP generation in error cases. This is removal of technical debt and cleanup in the gvisor code as part of gvisor issue 2211. Updates #2211. PiperOrigin-RevId: 326615389
Diffstat (limited to 'test/packetimpact/testbench/layers_test.go')
-rw-r--r--test/packetimpact/testbench/layers_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packetimpact/testbench/layers_test.go b/test/packetimpact/testbench/layers_test.go
index a2a763034..eca0780b5 100644
--- a/test/packetimpact/testbench/layers_test.go
+++ b/test/packetimpact/testbench/layers_test.go
@@ -594,7 +594,7 @@ func TestIPv6ExtHdrOptions(t *testing.T) {
},
&ICMPv6{
Type: ICMPv6Type(header.ICMPv6ParamProblem),
- Code: Byte(0),
+ Code: ICMPv6Code(header.ICMPv6ErroneousHeader),
Checksum: Uint16(0x5f98),
Payload: []byte{0x00, 0x00, 0x00, 0x06},
},