diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-28 01:23:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-28 01:23:28 +0000 |
commit | ee57847596ca14d02588b5690a3a59cb8296fdd4 (patch) | |
tree | 4f90a902815d443dc2af0bd50d9ee3bef465c649 /summary.c | |
parent | 88fb10b8a35b8867cdcae61a7caad3323527c6c0 (diff) |
That doesn't work correctly if we read in a file with no interface
information, as it'll fill in whatever stuff happens to be in the
capture info. We should somehow figure uot whether this is a capture we
just did (note: cf->is_tempfile does *NOT* necessarily tell us that, as
it's set for the result of a merge, and is cleared if we save the
capture) and fill in the interface information only if that's the case.
Put in a comment to note that we need to do that.
svn path=/trunk/; revision=42874
Diffstat (limited to 'summary.c')
-rw-r--r-- | summary.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -207,6 +207,9 @@ summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_ guint i; if (st->ifaces->len == 0) { + /* + * XXX - do this only if we have a live capture. + */ for (i = 0; i < capture_opts->all_ifaces->len; i++) { device = g_array_index(capture_opts->all_ifaces, interface_t, i); if (!device.selected) { |