mwan3: refresh source ip in mwan3track #27745
Open
+3
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📦 Package Details
Maintainer: @feckert
Description:
It is possible for the source IP to change without an ifup event. As the USR1 and USR2 signal are already used for ifup and ifdown, there is no possibility to add another trigger for refreshing the source IP only.
When receiving an ifup, then the source IP is refreshed. However, in addition to that, the current interface state is set to the assumed initial interface state which is an unwanted side effect in this case.
This patch refreshes the source IP during every iteration of the main loop, that is all sleep_time seconds where sleep_time is by default ten seconds. There is one mwan3track process per interface. Thus, I make the assumption that this does not cause a noticable amount of extra system load.
🧪 Run Testing Details
✅ Formalities
If your PR contains a patch:
git am(e.g., subject line, commit description, etc.)
We must try to upstream patches to reduce maintenance burden.