Display the frame number on the packet summary line if it's one of the configured columns. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9317

#BACKPORT(1.10,1.8)

svn path=/trunk/; revision=52838
This commit is contained in:
Chris Maynard 2013-10-25 12:51:16 +00:00
parent cf1f098afb
commit 62b66aca7c
1 changed files with 0 additions and 15 deletions

View File

@ -3542,21 +3542,6 @@ print_columns(capture_file *cf)
continue;
switch (cf->cinfo.col_fmt[i]) {
case COL_NUMBER:
#ifdef HAVE_LIBPCAP
/*
* Don't print this if we're doing a live capture from a network
* interface - if we're doing a live capture, you won't be
* able to look at the capture in the future (it's not being
* saved anywhere), so the frame numbers are unlikely to be
* useful.
*
* (XXX - it might be nice to be able to save and print at
* the same time, sort of like an "Update list of packets
* in real time" capture in Wireshark.)
*/
if (global_capture_opts.ifaces->len > 0)
continue;
#endif
column_len = col_len = strlen(cf->cinfo.col_data[i]);
if (column_len < 3)
column_len = 3;