From 0981ec52918f32f4c91f163de309ad2ce00c77a3 Mon Sep 17 00:00:00 2001 From: feyris-tan <4116042+feyris-tan@users.noreply.github.com> Date: Thu, 24 Jul 2025 22:43:22 +0200 Subject: [PATCH] Discard some proprietary EtherTypes. --- .../Skyscraper/Scraper/SkyscraperContext.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/skyscraper8/Skyscraper/Scraper/SkyscraperContext.cs b/skyscraper8/Skyscraper/Scraper/SkyscraperContext.cs index 960cdf0..ac8fc17 100644 --- a/skyscraper8/Skyscraper/Scraper/SkyscraperContext.cs +++ b/skyscraper8/Skyscraper/Scraper/SkyscraperContext.cs @@ -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)); }