Skip to content

Conversation

@pemensik
Copy link
Collaborator

Fixes issue when --bind-dynamic is active and interface dnsmasq is listening on is dropped and later recreated. Redhat bug #1728701

@pemensik
Copy link
Collaborator Author

Thread on upstream archive

Log in debug mode listening on interfaces. They can be dynamically
found, include interface number, since it is checked on TCP connections.
Print also addresses found on them.
On many places return value is ignored. Usually it means port is always
the same and not needed to be displayed. Unify warnings.
If interface is recreated with the same address but different index, it
would not change any other parameter.

Test also address family on incoming TCP queries.
Clean addresses and interfaces not found after enumerate. Free unused
records to speed up checking active interfaces and reduce used memory.
Save listening address into listener. Use it to find existing listeners
before creating new one. If it exist, increase just used counter.
Release only listeners not already used.

Duplicates family in listener.
Since address already contain family, remove separate family from
listener. Use now family from address itself.
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