And the traditional missed file (nw)

This commit is contained in:
R. Belmont 2013-02-27 02:15:25 +00:00
parent 7cec2a0798
commit 1d71a26a9d

View File

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