152 |
|
if (size > 18) |
153 |
|
size = 18; |
154 |
|
WriteMacInt16(pb + eDataSize, size); // Number of bytes actually written |
155 |
< |
memcpy(Mac2HostAddr(ReadMacInt32(pb + ePointer)), buf, size); |
155 |
> |
Host2Mac_memcpy(ReadMacInt32(pb + ePointer), buf, size); |
156 |
|
return noErr; |
157 |
|
} |
158 |
|
|
175 |
|
{ |
176 |
|
D(bug("EtherReadPacket src %08lx, dest %08lx, len %08lx, remaining %08lx\n", *src, dest, len, remaining)); |
177 |
|
uint32 todo = len > remaining ? remaining : len; |
178 |
< |
memcpy(Mac2HostAddr(dest), *src, todo); |
178 |
> |
Host2Mac_memcpy(dest, *src, todo); |
179 |
|
*src += todo; |
180 |
|
dest += todo; |
181 |
|
len -= todo; |