diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-12-29 22:06:22 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-12-29 22:06:22 +0000 |
commit | 21f5ea24e4334afc1fc814bb9a510980921dd1b1 (patch) | |
tree | d98adaa831492cfd6aaa024253cda6e6cd8419b4 /dumpcap.c | |
parent | 71c7f43d37c0c1e47fefa978e0f03643ae607e93 (diff) |
Just hard-code the error for "can't load WinPcap"; the one that
cant_load_winpcap_err() has some redundant gunk in it.
svn path=/trunk/; revision=40333
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -81,7 +81,6 @@ #include "capture-pcap-util.h" #ifdef _WIN32 #include "capture-wpcap.h" -#include "capture_errs.h" #endif /* _WIN32 */ #include "pcapio.h" @@ -682,13 +681,22 @@ get_capture_device_open_failure_messages(const char *open_err_str, "The capture session could not be initiated (%s).", open_err_str); #ifdef _WIN32 if (!has_wpcap) { - char *detailed_err; - - detailed_err = cant_load_winpcap_err("TShark"); g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len, - "\n", - "%s\n", detailed_err); - g_free(detailed_err); + "\n" + "In order to capture packets, WinPcap must be installed; see\n" + "\n" + " http://www.winpcap.org/\n" + "\n" + "or the mirror at\n" + "\n" + " http://www.mirrors.wiretapped.net/security/packet-capture/winpcap/\n" + "\n" + "or the mirror at\n" + "\n" + " http://winpcap.cs.pu.edu.tw/\n" + "\n" + "for a downloadable version of WinPcap and for instructions on how to install\n" + "WinPcap."); } else { g_snprintf(secondary_errmsg, (gulong) secondary_errmsg_len, "\n" |