你如何发送带有一个腐败FCS的以太网帧? [英] How do you send an Ethernet frame with a corrupt FCS?
问题描述
我不知道,如果这甚至有可能,因为这可能会在硬件来处理,但我需要与他们的错误发送一些以太网帧。我希望能够创建欠幅脉冲,叽里咕噜,不对,和坏FCS错误。我在Python中工作。
I'm not sure if this is even possible since this might be handled in hardware, but I need to send some Ethernet frames with errors in them. I'd like to be able to create runts, jabber, misalignment, and bad FCS errors. I'm working in Python.
推荐答案
它的可以的硬件来处理,但并不总是 - 即使是这样,你可以将其关闭;看到 ethtool的卸载参数。
It can be handled in hardware, but isn't always -- and even if it is, you can turn that off; see the ethtool offload parameters.
对于得到完全控制帧创建 - 看看 PF_PACKET (一个方法)或 TAP驱动(另一个)。
With regard to getting full control over the frames you create -- look into PF_PACKET (for one approach) or the tap driver (for another).
下面是一个使用PF_PACKET从Python的发送手工制作的框架上的文章。
Here's an article on using PF_PACKET to send hand-crafted frames from Python.
这篇关于你如何发送带有一个腐败FCS的以太网帧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!