问题
回放pcap时遇到Warning: Unable to send packet: Error with PF_PACKET send() [52]: Message too long (errno = 90)
警告:不能发送信息包,PF_PACKET发送错误,信息太长(错误代号=90)
[root@apt malssl]# tcpreplay -i eth5 *.pcap
tcpreplay: Symbol `pcap_version' has different size in shared object, consider re-linking
Warning: Unable to send packet: Error with PF_PACKET send() [18]: Message too long (errno = 90)
原因
MTU默认为1500,使用wearshark查看会发现包的大小超过了,图上是改后的
ifconfig eth5 # 查看mtu值
解决
修改发送数据包网卡的MTU值
ifconfig eth5 mtu 9216
验证
重新回放这个包,不再出类似告警
tcpreplay -i eth5 *.pcap