extcap: set help page for all extcaps.

They've been set to the manpage of the local filesystem.

Ping-Bug: 13218
Change-Id: Iacd5d2ba7ae39ee1718b59747c245d1c07785e8f
Reviewed-on: https://code.wireshark.org/review/19179
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
Dario Lombardo 2016-12-09 11:52:42 +01:00
parent 87a9a2989b
commit e5596b74bd
6 changed files with 12 additions and 6 deletions

View File

@ -31,6 +31,7 @@
#include <errno.h>
#include <time.h>
#include <wsutil/strtoi.h>
#include <wsutil/filesystem.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
@ -2590,7 +2591,7 @@ int main(int argc, char **argv) {
extcap_conf = g_new0(extcap_parameters, 1);
extcap_base_set_util_info(extcap_conf, argv[0], ANDROIDDUMP_VERSION_MAJOR, ANDROIDDUMP_VERSION_MINOR,
ANDROIDDUMP_VERSION_RELEASE, NULL);
ANDROIDDUMP_VERSION_RELEASE, data_file_url("androiddump.html"));
help_header = g_strdup_printf(
" %s --extcap-interfaces [--adb-server-ip=<arg>] [--adb-server-tcp-port=<arg>]\n"

View File

@ -27,6 +27,7 @@
#include <extcap/extcap-base.h>
#include <wsutil/interface.h>
#include <wsutil/strtoi.h>
#include <wsutil/filesystem.h>
#include <extcap/ssh-base.h>
#include <writecap/pcapio.h>
@ -540,7 +541,7 @@ int main(int argc, char **argv)
#endif /* _WIN32 */
extcap_base_set_util_info(extcap_conf, argv[0], CISCODUMP_VERSION_MAJOR, CISCODUMP_VERSION_MINOR,
CISCODUMP_VERSION_RELEASE, NULL);
CISCODUMP_VERSION_RELEASE, data_file_url("ciscodump.html"));
extcap_base_register_interface(extcap_conf, CISCODUMP_EXTCAP_INTERFACE, "Cisco remote capture", 147, "Remote capture dependent DLT");
help_header = g_strdup_printf(

View File

@ -28,6 +28,7 @@
#include "randpkt_core/randpkt_core.h"
#include <wsutil/strtoi.h>
#include <wsutil/filesystem.h>
#define RANDPKT_EXTCAP_INTERFACE "randpkt"
#define RANDPKTDUMP_VERSION_MAJOR "0"
@ -146,7 +147,7 @@ int main(int argc, char *argv[])
char* help_header = NULL;
extcap_base_set_util_info(extcap_conf, argv[0], RANDPKTDUMP_VERSION_MAJOR, RANDPKTDUMP_VERSION_MINOR,
RANDPKTDUMP_VERSION_RELEASE, NULL);
RANDPKTDUMP_VERSION_RELEASE, data_file_url("randpktdump.html"));
extcap_base_register_interface(extcap_conf, RANDPKT_EXTCAP_INTERFACE, "Random packet generator", 147, "Generator dependent DLT");
help_header = g_strdup_printf(

View File

@ -29,6 +29,7 @@
#include <wsutil/interface.h>
#include <wsutil/file_util.h>
#include <wsutil/strtoi.h>
#include <wsutil/filesystem.h>
#include <errno.h>
#include <string.h>
@ -346,7 +347,7 @@ int main(int argc, char **argv)
#endif /* _WIN32 */
extcap_base_set_util_info(extcap_conf, argv[0], SSHDUMP_VERSION_MAJOR, SSHDUMP_VERSION_MINOR,
SSHDUMP_VERSION_RELEASE, NULL);
SSHDUMP_VERSION_RELEASE, data_file_url("sshdump.html"));
extcap_base_register_interface(extcap_conf, SSH_EXTCAP_INTERFACE, "SSH remote capture", 147, "Remote capture dependent DLT");
help_header = g_strdup_printf(

View File

@ -57,6 +57,7 @@
#include <epan/exported_pdu.h>
#include <wsutil/strtoi.h>
#include <wsutil/inet_addr.h>
#include <wsutil/filesystem.h>
#define PCAP_SNAPLEN 0xffff
@ -295,7 +296,8 @@ int main(int argc, char *argv[])
attach_parent_console();
#endif /* _WIN32 */
extcap_base_set_util_info(extcap_conf, argv[0], UDPDUMP_VERSION_MAJOR, UDPDUMP_VERSION_MINOR,UDPDUMP_VERSION_RELEASE, NULL);
extcap_base_set_util_info(extcap_conf, argv[0], UDPDUMP_VERSION_MAJOR, UDPDUMP_VERSION_MINOR,UDPDUMP_VERSION_RELEASE,
data_file_url("udpdump.html"));
extcap_base_register_interface(extcap_conf, UDPDUMP_EXTCAP_INTERFACE, "UDP Listener remote capture", 252, "Exported PDUs");
help_header = g_strdup_printf(

View File

@ -241,7 +241,7 @@ topic_action_url(topic_action_e action)
break;
#ifdef HAVE_EXTCAP
case(HELP_EXTCAP_OPTIONS_DIALOG):
url = user_guide_url("ChExtcapOptions.html");
url = data_file_url("extcap.html");
break;
#endif
case(HELP_STATS_SUMMARY_DIALOG):