Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-05-2011, 11:41 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Question Looking for tcpdump syntax to start hex output at a given byte offset in the packet

I hope this is the right forum. Thanks in advance for any help.

At work we are porting some software from Solaris to CentOs/Red Hat. I'd like my test scripts that parse some snoop hex output to work with tcpdump output, but I've come upon a stumbling block (though there are other workarounds).

When using snoop, I can enter the following command to get the packet data starting at byte 42:
snoop -x42 udp port 3210
With tcpdump, I have the -x option, but I can't figure out how to get the packet output to start at byte 42. Is this possible?

Old 08-06-2011, 06:03 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Not that I'm aware of .. happy to be corrected though


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] converting byte in hex in kernel ano Linux - Kernel 3 12-21-2010 10:52 AM
tcpdump -x option shows hex as well as ascii rooky Programming 2 11-25-2009 07:16 AM
LBA address to actual byte offset x0563511 Linux - Hardware 3 02-25-2009 06:14 PM
Hex output of a hex/ascii input string mlewis Programming 35 04-10-2008 12:05 PM
sending a 512 byte packet geo_h Programming 0 09-20-2003 11:58 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration