diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-09 04:33:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-09 04:33:26 +0000 |
commit | c8d2cd3cb51a4144b38bfaf82482bd30d7df1064 (patch) | |
tree | 35021789d235618531aa84e14807ed9fbdf789ec /epan/column-utils.h | |
parent | a5ddd187ca1ac67edfceba0702f5f017f6447d4b (diff) |
In packet_list_dissect_and_cache_record(), set the columns to
*something* if we get an error reading the packet from the capture file,
rather than leaving them as null (which will cause a crash).
svn path=/trunk/; revision=36527
Diffstat (limited to 'epan/column-utils.h')
-rw-r--r-- | epan/column-utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/column-utils.h b/epan/column-utils.h index 37148a833a..7e99094e23 100644 --- a/epan/column-utils.h +++ b/epan/column-utils.h @@ -70,6 +70,14 @@ extern void col_fill_in_frame_data(const frame_data *fd, column_info *cinfo, con */ extern void col_fill_in(packet_info *pinfo, const gboolean fill_col_exprs, const gboolean fill_fd_colums); +/** Fill in columns if we got an error reading the packet. + * We set most columns to "???", and set the Info column to an error + * message. + * + * Internal, don't use this in dissectors! + */ +extern void col_fill_in_error(column_info *cinfo, frame_data *fdata, const gboolean fill_col_exprs, const gboolean fill_fd_colums); + /* Utility routines used by packet*.c */ /** Are the columns writable? |