|author||Guy Harris <firstname.lastname@example.org>||2014-07-22 16:53:18 -0700|
|committer||Guy Harris <email@example.com>||2014-07-22 23:53:49 +0000|
Get rid of NO_INTERFACES_FOUND - it's not an error.
It just means "pcap didn't give me any interfaces, and didn't report an error". Hopefully, in the future, there will be pcap APIs that distinguish between the (admittedly unlikely, these days) case of "there really *are* no interfaces on which *anybody* can capture" and "you don't have sufficient permission to capture", and we can report the latter as an error. (Given that pcap supports more than just "regular interfaces", though, there are cases where you don't have permission to capture on those but you have permission to capture raw USB traffic, for example, so perhaps what's really needed is per-interface indications of permissions.) Change-Id: I7b8abb0829e8502f5259c95e8af31655f79d36a1 Reviewed-on: https://code.wireshark.org/review/3169 Reviewed-by: Guy Harris <firstname.lastname@example.org>
Diffstat (limited to 'caputils/capture-wpcap.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/caputils/capture-wpcap.c b/caputils/capture-wpcap.c
index 707875d..3fdff7d 100644
@@ -865,7 +865,7 @@ get_interface_list(int *err, char **err_str)
* No interfaces found.
- *err = NO_INTERFACES_FOUND;
+ *err = 0;
if (err_str != NULL)
*err_str = NULL;