openziti / ziti-sdk-c

A C-based sdk for delivering secure applications over a Ziti Network
https://docs.openziti.io/docs/reference/developer/sdk/ziti-sdk-c
Apache License 2.0
71 stars 14 forks source link

ziti-edge-tunnel does not work with Teltonika RUTOS #463

Closed jlin-nf closed 1 year ago

jlin-nf commented 1 year ago

Compiled ziti-edge-tunnel with SDK for OS: RUT9_R_00.07.02.7

https://wiki.teltonika-networks.com/gpl/RUT9_R_GPL_00.07.02.7.tar.gz

The Endian is not compiled correctly, the lwip is not interpret the data correctly. Following is the trace:

(6386)[ 12.296] TRACE tunnel-sdk:netif_shim.c:56 netif_shim_input() received packet TCP[100.64.0.1:60126 -> 11.11.11.12:22] len=60 IP (len 15360) is longer than pbuf (len 60), IP packet dropped. (6386)[ 14.310] TRACE tunnel-sdk:netif_shim.c:56 netif_shim_input() received packet TCP[100.64.0.1:60126 -> 11.11.11.12:22] len=60 IP (len 15360) is longer than pbuf (len 60), IP packet dropped. (6386)[ 15.172] TRACE tunnel-cbs:ziti_tunnel_ctrl.c:198 process_cmd() processing command[GetMetrics] with data[{"Identifier":"james-ramco-teltonika4.json"}] (6386)[ 18.342] TRACE tunnel-sdk:netif_shim.c:56 netif_shim_input() received packet TCP[100.64.0.1:60126 -> 11.11.11.12:22] len=60 IP (len 15360) is longer than pbuf (len 60), IP packet dropped. (6386)[ 20.172] TRACE tunnel-cbs:ziti_tunnel_ctrl.c:198 process_cmd() processing command[GetMetrics] with data[{"Identifier":"james-ramco-teltonika4.json"}] (6386)[ 21.206] ERROR ziti-sdk:channel.c:681 ch_connect_timeout() ch[1] connect timeout

scareything commented 1 year ago

@jlin-nf I moved this to https://github.com/openziti/ziti-tunnel-sdk-c/issues/534