• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

修复TcpClient的IP报头校验和错误

用户头像
it1352
帮助1

问题说明

我使用System.Net.Sockets.TcpClient类,但每当我通过网络发送自定义数据包,我看到在我的Wireshark捕获错误校验。我该如何解决?

I'm using System.Net.Sockets.TcpClient class but whenever I send custom packet over the network I'm seeing bad checksum on my wireshark capture. How can I fix it?

正确答案

#1

的问题是,你必须校验和卸载你的网络接口上设置的。

这会使你的网卡来计算校验和,而不是Windows。 Wireshark的将检测这是不正确的校验和,但他们真的不是。

This causes your network card to calculate the checksum and not Windows. WireShark will detect this as incorrect checksums, but they really aren't.

在您的网络接口的属性,如果你点击[配置],[高级]选项卡有一个[卸载校验]项目。如果设置为[Disabled],是Wireshark会显示校验是正确的。

In the properties of your network interface, if you click [Configure], the [Advanced] tab has a [Offload Checksum] item. If you set that to [Disabled], WireShark will display that the checksums are correct.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcfhgfk
系列文章
更多 icon
同类精品
更多 icon
继续加载