Open LilMouse opened 1 month ago
I would definitely start by trying lws main branch
Thanks for the suggestion. It took a bit longer to get the main branch into buildroot so it took a bit longer than expected.
But it has the same result:
[2024/08/06 14:00:41:0237] N: lws_create_context: LWS: 4.3.99-2021.11.1.1, NET CLI SRV H1 H2 WS SS-JSON-POL ConMon IPV6-off
[2024/08/06 14:00:41:0247] N: __lws_lc_tag: ++ [wsi|0|pipe] (1)
[2024/08/06 14:00:41:0256] N: __lws_lc_tag: ++ [vh|0|netlink] (1)
[2024/08/06 14:00:41:0263] N: __lws_lc_tag: ++ [vh|1|default||-1] (2)
/// ifup ppp0
[2024/08/06 14:01:18:3695] N: __lws_lc_tag: ++ [wsicli|1|WS/h1/default/192.168.255.254] (1)
[2024/08/06 14:01:18:3700] N: [wsicli|1|WS/h1/default/192.168.255.254]: lws_sort_dns: 192.168.255.254 has no route out
[2024/08/06 14:01:18:3717] N: __lws_lc_untag: -- [wsicli|1|WS/h1/default/192.168.255.254] (0) 2.085ms
[2024/08/06 14:01:18:3728] W: lws_smd_message_pending: timing out queued message 0x76000ad8
[2024/08/06 14:01:18:3738] N: rops_handle_POLLIN_netlink: DELADDR
[2024/08/06 14:01:35:7694] N: __lws_lc_tag: ++ [wsicli|2|WS/h1/default/192.168.255.254] (1)
[2024/08/06 14:01:35:7697] N: [wsicli|2|WS/h1/default/192.168.255.254]: lws_sort_dns: 192.168.255.254 has no route out
PS: the "2021.11.1.1" in the version is probably from the buildroot I am using. (which is 2021.11.1.1) But I based the libwebsocket package on the current main branch
Hello,
INFO
I am using libwebsockets version 4.3.3 and the minimal ws client example. It is cross compiled for a linux (buildroot) system with -DLWS_WITH_NETLINK=1
The issue
When the ppp0 (GSM) connection comes up (by running
ifup ppp0
), after the connection is started it has no route.I understand why the message "has no route out" is given before the interface is up, but I would assume it can connect when the ppp0 interface is up and there is a route. I see
rops_handle_POLLIN_netlink: DELADDR
when the interface is going up but I would have expected anADDADDR
.The only thing I changed in the minimal example is the IP address & path because this SIM can only connect to a specific IP range.
If the ppp0 connection is up before starting the minimal example it connects without an issue.
LOG
But if I check the default route is there.
it seems to be similar to issue #2311 but the links there to the setup/examples are broken so I can't see the fix.
EDIT
I also tested it with -DLWS_WITH_NETLINK=0, that seems to work. Could this be a netlink bug or is this working as intended?