mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Oops
This commit is contained in:
parent
36201eba9d
commit
b3486955c1
@ -81,9 +81,7 @@ int netdev_tap::recv_dev(UINT8 **buf)
|
||||
{
|
||||
int len;
|
||||
if(m_fd == -1) return 0;
|
||||
do {
|
||||
len = read(m_fd, m_buf, sizeof(m_buf));
|
||||
} while(!get_promisc() && memcmp(get_mac(), m_buf, 6));
|
||||
len = read(m_fd, m_buf, sizeof(m_buf));
|
||||
*buf = m_buf;
|
||||
return (len == -1)?0:len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user