Previous 199869 Revisions Next

r21458 Wednesday 27th February, 2013 at 02:15:25 UTC by R. Belmont
And the traditional missed file (nw)
[src/osd]osdnet.c

trunk/src/osd/osdnet.c
r21457r21458
5555{
5656   UINT8 *buf;
5757   int len;
58   //const char atalkmac[] = { 0x09, 0x00, 0x07, 0xff, 0xff, 0xff };
5859   while((len = recv_dev(&buf)))
5960   {
61#if 0
6062      if(buf[0] & 1)
6163      {
62         if(memcmp("\xff\xff\xff\xff\xff\xff", buf, 6) && !m_dev->mcast_chk(buf, len)) continue;
64         if(memcmp("\xff\xff\xff\xff\xff\xff", buf, 6) && memcmp(atalkmac, buf, 6) && !m_dev->mcast_chk(buf, len)) continue;
6365      }
64      else
66      else {
67         //const unsigned char *ourmac = (const unsigned char *)get_mac();
68         //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]);
6569         if(memcmp(get_mac(), buf, 6) && !get_promisc()) continue;
70      }
71#endif
6672
6773      m_dev->recv_cb(buf, len);
6874   }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team