我试图通过scapy发送一个UDP包,但是当我试图发送一个有点大的东西(例如1800个字符的原始负载),它根本就不发送它。在
def send_info(info):
msg = IP(dst=MANAGER_IP) / UDP(dport = MANAGER_PORT) / \
Raw(load = ("AAAAAAAAAAAA" + info)) #for some reason it throws out the first 12 charaters
print("Sending...")
send(msg, verbose=False)
print("Sent!")
在许多系统和网络上,UDP数据包的最大大小约为1500字节,在公共互联网上甚至更少。在
见What is the largest Safe UDP Packet Size on the Internet
相关问题 更多 >
编程相关推荐