Security · 58 tools · nothing uploads

Ethernet frame parser

Decode an Ethernet II frame: destination/source MAC, EtherType (unwrapping one 802.1Q VLAN tag if present), and payload length. IEEE 802.3 LLC/SNAP framing is not handled, only Ethernet II.

Input

Ethernet frame parser decodes an Ethernet II frame into destination MAC, source MAC, EtherType and the payload byte count, naming IPv4, ARP and IPv6 where it sees them. One 802.1Q or 802.1ad tag is unwrapped, printing PCP, DEI and VLAN ID before the inner type. Anything under 14 bytes is refused with the length you gave.

Questions

What does it show?

Destination and source MAC in colon notation, the EtherType with a name when it knows one, and the payload length in bytes. IPv4, ARP, IPv6 and both VLAN tag types are named; anything else is shown as a hex EtherType marked unknown.

Does it handle VLAN tags?

One tag, yes. If the EtherType is 802.1Q or 802.1ad it reads the tag control information and prints PCP, DEI and the VLAN ID, then reports the inner EtherType that follows. A second stacked tag is not unwrapped, so on Q-in-Q you see the outer tag and the inner type only.

Does it parse the payload too?

No, it stops at the header and counts the remaining bytes. To go further, take the payload bytes and drop them into the IPv4 / TCP / UDP header parser, which expects exactly that. If the payload is a TLS record rather than an IP packet, the TLS record parser does the same job.

Why did it refuse my file?

A frame shorter than 14 bytes cannot hold two MAC addresses and an EtherType, so it stops with the minimum and the length you gave. Note also that only Ethernet II framing is handled; IEEE 802.3 with LLC or SNAP headers is not.

Is the frame check sequence included in the payload count?

If your capture kept it, yes. The payload figure is the number of bytes left after the header, so any trailing FCS or padding your capture tool preserved is counted in it. The tool does not check an FCS and does not try to work out whether one is present.

Related Security tools

·→1Subnet / CIDR calculatorCompute network address, broadcast/last address and host count for an IPv4 or IPv6 CIDR block. Pure arithmetic on the address you give it. No lookup, no network.Takes no file·→1IP range parserParse an IPv4/IPv6 range ("start-end" or CIDR) into its address count and the minimal set of CIDR blocks that cover it exactly. Pure arithmetic, no lookup.Takes no file·→1IPv4/IPv6 format convertShow one IP address in every common representation (dotted/expanded, integer, and hex), computed locally.Takes no file·→1IPv6 transition addressesBuild IPv4-mapped/6to4/NAT64 IPv6 forms from an IPv4 address, or decode an IPv6 address back to its embedded IPv4 (and, for Teredo, server/client/port/flags). Reports what pattern was recognised, not whether the address is reachable or in use.Takes no filen→nIPv4 / TCP / UDP header parserDecode an IPv4 header, then its TCP or UDP header if the protocol field says so (checksum verified against the standard Internet checksum, not TCP/UDP's, which need a pseudo-header this tool is not given the source context to build). Give it bytes starting at the IP header, e.g. an Ethernet frame's payload.Runs on each file you dropn→nTLS record parserDecode a raw TLS record (RFC 8446 §5.1): content type, version, length, and for a ClientHello/ServerHello, the cipher suites/extensions inside. Give it bytes captured off the wire, not a PEM.Runs on each file you drop·→1MAC address formatterReformat a MAC address between colon, dash, Cisco dot-quad and bare-hex notation, and report the multicast/locally-administered bits.Takes no file·→1MAC / OUI vendor lookupLook up a MAC address's OUI against a small bundled table of 16 well-known prefixes, not the IEEE registry (2.9M+ entries, updated continuously, no offline way to bundle it here). "Not in bundled list" means exactly that, not "no vendor exists."Takes no file