Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to capture packet headers but not the payload in tcpdump?

Reply
Thread Tools Display Modes

how to capture packet headers but not the payload in tcpdump?

 
 
George Nychis
Guest
Posts: n/a

 
      02-07-2006, 06:10 PM
Hey guys,

I only want to record packet headers to a file via "tcpdump -w
traffic.log" and I do not want it to save the payload or else the log
could get huge.

Thanks!
George

 
Reply With Quote
 
 
 
 
Llanzlan Klazmon
Guest
Posts: n/a

 
      02-08-2006, 12:17 AM
"George Nychis" <(E-Mail Removed)> wrote in news:1139339416.777519.254380
@g47g2000cwa.googlegroups.com:

> Hey guys,
>
> I only want to record packet headers to a file via "tcpdump -w
> traffic.log" and I do not want it to save the payload or else the log
> could get huge.
>
> Thanks!
> George
>
>


Use -s to specify the maximum bytes to capture of each packet.

Klazmon.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I modify the network packet payload? jimmy Linux Networking 8 11-03-2008 04:35 AM
Why can tcpdump not capture all packets zhengda Linux Networking 0 03-16-2008 12:10 PM
Reinject tcpdump capture b0bjes Wireless Internet 1 11-27-2007 07:32 PM
can tcpdump capture more than packet headers? eddie Linux Networking 3 09-24-2006 09:01 PM
Receiver sensitivity- Packet Detection v/s Packet capture Vinay Wireless Internet 1 10-14-2005 01:50 AM



1 2 3 4 5 6 7 8 9 10 11