/* If a big-endian PKTAP file ever shows up, and it comes from a big-endian machine, presumably these are host-endian, and we need to just fetch the fields in host byte order here but byte-swap them to host byte order in libwiretap.  */
static gboolean capture_pktap(const guchar *pd, int offset _U_, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
/* If a big-endian PKTAP file ever shows up, and it comes from a big-endian machine, presumably these are host-endian, and we need to just fetch the fields in host byte order here but byte-swap them to host byte order in libwiretap.  */
static gboolean capture_pktap(const guchar *pd, int offset _U_, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
	guint32  hdrlen, rectype, dlt;
	hdrlen = pletoh32(pd);
	if (hdrlen < MIN_PKTAP_HDR_LEN || !BYTES_ARE_IN_FRAME(0, len, hdrlen))
		return FALSE;
	rectype = pletoh32(pd+4);
	if (rectype != PKT_REC_PACKET)
		return FALSE;
	dlt = pletoh32(pd+4);
	switch (dlt) {
	case 1:
		return capture_eth(pd, hdrlen, len, cpinfo, pseudo_header);
	}
	return FALSE;
}