/* For DLT_USBPCAP, the maximum is 1MiB, as per */
u_int max_snaplen_for_dlt(int dlt)
/* For DLT_USBPCAP, the maximum is 1MiB, as per */
u_int max_snaplen_for_dlt(int dlt)
{
	switch (dlt) {
	case DLT_DBUS:
		return 128*1024*1024;
	case DLT_USBPCAP:
		return 1024*1024;
	default:
		return MAXIMUM_SNAPLEN;
	}
}