mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
And the traditional missed file (nw)
This commit is contained in:
parent
7cec2a0798
commit
1d71a26a9d
@ -55,14 +55,20 @@ void netdev::recv(void *ptr, int param)
|
||||
{
|
||||
UINT8 *buf;
|
||||
int len;
|
||||
//const char atalkmac[] = { 0x09, 0x00, 0x07, 0xff, 0xff, 0xff };
|
||||
while((len = recv_dev(&buf)))
|
||||
{
|
||||
#if 0
|
||||
if(buf[0] & 1)
|
||||
{
|
||||
if(memcmp("\xff\xff\xff\xff\xff\xff", buf, 6) && !m_dev->mcast_chk(buf, len)) continue;
|
||||
if(memcmp("\xff\xff\xff\xff\xff\xff", buf, 6) && memcmp(atalkmac, buf, 6) && !m_dev->mcast_chk(buf, len)) continue;
|
||||
}
|
||||
else
|
||||
else {
|
||||
//const unsigned char *ourmac = (const unsigned char *)get_mac();
|
||||
//printf("our mac: %.2X:%.2X:%.2X:%.2X:%.2X:%.2X dst mac: %.2X:%.2X:%.2X:%.2X:%.2X:%.2X\n", ourmac[0], ourmac[1], ourmac[2], ourmac[3], ourmac[4], ourmac[5], buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
|
||||
if(memcmp(get_mac(), buf, 6) && !get_promisc()) continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
m_dev->recv_cb(buf, len);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user