Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select only interfaces that are "up" #53

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

stephen-soltesz
Copy link
Contributor

@stephen-soltesz stephen-soltesz commented Jun 30, 2023

This change adds a filter so that the interfaces used are actually administratively "up". This is necessary because packets cannot be collected from down interfaces. For example:

iterfaces.go:100: Could not create libpcap client for {'\x02' 'ל' "eno1" "3c:ec:ef:ce:f7:8e" "broadcast|multicast"} (error: eno1: That device is not up)

Part of:

The previous change from #52 only filtered down interfaces that were provided with the -interfaces flag, which neglected all automatically detected interfaces.


This change is Reviewable

@stephen-soltesz stephen-soltesz changed the title Filter up interfaces Select only interfaces that are "up" Jun 30, 2023
Copy link
Contributor

@nkinkade nkinkade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@stephen-soltesz stephen-soltesz merged commit ce1f6cf into main Jun 30, 2023
@stephen-soltesz stephen-soltesz deleted the sandbox-soltesz-interfaces-up branch June 30, 2023 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants