453 |
|
num_rx_packets++; |
454 |
|
mblk_t *mp; |
455 |
|
if ((mp = allocb(size, 0)) != NULL) { |
456 |
< |
D(bug(" packet data at %p\n", mp->b_rptr)); |
456 |
> |
D(bug(" packet data at %p\n", (void *)mp->b_rptr)); |
457 |
|
memcpy(mp->b_rptr, p, size); |
458 |
|
mp->b_wptr += size; |
459 |
|
ether_packet_received(mp); |
484 |
|
num_rx_packets++; |
485 |
|
mblk_t *mp; |
486 |
|
if ((mp = allocb(size, 0)) != NULL) { |
487 |
< |
D(bug(" packet data at %p\n", mp->b_rptr)); |
487 |
> |
D(bug(" packet data at %p\n", (void *)mp->b_rptr)); |
488 |
|
read(fd, mp->b_rptr, 1514); |
489 |
|
#if MONITOR |
490 |
|
bug("Receiving Ethernet packet:\n"); |