问题:
我可以在.bash_profile
中禁用传出和传入TCP卸载:
sudo sysctl net.link.generic.system.hwcksum_tx=0
sudo sysctl net.link.generic.system.hwcksum_rx=0
这将停止不断发送的Wireshark"TCP CHECKSUM INVALID"传出的ipv4数据包。
我希望Wireshark仅报告真正无效的TCP校验和数据包。
答案1:
要在Linux中执行此操作,你应该使用ethtool
程序。
例如若要仅禁用校验和卸载,可以运行ethtool -K <iface> tx off rx off
命令,其中<iface>
是对应接口的名称。
相关文章