-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Below is a test that fails on macOS 13.2.1 and earlier versions
Decode produces: Packet decoding error: Unable to decode EthernetType 34969
gopacket v1.1.19 — Oct 19, 2020
// ITEST= go test -v -run='^TestEthernet34969$' .
func TestEthernet34969(t *testing.T) {
// check environment
if _, ok := os.LookupEnv("ITEST"); !ok {
t.Skip("set env ITEST to run integration test")
}
// Unable to decode EthernetType 34969
var byts = []byte{255, 255, 255, 255, 255, 255, 216, 7, 182, 117, 112, 99, 136, 153, 37, 0, 0, 0, 216, 7, 182, 117,
110, 161, 0, 1, 0, 0, 0, 216, 7, 182, 117, 112, 99, 255, 3, 101, 246, 138, 187, 21, 50, 210, 94, 108, 0, 43, 126, 31,
225, 228, 134, 40, 171, 0, 90, 18, 134, 212}
packet := gopacket.NewPacket(byts, layers.LayerTypeEthernet, gopacket.Default)
t.Log(packet.String())
}
output:
ITEST= go test -v -run='^TestEthernet34969$' .
=== RUN TestEthernet34969
gopacket-decode_test.go:30: PACKET: 60 bytes
- Layer 1 (14 bytes) = Ethernet {Contents=[..14..] Payload=[..46..] SrcMAC=d8:07:b6:75:70:63 DstMAC=ff:ff:ff:ff:ff:ff EthernetType=UnknownEthernetType Length=0}
- Layer 2 (46 bytes) = DecodeFailure Packet decoding error: Unable to decode EthernetType 34969
[As a decade ago Zynga employee, postings that I make under my own name are often discredited or closed by San Francisco organized crime]
Metadata
Metadata
Assignees
Labels
No labels