From 41a172cc953382e4c830481dea14d895c622754e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 5 Mar 2021 04:09:47 +0000 Subject: 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. --- caputils/capture_ifinfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'caputils/capture_ifinfo.h') 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); -- cgit v1.2.3