summaryrefslogtreecommitdiff
path: root/ui/gtk/capture_if_details_dlg_win32.c
diff options
context:
space:
mode:
authorYang Luo <hsluoyz@gmail.com>2016-05-09 19:42:05 +0800
committerPascal Quantin <pascal.quantin@gmail.com>2016-06-07 08:07:53 +0000
commit1b330db2e30b202b619c32b0e66665e5fc008917 (patch)
tree37332785d7bb1be6530de95c89fef7fdc0a8e791 /ui/gtk/capture_if_details_dlg_win32.c
parentad0e70f10c1cd18d17874db2264c7e1986b9b9b3 (diff)
downloadwireshark-1b330db2e30b202b619c32b0e66665e5fc008917.tar.gz
pcap: Remove the WinPcap version checking for the Details dialog
This check only works on the GTK UI's "Details" window. And it only can check version numbers. So there's no way for this code to be able to differentiate Npcap from WinPcap. And Npcap uses a very small version like "0.07", which makes itself not welcomed by this checking code. Change-Id: I861e9decd123e7d30547789c0488043616b17032 Reviewed-on: https://code.wireshark.org/review/15304 Reviewed-by: Yang Luo <hsluoyz@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/gtk/capture_if_details_dlg_win32.c')
-rw-r--r--ui/gtk/capture_if_details_dlg_win32.c38
1 files changed, 1 insertions, 37 deletions
diff --git a/ui/gtk/capture_if_details_dlg_win32.c b/ui/gtk/capture_if_details_dlg_win32.c
index 25db9a4636..fcc9470e03 100644
--- a/ui/gtk/capture_if_details_dlg_win32.c
+++ b/ui/gtk/capture_if_details_dlg_win32.c
@@ -2366,9 +2366,6 @@ void
capture_if_details_open(char *iface)
{
char *version;
- gboolean version_ok = FALSE;
- gpointer dialog;
-
/* check packet.dll version */
version = wpcap_packet_get_version();
@@ -2384,40 +2381,7 @@ capture_if_details_open(char *iface)
return;
}
- /* XXX - add more known DLL versions here */
- /* (all versions since the 2.3 release seems to be working (although the 2.3 beta did not) */
- if (
- /*
- * 4.0 version strings:
- * 4.0.0.703: 4.0 beta 3
- * 4.0.0.655: 4.0 beta 2
- * 4.0.0.592: 4.0 beta 1
- */
- (strcmp(version, "3" ) > 0) || /* 4.0 and above (including betas) */
- (strcmp(version, "3, 2, 0, 29") == 0) || /* 3.2 beta 1 */
- (strcmp(version, "3, 1, 0, 27") == 0) || /* 3.1 release */
- (strcmp(version, "3, 1, 0, 24") == 0) || /* 3.1 beta 4 */
- (strcmp(version, "3, 1, 0, 23") == 0) || /* 3.1 beta 3 */
- (strcmp(version, "3, 1, 0, 22") == 0) || /* 3.1 beta 2 */
- (strcmp(version, "3, 1, 0, 20") == 0) || /* 3.1 beta */
- (strcmp(version, "3.0 alpha3" ) == 0) || /* 3.0 release or 3.0 beta (yes, both versions report alpha3!) */
- (strcmp(version, "2.3" ) == 0) /* 2.3 release */
- ) {
- version_ok = TRUE;
- }
-
- if (!version_ok) {
- /* packet.dll version not known to us, warn user but try to continue */
- dialog = simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK | ESD_BTN_CANCEL,
- "%sUnknown WinPcap version.%s"
- "\n\nThe WinPcap packet.dll version \"%s\" is unknown. It may not"
- "\nprovide functions that we need and might even crash."
- "\n\nContinue anyway?",
- simple_dialog_primary_start(), simple_dialog_primary_end(), version);
- simple_dialog_set_cb(dialog, capture_if_details_open_answered_cb, iface);
- } else {
- capture_if_details_open_win(iface);
- }
+ capture_if_details_open_win(iface);
}
gboolean