From 4aef908c92c8530222fe547c154e2ee45a130b1b Mon Sep 17 00:00:00 2001 From: Bruno Dal Bo Date: Sat, 12 Dec 2020 09:05:43 -0800 Subject: Introduce IPv6 extension header serialization facilities Adds IPv6 extension header serializer and Hop by Hop options serializer. Add RouterAlert option serializer and use it in MLD. Fixed #4996 Startblock: has LGTM from marinaciocea and then add reviewer ghanan PiperOrigin-RevId: 347174537 --- test/packetimpact/testbench/layers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/packetimpact/testbench/layers.go') diff --git a/test/packetimpact/testbench/layers.go b/test/packetimpact/testbench/layers.go index dcff4ab36..19e6b8d7d 100644 --- a/test/packetimpact/testbench/layers.go +++ b/test/packetimpact/testbench/layers.go @@ -505,13 +505,13 @@ func (l *IPv6) ToBytes() ([]byte, error) { } } if l.NextHeader != nil { - fields.NextHeader = *l.NextHeader + fields.TransportProtocol = tcpip.TransportProtocolNumber(*l.NextHeader) } else { nh, err := nextHeaderByLayer(l.next()) if err != nil { return nil, err } - fields.NextHeader = nh + fields.TransportProtocol = tcpip.TransportProtocolNumber(nh) } if l.HopLimit != nil { fields.HopLimit = *l.HopLimit -- cgit v1.2.3