fix: simple typo

This commit is contained in:
Afzal Najam 2026-02-13 14:04:41 -05:00 committed by GitHub
parent a0bcbf6a44
commit b1b0c3ecea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func FindProtocol(p []byte) (layers.IPProtocol, error) {
// Next header is in the 7th byte of IPv6 header // Next header is in the 7th byte of IPv6 header
return layers.IPProtocol(p[6]), nil return layers.IPProtocol(p[6]), nil
default: default:
return 0, fmt.Errorf("unknow ip version %d", version) return 0, fmt.Errorf("unknown ip version %d", version)
} }
} }
@ -105,7 +105,7 @@ func (pd *IPDecoder) decodeByVersion(packet []byte) ([]gopacket.LayerType, error
case 6: case 6:
err = pd.v6parser.DecodeLayers(packet, &decoded) err = pd.v6parser.DecodeLayers(packet, &decoded)
default: default:
err = fmt.Errorf("unknow ip version %d", version) err = fmt.Errorf("unknown ip version %d", version)
} }
if err != nil { if err != nil {
return nil, err return nil, err