tsharkto let the computer do what it's good at. Here's the
~/.gdbinitsnippet if you want to use it:
(obviously change "
dgoodell" to your user name or stick the file in your home directory, environment variables don't work in GDB, unfortunately)
The results look like:
That's also way easier to read on x86 than casting to a
struct ether_header *, etc. and dereferencing, especially on x86 because all the fields end up displayed in the wrong endianness.