diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-07-24 19:25:44 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-07-25 03:00:43 +0000 |
commit | 35b4487538dc88a5687c5e3a99c8c70c099fdfa8 (patch) | |
tree | 959e1cbf88f1fba0cea7c4bc5b18d2b4901b25ea /capture_opts.h | |
parent | 0501465a3acb2abc108177ea5149ec8de4a05210 (diff) | |
download | wireshark-35b4487538dc88a5687c5e3a99c8c70c099fdfa8.tar.gz wireshark-35b4487538dc88a5687c5e3a99c8c70c099fdfa8.tar.bz2 wireshark-35b4487538dc88a5687c5e3a99c8c70c099fdfa8.zip |
Handle empty interface lists when the list changes.
Don't assume that a change to the interface list is from a non-empty
interface list to a different non-empty interface list.
Change-Id: I94054ca0cf2661704aff1869385aa2155c19677d
Reviewed-on: https://code.wireshark.org/review/3193
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capture_opts.h')
-rw-r--r-- | capture_opts.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/capture_opts.h b/capture_opts.h index a603a6e330..2097e2ab4d 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -236,10 +236,14 @@ typedef struct interface_options_tag { /** Capture options coming from user interface */ typedef struct capture_options_tag { /* general */ - GArray *ifaces; /* the interfaces to use for the next capture, - entries are of type interface_options */ - GArray *all_ifaces; /* all interfaces, - entries are of type interface_t */ + GArray *ifaces; /**< the interfaces to use for the + next capture, entries are of + type interface_options */ + GArray *all_ifaces; /**< all interfaces, entries are + of type interface_t */ + int ifaces_err; /**< if all_ifaces is null, the error + when it was fetched, if any */ + gchar *ifaces_err_info; /**< error string for that error */ guint num_selected; /* |