From a631fe8a83a66d75aadc595af1419ee624bbd8dc Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 5 Oct 2006 17:51:01 +0000 Subject: From Paolo Abeni: fix a compile problem. --- pcap-usb-linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pcap-usb-linux.c') diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 99dba90..3626c75 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -353,7 +353,7 @@ usb_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *u * a partial information. * At least until linux 2.6.17 there is no way to set usbmon intenal buffer * length and default value is 130. */ - while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snaplen)) + while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snapshot)) { rawdata[0] = ascii_to_int(string[0]) * 16 + ascii_to_int(string[1]); rawdata++; @@ -368,6 +368,7 @@ got: if (pkth.caplen > handle->snapshot) pkth.caplen = handle->snapshot; + callback(user, &pkth, handle->buffer); return 1; } -- cgit v1.2.3