DEV9: Discard Jumbo Frames from pcap

This commit is contained in:
TheLastRar 2021-06-15 12:23:36 +01:00 committed by lightningterror
parent 982ef41814
commit a333a65419
1 changed files with 3 additions and 0 deletions

View File

@ -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)