aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2020-03-14 17:35:58 -0700
committerGuy Harris <guy@alum.mit.edu>2020-03-15 00:55:37 +0000
commitc4f652397b1b3d1e0ed08ed497eaddca7dc9c8fb (patch)
tree6ccd33e3d463a6738a672fdbf4b9ef9ce076ca77 /dumpcap.c
parente091ee5212e7b62e28d2a22d91f33dc8fb8fb388 (diff)
Don't check for ancient libpcap versions on HP-UX.
We require libpcap 0.8 or later, so somebody's *really* have to go out of their way to get a version of Wireshark running with a pre-0.6 libpcap. Change-Id: I329b3a37cd37ca5d9e76db447daabfe1dc47e75d Reviewed-on: https://code.wireshark.org/review/36422 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c34
1 files changed, 3 insertions, 31 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 86d7b96ee1..0029b8d305 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -553,13 +553,7 @@ relinquish_all_capabilities(void)
#endif
static const char *
-get_pcap_failure_secondary_error_message(cap_device_open_err open_err,
-#ifdef __hpux
- const char *open_err_str
-#else
- const char* open_err_str _U_
-#endif
- )
+get_pcap_failure_secondary_error_message(cap_device_open_err open_err)
{
#ifdef _WIN32
/*
@@ -577,28 +571,6 @@ get_pcap_failure_secondary_error_message(cap_device_open_err open_err,
#endif
/*
- * Now deal with ancient versions of libpcap that, on HP-UX, don't
- * correctly figure out how to open a device given the device name.
- */
-#ifdef __hpux
- /* HP-UX-specific suggestion. */
- static const char ppamsg[] = "can't find PPA for ";
-
- if (strncmp(open_err_str, ppamsg, sizeof ppamsg - 1) == 0) {
- return
- "You are running (T)Wireshark with a version of the libpcap library\n"
- "that doesn't handle HP-UX network devices well; this means that\n"
- "(T)Wireshark may not be able to capture packets.\n"
- "\n"
- "To fix this, you should install libpcap 0.6.2, or a later version\n"
- "of libpcap, rather than libpcap 0.4 or 0.5.x. It is available in\n"
- "packaged binary form from the Software Porting And Archive Centre\n"
- "for HP-UX; the Centre is at http://hpux.connect.org.uk/ - the page\n"
- "at the URL lists a number of mirror sites.";
- }
-#endif
-
- /*
* OK, now just return a largely platform-independent error that might
* have platform-specific suggestions at the end (for example, suggestions
* for how to get permission to capture).
@@ -642,7 +614,7 @@ get_capture_device_open_failure_messages(cap_device_open_err open_err,
"The capture session could not be initiated on interface '%s' (%s).",
iface, open_err_str);
g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len, "%s",
- get_pcap_failure_secondary_error_message(open_err, open_err_str));
+ get_pcap_failure_secondary_error_message(open_err));
}
static gboolean
@@ -5180,7 +5152,7 @@ main(int argc, char *argv[])
if (caps == NULL) {
cmdarg_err("The capabilities of the capture device \"%s\" could not be obtained (%s).\n"
"%s", interface_opts->name, err_str,
- get_pcap_failure_secondary_error_message(err, err_str));
+ get_pcap_failure_secondary_error_message(err));
g_free(err_str);
exit_main(2);
}