This commit is contained in:
cracyc 2013-03-02 03:35:42 +00:00
parent 36201eba9d
commit b3486955c1

View File

@ -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;
}