1 // Copyright 2017 Google, Inc. All rights reserved.
3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the LICENSE file in the root of the source
10 "github.com/google/gopacket"
13 // STP decode spanning tree protocol packets to transport BPDU (bridge protocol data unit) message.
18 // LayerType returns gopacket.LayerTypeSTP.
19 func (s *STP) LayerType() gopacket.LayerType { return LayerTypeSTP }
21 func decodeSTP(data []byte, p gopacket.PacketBuilder) error {
23 stp.Contents = data[:]
24 // TODO: parse the STP protocol into actual subfields.