如何找出正确的数据包长度?
我使用 SENDIP 工具在 LAN 中的另一台计算机上发送三种类型的数据包 我已经指定了最小值。 length = 8 字节,max.length = 512 字节...
但是...
当我发送 udp 数据包(最小长度)并使用 tcpdump 捕获时,它显示指针长度=70 字节。
当我发送 udp 数据包(最小长度)tcpdump 显示指针长度=574 字节。
当我发送 icmp 数据包(最小长度)时,tcpdump 显示前两个数据包的长度为 80,其余所有数据包的长度为 66 字节。
我通过 tcpdump 获取的指针长度是通过使用数据包中指定的标头信息......
为什么 sendip 和 tcpdump 的结果之间存在差异???
I am sending three types of packets on another machine in LAN using SENDIP tool
I have specified min. length = 8 bytes and max.length = 512 bytes...
but....
when I send udp packets (min. length) and capture using tcpdump it shows pointer length=70 bytes.
when I send udp packets (min. length) tcpdump shows pointer length=574 bytes.
when I send icmp packets (min length),tcpdump shows length of first two packets as 80 and length of rest all packets as 66 bytes.
The pointer length I am getting through tcpdump is by using header information specified in the packet....
Why there is discrepancy between the results of sendip and tcpdump ???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行 tcpdump 时使用
-s 0
选项。这将导致它捕获整个帧。Use the
-s 0
option when running tcpdump. This will cause it to capture the entire frame.