Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 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
add comment

Your Answer

 
discard

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.