diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-03-05 04:09:47 +0000 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-03-06 12:56:11 +0000 |
commit | 41a172cc953382e4c830481dea14d895c622754e (patch) | |
tree | c5356ca4a2d622f621aefd5124e9ad3bd4cd6871 /caputils/capture_ifinfo.h | |
parent | b5530e7021fa68c1d8e7e454b758cfea64acd6ba (diff) |
if_capabilities: Use a structured error msg from dumpcap
Have dumpcap in child mode return an error message with a primary and
secondary string, instead of using stderr. When writing to the console
log we ignore the second message to prevent flooding the log with
tutorial-like info on permissions.
Diffstat (limited to 'caputils/capture_ifinfo.h')
-rw-r--r-- | caputils/capture_ifinfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/caputils/capture_ifinfo.h b/caputils/capture_ifinfo.h index 9965703538..5034ddb720 100644 --- a/caputils/capture_ifinfo.h +++ b/caputils/capture_ifinfo.h @@ -124,7 +124,8 @@ typedef struct { extern if_capabilities_t * capture_get_if_capabilities(const gchar *devname, gboolean monitor_mode, const gchar *auth_string, - char **err_str, void (*update_cb)(void)); + char **err_primary_msg, char **err_secondary_msg, + void (*update_cb)(void)); void free_if_capabilities(if_capabilities_t *caps); |