Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using the -x flag with ngrep causes the data portion of packets to be displayed in hex. Is there a way to also display the frames/headers as well?

share|improve this question
up vote 1 down vote accepted

It seems that ngrep does not show/search within the packets headers. From man ngrep, you can read from ngrep description:

ngrep is a pcap-aware tool that will  allow  you to  specify
extended  regular  expressions to match against data payloads of packets.

I could not find any option to show the headers. It would be better to use tcpdump if you want more details like headers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.