Skip to content

clarify statistics output #55

@lmb

Description

@lmb

xdpcap currently creates the following output when capturing into a file:

aborted: 0/0	drop: 0/0	pass: 255/211	tx: 0/0	(received/matched packets)
Error: lost 10 packets
Error: lost 4 packets

First, it's not entirely clear to me what the distinction between received / matched is. Maybe it would be nicer if there was a separate "all" column that just counted the number of packets without filtering and just showing the number of matched packets per action:

aborted: 0	drop: 0	pass: 211	tx: 0	total: 255 (of which 211 matched)

Second, the message for lost packets can be a bit noisy. Maybe that become a column as well:

aborted: 0	drop: 0	pass: 211	tx: 0	lost: 14	total: 255 (of which 211 matched)

Another option would be to only print the number of lost packets when exiting via Ctrl-C, similar to tcpdump.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions