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

Ignore newaddr/deladdr notifications for unknown interfaces #467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fhunleth
Copy link
Member

@fhunleth fhunleth commented Jun 1, 2023

Previously, these would be labeled with the "__unknown" network
interface name. This ended up causing more problems since code watching
network interfaces would try to do things with the "__unknown" network.
It also didn't help, the notifications were effectively ignored by
stashing them there and it was impossible to use "__unknwon" since it
could accumulate information from several network interfaces.

The solution in this PR is to just drop the notifications. That doesn't
change behavior for any code listening to real network interfaces. I do
not know of any use of the "__unknown" interface. Messages are logged,
but through my debug I couldn't find a reason to make more than debug
level since I think they're artifacts of asynchronous cleanup of network
interfaces.

Previously, these would be labeled with the "__unknown" network
interface name. This ended up causing more problems since code watching
network interfaces would try to do things with the "__unknown" network.
It also didn't help, the notifications were effectively ignored by
stashing them there and it was impossible to use "__unknwon" since it
could accumulate information from several network interfaces.

The solution in this PR is to just drop the notifications. That doesn't
change behavior for any code listening to real network interfaces. I do
not know of any use of the "__unknown" interface. Messages are logged,
but through my debug I couldn't find a reason to make more than debug
level since I think they're artifacts of asynchronous cleanup of network
interfaces.
@fhunleth
Copy link
Member Author

fhunleth commented Jun 1, 2023

Don't merge. This is more involved that I thought. It will need some additional thought.

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.

1 participant