scroot / gopacket

Automatically exported from code.google.com/p/gopacket
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

IPv6Destination is not registered in layers/enums.go #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
diff --git a/layers/enums.go b/layers/enums.go
index 6dbe811..62fde61 100644
--- a/layers/enums.go
+++ b/layers/enums.go
@@ -75,6 +75,7 @@ const (
        IPProtocolAH           IPProtocol = 51
        IPProtocolICMPv6       IPProtocol = 58
        IPProtocolNoNextHeader IPProtocol = 59
+       IPProtocolIPv6Destination IPProtocol = 60
        IPProtocolIPIP         IPProtocol = 94
        IPProtocolEtherIP      IPProtocol = 97
        IPProtocolSCTP         IPProtocol = 132
@@ -442,6 +443,7 @@ func init() {
        IPProtocolMetadata[IPProtocolIPv6HopByHop] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeIPv6HopByHop), Name: "IPv6HopByHop", LayerType: LayerTypeIPv6Hop
        IPProtocolMetadata[IPProtocolIPv6Routing] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeIPv6Routing), Name: "IPv6Routing", LayerType: LayerTypeIPv6Routin
        IPProtocolMetadata[IPProtocolIPv6Fragment] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeIPv6Fragment), Name: "IPv6Fragment", LayerType: LayerTypeIPv6Fra
+       IPProtocolMetadata[IPProtocolIPv6Destination] = 
EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeIPv6Destination), Name: 
"IPv6Destination", LayerType: LayerTy
        IPProtocolMetadata[IPProtocolAH] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeIPSecAH), Name: "IPSecAH", LayerType: LayerTypeIPSecAH}
        IPProtocolMetadata[IPProtocolESP] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeIPSecESP), Name: "IPSecESP", LayerType: LayerTypeIPSecESP}
        IPProtocolMetadata[IPProtocolUDPLite] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeUDPLite), Name: "UDPLite", LayerType: LayerTypeUDPLite}

Original issue reported on code.google.com by Hiroaki.Kawai@gmail.com on 25 Jul 2014 at 1:15

GoogleCodeExporter commented 9 years ago

Original comment by gconnell@google.com on 28 Jul 2014 at 4:20