Ticket #2840: dyff.diff
File dyff.diff, 555 bytes (added by , 15 years ago) |
---|
-
device.c
old new 125 125 IF_DEQUEUE(&ifp->receive_queue, mb); 126 126 } while (mb == NULL); 127 127 128 length = min_c(max_c((size_t)mb->m_ len, 0), *numBytes);128 length = min_c(max_c((size_t)mb->m_pkthdr.len, 0), *numBytes); 129 129 130 130 #if 0 131 131 mb = m_defrag(mb, 0); … … 135 135 } 136 136 #endif 137 137 138 m emcpy(buffer, mtod(mb, const void *), length);138 m_copydata(mb, 0, length, buffer); 139 139 *numBytes = length; 140 140 141 141 m_freem(mb);