Discard some proprietary EtherTypes.

This commit is contained in:
feyris-tan 2025-07-24 22:43:22 +02:00
parent 35785e186f
commit 0981ec5291

View File

@ -66,6 +66,7 @@ using skyscraper8.yo3explorer;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
@ -2748,6 +2749,22 @@ namespace skyscraper5.Skyscraper.Scraper
//3Com(Bridge) XNS Sys Mgmt
//Can't say anything about these. I don't have any 3Com equipment.
return;
case 0x94ce:
//Something proprietary. No idea.
return;
case 0xb69d:
//Something proprietary. No idea.
return;
case 0xf67f:
if (contents[20] == 0xaa && contents[21] == 0xaa && contents[22] == 0x03 && contents[23] == 0x00 && contents[24] == 0x00 && contents[25] == 0x00)
{
(contents[26], contents[27]) = (contents[27], contents[26]);
ushort newEtherType = BitConverter.ToUInt16(contents, 26);
byte[] newPacket = new byte[contents.Length - 28];
Array.Copy(contents, 28, newPacket, 0, newPacket.Length);
OnEthernetFrame(pid, destination, source, newEtherType, newPacket);
}
return;
default:
throw new NotImplementedException(String.Format("EtherType: 0x{0:X4}", etherType));
}