scapy不能发送长p

2024-10-01 05:05:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我用scapy

from scapy.all import *
send_L2sock=conf.L2socket(iface="eth0")
for send_packet in rdpcap("test.pcap"):
    send_L2sock.send(send_packet)

这个代码运行良好。我确认使用wireshark发送数据包。在

但是scapy不能像下面这样发送大数据包:

^{pr2}$

包长度为2475。在

包只由一个包组成。在

为什么scapy不能发送大长度的包?在


Tags: infromimportsendforpacketconfall