Split off the pretty printing parts of tcpdump.c.

We'll need these pieces in the CHERI tcpdump helper and they seperate
fairly cleanly from the somewhat bloated main file.