Commit Graph

4 Commits

Author SHA1 Message Date
Guy Harris
7865163989 Speak of MAC-48s rather than MAC or Ethernet addresses.
Not all MAC-48s are Ethernet addresses; a lot of them are IEEE 802.11
addresses, for example.

Use the IEEE term.
2023-07-14 00:27:39 -07:00
Francois-Xavier Le Bail
59d37c7ec5 Fix spaces before tabs in indentation 2023-02-15 13:19:03 +01:00
Guy Harris
1af6dea412 realtek: redo the checks for different protocols.
Do it iwth an if chain, which is somewhat the equivalent of what
Wireshark does (it uses heuristic dissectors; our ifs do the same checks
that Wireshark's heuristic dissectors do).

That makes it a bit more obvious that the necessary tests are somewhat
weird, thanks to Realtek not just deciding to make the first octet a
protocol discriminator *even for switch tags*.

We also treat a first octet of 0x23 as meanin RLDP, just as Wireshark
does, as some switch chips use 0x23 for loop detection packets.

Shuffle some comments while we're at it (and epand the one for RLDP to
match all the stuff going on with various RLDP packets).
2022-01-25 23:43:57 -08:00
Guy Harris
a10ab62bf4 Rename print-rrcp.c to print-realtek.c.
It handles more than just RRCP, so rename it appropriately.
2022-01-23 01:46:20 -08:00