<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tcpdump - setting packet size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126881#M528685</link>
    <description>Hi Burvil&lt;BR /&gt;&lt;BR /&gt;From "Open Source Network Administration"&lt;BR /&gt;&lt;BR /&gt;One counterintuitive default of tcpdump is that the amount of data captured is only the first 68 bytes of the packet. This is usually enough to grab the protocol headers, but it is not the entire packet. The snaplen option allows you to set the number of bytes tcpdump will grab from the packet. If you wish to view the entire packet (as with the -x option) or if you wish for the verbose options (-v and -vv) to have access to all of the data present in the packet, specify a snaplen size of 1500:&lt;BR /&gt;&lt;BR /&gt;tcpdump -s 1500&lt;BR /&gt;&lt;BR /&gt;We choose 1500 because it is the maximum size of the payload of an Ethernet frame. If we were using tcpdump on a network that is not Ethernet, we might need to set the snaplen size to an even larger value. &lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Murat</description>
    <pubDate>Wed, 09 Jan 2008 20:45:09 GMT</pubDate>
    <dc:creator>Murat SULUHAN</dc:creator>
    <dc:date>2008-01-09T20:45:09Z</dc:date>
    <item>
      <title>tcpdump - setting packet size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126880#M528684</link>
      <description>I run tcpdump successfully on my HP-UX 11i system, i.e. I get a file that I can read in wireshark.  This is the command I use:&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;tcpdump -vvv -e -w /opt/archives/tcpdump.intermittent_slowness.01092008.pcap -i /dev/dlpi0 -s 100 -xx host ip-address-here&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;However, the packets are being truncated.  &lt;BR /&gt;&lt;BR /&gt;According the manpage at the HP-UX archiving and porting centre (where I downloaded the depot to install) at &lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/tcpdump-3.9.8/man.html:" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/tcpdump-3.9.8/man.html:&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;-s   Snarf snaplen bytes of data from  each  packet  rather  than  the default of 68 (with SunOS's NIT, the minimum is actually 96).  68&lt;BR /&gt; bytes is adequate for IP, ICMP, TCP  and  UDP  but  may  truncate protocol  information  from  name  server  and  NFS  packets (see&lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt;...&lt;BR /&gt;Setting snaplen to 0 means use the required length to catch whole packets.&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;So, I try specifying -s 0 and not -s 100, and I get an error:&lt;BR /&gt;&lt;BR /&gt;tcpdump: invalid snaplen 0&lt;BR /&gt;&lt;BR /&gt;I looked in the tarball, and there's nothing from ./configure --help that says anything about setting the size, so I don't think compiling and installing from source instead of depot would help. &lt;BR /&gt;&lt;BR /&gt;How can I set the size?&lt;BR /&gt;&lt;BR /&gt;&lt;/SNIP&gt;</description>
      <pubDate>Wed, 09 Jan 2008 20:25:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126880#M528684</guid>
      <dc:creator>Burvil Chang</dc:creator>
      <dc:date>2008-01-09T20:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump - setting packet size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126881#M528685</link>
      <description>Hi Burvil&lt;BR /&gt;&lt;BR /&gt;From "Open Source Network Administration"&lt;BR /&gt;&lt;BR /&gt;One counterintuitive default of tcpdump is that the amount of data captured is only the first 68 bytes of the packet. This is usually enough to grab the protocol headers, but it is not the entire packet. The snaplen option allows you to set the number of bytes tcpdump will grab from the packet. If you wish to view the entire packet (as with the -x option) or if you wish for the verbose options (-v and -vv) to have access to all of the data present in the packet, specify a snaplen size of 1500:&lt;BR /&gt;&lt;BR /&gt;tcpdump -s 1500&lt;BR /&gt;&lt;BR /&gt;We choose 1500 because it is the maximum size of the payload of an Ethernet frame. If we were using tcpdump on a network that is not Ethernet, we might need to set the snaplen size to an even larger value. &lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Murat</description>
      <pubDate>Wed, 09 Jan 2008 20:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126881#M528685</guid>
      <dc:creator>Murat SULUHAN</dc:creator>
      <dc:date>2008-01-09T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump - setting packet size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126882#M528686</link>
      <description>Awesome!  That answered it.  It works correctly now, and does not truncate the packets.</description>
      <pubDate>Wed, 09 Jan 2008 21:28:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126882#M528686</guid>
      <dc:creator>Burvil Chang</dc:creator>
      <dc:date>2008-01-09T21:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump - setting packet size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126883#M528687</link>
      <description>Some "ethernet" networks can support packet sizes &amp;gt;&amp;gt; 1500 bytes - eg gigabit and 10 Gig interfaces which support "jumbo frame" in one way or another.&lt;BR /&gt;&lt;BR /&gt;99 times out of ten all one really needs are the headers.  Any particular reason why you need the entire packet out to 1500ish bytes?</description>
      <pubDate>Thu, 10 Jan 2008 01:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126883#M528687</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2008-01-10T01:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump - setting packet size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126884#M528688</link>
      <description>99 times out of ten all one really needs are the headers. Any particular reason why you need the entire packet out to 1500ish bytes?&lt;BR /&gt;=================&lt;BR /&gt;I was getting an error on the checksum, noting that the packet was truncated.  Although it may not have mattered, I wanted to be sure.  These included X Windows packets, but also some packets from a custom application, for which there isn't really a set size.  Basically, I just wanted to make sure I got everything.</description>
      <pubDate>Thu, 10 Jan 2008 16:49:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126884#M528688</guid>
      <dc:creator>Burvil Chang</dc:creator>
      <dc:date>2008-01-10T16:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump - setting packet size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126885#M528689</link>
      <description>Keep in mind that even with the entire packet, you can/will still see false checksum failures when looking at traffic sourced on the system on which tcpdump is run, when the NIC(s) involved have ChecKsum Offload (CKO) enabled.</description>
      <pubDate>Thu, 10 Jan 2008 18:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/4126885#M528689</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2008-01-10T18:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: tcpdump - setting packet size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/7105727#M528690</link>
      <description>&lt;P&gt;Hello everyone&lt;BR /&gt;&lt;BR /&gt;I saw that there is a long time since no one added an answer to this thread so..&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking a way to not capture packages that have size less than X, in our case to ignore YateDRA SCTP Heartbeat frames that have 126 bytes.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tcpdump -i yate-core &lt;STRONG&gt;greater 127&lt;/STRONG&gt; and net XX.XX.XX.XX/29 and net YY.YY.YY.YY/30&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope this will help others that reach this Networking thread&lt;/P&gt;&lt;P&gt;sysadmin @ YateBTS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 08:44:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tcpdump-setting-packet-size/m-p/7105727#M528690</guid>
      <dc:creator>afkpaul</dc:creator>
      <dc:date>2020-10-21T08:44:12Z</dc:date>
    </item>
  </channel>
</rss>

