ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/ether.cpp
(Generate patch)

Comparing SheepShaver/src/ether.cpp (file contents):
Revision 1.3 by gbeauche, 2004-05-10T12:05:43Z vs.
Revision 1.4 by gbeauche, 2004-05-10T16:16:26Z

# Line 86 | Line 86 | struct DLPIStream {
86  
87          void AddMulticast(uint8 *addr)
88          {
89 <                multicast_node *n = new multicast_node;
89 >                multicast_node *n = (multicast_node *)Mac_sysalloc(sizeof(multicast_node));
90                  memcpy(n->addr, addr, kEnetPhysicalAddressLength);
91                  n->next = multicast_list;
92                  multicast_list = n;
# Line 106 | Line 106 | struct DLPIStream {
106                  while (q) {
107                          if (q->next == p) {
108                                  q->next = p->next;
109 <                                delete p;
109 >                                Mac_sysfree(p);
110                                  return;
111                          }
112                          q = q->next;
# Line 1542 | Line 1542 | static void DLPI_enable_multi(DLPIStream
1542          AO_enable_multicast(reqaddr);
1543  
1544          // Add new address to multicast list
1545 <        uint8 *addr = new uint8[kEnetPhysicalAddressLength];
1545 >        uint8 *addr = (uint8 *)Mac_sysalloc(kEnetPhysicalAddressLength);
1546          OTCopy48BitAddress(reqaddr, addr);
1547          the_stream->AddMulticast(addr);
1548  
# Line 1580 | Line 1580 | static void DLPI_disable_multi(DLPIStrea
1580  
1581          // Found, then remove
1582          the_stream->RemoveMulticast(addr);
1583 <        delete addr;
1583 >        Mac_sysfree(addr);
1584  
1585          // Tell add-on to disable multicast address
1586          AO_disable_multicast(reqaddr);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines