mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Discard Jumbo Frames from pcap
This commit is contained in:
parent
982ef41814
commit
a333a65419
|
@ -298,6 +298,9 @@ int pcap_io_recv(void* packet, int max_len)
|
|||
|
||||
if ((pcap_next_ex(adhandle, &header, &pkt_data1)) > 0)
|
||||
{
|
||||
if (header->len > max_len)
|
||||
return -1;
|
||||
|
||||
memcpy(packet, pkt_data1, header->len);
|
||||
|
||||
if (!pcap_io_switched)
|
||||
|
|
Loading…
Reference in New Issue