]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix typos in the Bluetooth capture code.
authorJakub Zawadzki <[email protected]>
Tue, 14 Jun 2011 17:05:57 +0000 (10:05 -0700)
committerGuy Harris <[email protected]>
Tue, 14 Jun 2011 17:05:57 +0000 (10:05 -0700)
The "set the buffer size" code check for a zero, rather than a non-zero,
opt.buffer_size when deciding whether to explicitly set the buffer size.

Fix a typo in a comment.

Reviewed-By: Guy Harris <[email protected]>
pcap-bt-linux.c

index 55c1b6a1da50852a63dc6ac87e335d09628dcfe4..f9f128acc752b8616ec3f8ada7e85867ea106ba0 100644 (file)
@@ -237,7 +237,7 @@ bt_activate(pcap_t* handle)
                goto close_fail;
        }
 
-       if (handle->opt.buffer_size == 0) {
+       if (handle->opt.buffer_size != 0) {
                /*
                 * Set the socket buffer size to the specified value.
                 */
@@ -342,7 +342,7 @@ bt_stats_linux(pcap_t *handle, struct pcap_stat *stats)
        struct hci_dev_stats * s = &dev_info.stat;
        dev_info.dev_id = handle->md.ifindex;
        
-       /* ingnore eintr */
+       /* ignore eintr */
        do {
                ret = ioctl(handle->fd, HCIGETDEVINFO, (void *)&dev_info);
        } while ((ret == -1) && (errno == EINTR));