hello,
the attached trivial patch fix a couple of typos in the comments of
pcap-usb-linux.c.
I fear that others grammar/spell errors are present in the code I
submitted due to my poor English. I'll try to look after for them...
ciao,
paolo
--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons above and
may contain confidential information. If you have received the message in
error, be informed that any use of the content hereof is prohibited. Please
return it immediately to the sender and delete the message. Should you have any
questions, please contact us by replying to [EMAIL PROTECTED]
Thank you
www.telecomitalia.it
--------------------------------------------------------------------
Index: pcap-usb-linux.c
===================================================================
RCS file: /tcpdump/master/libpcap/pcap-usb-linux.c,v
retrieving revision 1.17
diff -u -p -r1.17 pcap-usb-linux.c
--- pcap-usb-linux.c 30 Nov 2007 19:53:06 -0000 1.17
+++ pcap-usb-linux.c 5 Dec 2007 10:14:12 -0000
@@ -150,7 +150,7 @@ usb_platform_finddevs(pcap_if_t **alldev
int ret = 0;
DIR* dir;
- /* scan profs usb bus directorys */
+ /* scan procfs usb bus directory */
dir = opendir(USB_BUS_DIR);
if (!dir) return 0;
while ((ret == 0) && ((data = readdir(dir)) != 0)) {
@@ -233,8 +233,6 @@ usb_open_live(const char* bus, int snapl
handle->fd = open(full_path, O_RDONLY, 0);
if (handle->fd >= 0)
{
- /* header endianess can't be fixed for memory mapped access,
- * due to read only access to mmaped buffer, so disable it*/
/* binary api is available, try to use fast mmap access */
if (usb_mmap(handle)) {
handle->stats_op = usb_stats_linux_bin;
@@ -604,6 +602,7 @@ usb_read_linux_bin(pcap_t *handle, int m
info.hdr = (pcap_usb_header*) handle->buffer;
info.data = handle->buffer + sizeof(pcap_usb_header);
info.data_len = clen;
+
/* ignore interrupt system call errors */
do {
ret = ioctl(handle->fd, MON_IOCX_GET, &info);
@@ -716,7 +715,7 @@ usb_read_linux_mmap(pcap_t *handle, int
static void
usb_close_linux_mmap(pcap_t* handle)
{
- /* handle fill be freed in pcap_close() 'common' code, buffer must not
+ /* handle will be freed in pcap_close() 'common' code, buffer must not
* be freed because it's memory mapped */
close(handle->fd);
}
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.