get_packets
pktcnt = get_packets(seg_hash, device_fd, offset, length);
pktcnt = get_packets(seg_hash, g_raw, offset, length);