Ask Your Question
0

capinfos -S output is too much

asked 2021-12-06 01:44:15 +0000

7ACE gravatar image

updated 2021-12-06 01:48:27 +0000

Hello,

On Windows 10,"capinfos -S",is the command output too much ?

$ capinfos -S test.pcapng
File name:           test.pcapng
File type:           Wireshark/... - pcapng
File encapsulation:  Ethernet
File timestamp precision:  microseconds (6)
Packet size limit:   file hdr: (not set)
Number of packets:   20 k
File size:           9213 kB
Data size:           8530 kB
Capture duration:    37.528437 seconds
First packet time:   1629034467.791910
Last packet time:    1629034505.320347
......


Is it right ?
$ capinfos -S test.pcapng
First packet time:   1629034467.791910
Last packet time:    1629034505.320347


$ capinfos -v                                                                              
Capinfos (Wireshark) 3.6.0 (v3.6.0-0-g3a34e44d02c9)

Sorry,please forgive my english.

Regards, 7ACE

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-12-06 02:05:24 +0000

Chuckc gravatar image

Add an option to capinfos to print start and end times as seconds, which makes time-shifting using editcap easier.

    case 'S':
      time_as_secs = TRUE;
      break;


Perhaps the man page should explain that it only modifies the format of those values.
Output is not limited to just those values such as -t just printing the capture type.

edit flag offensive delete link more

Comments

Thank you for the clear explanation.

if (report_all_infos) disable_all_infos();

  case 'e':
    if (report_all_infos) disable_all_infos();
    cap_end_time = TRUE;
    break;

  case 'S':
    time_as_secs = TRUE;
    break;

  case 'y':
    if (report_all_infos) disable_all_infos();
    cap_data_rate_byte = TRUE;
    break;
7ACE gravatar image7ACE ( 2021-12-06 03:13:17 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-12-06 01:44:15 +0000

Seen: 98 times

Last updated: Dec 06 '21