summaryrefslogtreecommitdiff
path: root/extcap.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-12-08 17:56:22 +0100
committerRoland Knall <rknall@gmail.com>2016-12-14 10:12:43 +0000
commit1c2d224647f7223a6f26e16fda5edba99b33d4bb (patch)
tree18e7b714b93df38cd6361af835c4a69efff02375 /extcap.c
parent39050d3e2f981e7ee432edd0715a5e3eb04f6e1f (diff)
downloadwireshark-1c2d224647f7223a6f26e16fda5edba99b33d4bb.tar.gz
extcap: set help for interfaces.
The help statement is in the first sentence, while interfaces are in others. We need to keep state of it. Ping-Bug: 13218 Change-Id: Iad1d403d5e8bc34e2489daaa3b14d469d5ee5b5b Reviewed-on: https://code.wireshark.org/review/19148 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/extcap.c b/extcap.c
index fc841233fc..973d2a9d2c 100644
--- a/extcap.c
+++ b/extcap.c
@@ -364,6 +364,7 @@ static gboolean interfaces_cb(const gchar *extcap, const gchar *ifname _U_, gcha
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "Extcap pipe %s ", extcap);
walker = interfaces;
+ char* help = NULL;
while (walker != NULL)
{
/* Whether the interface information needs to be preserved or not. */
@@ -384,6 +385,7 @@ static gboolean interfaces_cb(const gchar *extcap, const gchar *ifname _U_, gcha
else if (int_iter->if_type == EXTCAP_SENTENCE_EXTCAP)
{
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, " Extcap [%s] ", int_iter->call);
+ help = g_strdup(int_iter->help);
}
if (int_iter->if_type == EXTCAP_SENTENCE_INTERFACE)
@@ -401,6 +403,7 @@ static gboolean interfaces_cb(const gchar *extcap, const gchar *ifname _U_, gcha
}
int_iter->extcap_path = g_strdup(extcap);
+ int_iter->help = help;
preserve_interface = extcap_if_add(int_iter);
}