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

Linux: Refine connection status reporting. #1389

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

infrastation
Copy link
Member

This is a disputable change because the new behaviour improves reporting of some interface types, but has potential for making reporting of other types worse. The reason for that is that many logical interfaces pretend to be Ethernet. Perhaps it will be easier to understand the best course of action after studying at various examples.

Let's make this a draft for now.

Add CAN and a few tunnel interface varieties to the list of ARP hardware
types that do not have a connections status, and instead of skipping
these types set PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE.  For other
types that fail SIOCETHTOOL with specific error codes set
PCAP_IF_CONNECTION_STATUS_UNKNOWN.
@infrastation infrastation marked this pull request as draft December 1, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant