LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2011, 11:41 AM   #1
silentquasar
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:
Code:
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?

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:32 AM.

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