diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-07-18 16:04:22 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-07-18 23:04:59 +0000 |
commit | e5fa40ab31fd127b4ad005448b6676fe9517a755 (patch) | |
tree | 3b3f84647819cce889f9049d48865e6542380580 /file.c | |
parent | 6df8e83e5754a883e768573a0bae8199f1c8fb9c (diff) | |
download | wireshark-e5fa40ab31fd127b4ad005448b6676fe9517a755.tar.gz |
Mark the file as having unsaved data if you change address resolution.
That information can, and will, get saved in some file formats, so mark
the file as changed so it can and will get saved by "Save".
XXX - we need to treat it as a type of data that can be discarded when
saving in some file formats, just like comments.
Bug: 12629
Change-Id: I1fd69b95f4f7345c339961b4c53c28b98b364e4e
Reviewed-on: https://code.wireshark.org/review/16538
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -3977,6 +3977,24 @@ cf_comment_types(capture_file *cf) return comment_types; } +/* + * Add a resolved address to this file's list of resolved addresses. + */ +gboolean +cf_add_ip_name_from_string(capture_file *cf, const char *addr, const char *name) +{ + /* + * XXX - support multiple resolved address lists, and add to the one + * attached to this file? + */ + if (!add_ip_name_from_string(addr, name)) + return FALSE; + + /* OK, we have unsaved changes. */ + cf->unsaved_changes = TRUE; + return TRUE; +} + #ifdef WANT_PACKET_EDITOR static gint g_direct_compare_func(gconstpointer a, gconstpointer b, gpointer user_data _U_) |