修复TcpClient的IP报头校验和错误
问题说明
我使用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?
正确答案
的问题是,你必须校验和卸载你的网络接口上设置的。
这会使你的网卡来计算校验和,而不是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
-
YouTube API 不能在 iOS (iPhone/iPad) 工作,但在桌面浏览器工作正常?
it1352 07-30 -
iPhone,一张图像叠加到另一张图像上以创建要保存的新图像?(水印)
it1352 07-17 -
保持在后台运行的 iPhone 应用程序完全可操作
it1352 07-25 -
使用 iPhone 进行移动设备管理
it1352 07-23 -
在android同时打开手电筒和前置摄像头
it1352 09-28 -
扫描 NFC 标签时是否可以启动应用程序?
it1352 08-02 -
检查邮件是否发送成功
it1352 07-25 -
Android微调工具-删除当前选择
it1352 06-20 -
希伯来语的空格句子标记化错误
it1352 06-22 -
Android App 和三星 Galaxy S4 不兼容
it1352 07-20