aboutsummaryrefslogtreecommitdiffstats
path: root/sharkd.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-07-07 22:43:29 -0700
committerGuy Harris <gharris@sonic.net>2021-07-08 00:05:35 -0700
commitdd5907d2a3f6d0ac572a76770b43422b0b82c2ab (patch)
tree88c706f42fc5b21ee0f9d12e949a02f16651a554 /sharkd.c
parent6dfa2cb0ae4f15d171da8cf77f2a6e11d35d0d86 (diff)
Consistently refer to blocks that have been modified as "modified".
"User" sounds as if the blocks belong to the user; at most, the current user might have modified them directly, but they might also have, for example, run a Lua script that, unknown to them, modified comments. Also, a file might have "user comments" added by a previous user, who them wrote the file and and provided it to the current user. "Modified" seems a bit clearer than "changed".
Diffstat (limited to 'sharkd.c')
-rw-r--r--sharkd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sharkd.c b/sharkd.c
index deac44b06f..3eb5fbd0c6 100644
--- a/sharkd.c
+++ b/sharkd.c
@@ -241,7 +241,7 @@ sharkd_epan_new(capture_file *cf)
sharkd_get_frame_ts,
cap_file_provider_get_interface_name,
cap_file_provider_get_interface_description,
- cap_file_provider_get_user_block
+ cap_file_provider_get_modified_block
};
return epan_new(&cf->provider, &funcs);
@@ -769,25 +769,25 @@ sharkd_filter(const char *dftext, guint8 **result)
}
/*
- * Get the user block if available, nothing otherwise.
+ * Get the modified block if available, nothing otherwise.
* Must be cloned if changes desired.
*/
wtap_block_t
-sharkd_get_user_block(const frame_data *fd)
+sharkd_get_modified_block(const frame_data *fd)
{
- return cap_file_provider_get_user_block(&cfile.provider, fd);
+ return cap_file_provider_get_modified_block(&cfile.provider, fd);
}
/*
- * Gets the user block if available, otherwise the packet's default block,
+ * Gets the modified block if available, otherwise the packet's default block,
* or a new packet block.
* User must wtap_block_unref() it when done.
*/
wtap_block_t
sharkd_get_packet_block(const frame_data *fd)
{
- if (fd->has_user_block)
- return wtap_block_ref(cap_file_provider_get_user_block(&cfile.provider, fd));
+ if (fd->has_modified_block)
+ return wtap_block_ref(cap_file_provider_get_modified_block(&cfile.provider, fd));
if (fd->has_phdr_block)
{
wtap_rec rec; /* Record metadata */
@@ -814,9 +814,9 @@ sharkd_get_packet_block(const frame_data *fd)
}
int
-sharkd_set_user_block(frame_data *fd, wtap_block_t new_block)
+sharkd_set_modified_block(frame_data *fd, wtap_block_t new_block)
{
- cap_file_provider_set_user_block(&cfile.provider, fd, new_block);
+ cap_file_provider_set_modified_block(&cfile.provider, fd, new_block);
return 0;
}