Skip to content

Commit d67ddb9

Browse files
ATpiugconnell
authored andcommitted
Update parser.go
the same issue in Example usage should also be corrected and the url is https://godoc.org/github.com/google/gopacket
1 parent 3de64ff commit d67ddb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func NewDecodingLayerParser(first LayerType, decoders ...DecodingLayer) *Decodin
116116
// decodedLayers := make([]gopacket.LayerType, 0, 10)
117117
// for {
118118
// data, _, err := source.ReadPacketData()
119-
// if err == nil {
119+
// if err != nil {
120120
// fmt.Println("Error reading packet data: ", err)
121121
// continue
122122
// }

0 commit comments

Comments
 (0)