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

siproxd: improve network device resolution #843

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

guidosarducci
Copy link
Contributor

Maintainer: @micmac1 @jslachta

Description:
Resolve network devices by first trying network_get_device (L3) and falling back to network_get_physdev (L2) on failure, which allows using Wireguard interfaces. Both are needed to avoid breaking existing usage for some interfaces (e.g. wan).

Also add myself as a maintainer.

This might help or fix #800, but I can't reproduce the error myself and don't have a VOIP-over-Wireguard setup at hand.

Testing:
Compile tested for ipq40xx, targeting EA6350v3 device on master.

Run tested on EA6350v3 with 23.05.2.
Checked problems with network_get_device and network_get_physdev from CLI, and confirmed siproxd config file /var/etc/siproxd/siproxd-general.conf contains correct wg interface after startup with this change.

Resolve network devices by first trying 'network_get_device' (L3) and
falling back to 'network_get_physdev' (L2) on failure, which allows using
Wireguard interfaces. Both are needed to avoid breaking existing usage
for some interfaces (e.g. 'wan').

Also add myself as a maintainer.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
@jslachta
Copy link
Contributor

Hi Tony (@guidosarducci),

I accept your changes. Thank you!

Kind regards,
Jiri

@jslachta jslachta merged commit 04666c3 into openwrt:master Nov 25, 2023
10 of 11 checks passed
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.

siproxd: init wait wireguard interface be up
2 participants