免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1563 | 回复: 1
打印 上一主题 下一主题

[网络管理] tcpdump 输出的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-20 14:31 |只看该作者 |倒序浏览
输出里有: (DF) (ttl 241, id 14233, len 40)

想请问一下: len 40 是表示长度吗?是数据包的长度还是包头的长度?


另外,比如我正从服务器往本地拷文件,用 tcpdump 抓包,能否看到正在拷贝的文件名?

论坛徽章:
0
2 [报告]
发表于 2007-07-21 16:28 |只看该作者
1....
man tcpdump

       -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 bytes is adequate for IP, ICMP, TCP and UDP but may  truncate
              protocol  information  from  name  server  and  NFS packets (see
              below).  Packets truncated because of  a  limited  snapshot  are
              indicated  in  the  output with ``[|proto]'', where proto is the
              name of the protocol level at which the truncation has occurred.
              Note  that  taking larger snapshots both increases the amount of
              time it takes to process packets and, effectively, decreases the
              amount  of packet buffering.  This may cause packets to be lost.
              You should limit snaplen to the smallest number that  will  cap-
              ture  the  protocol  information  you're interested in.  Setting
              snaplen to 0 means use the required length to catch whole  pack-
              ets.
2...
自己抓包看看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP