evgeny
a0b671069a
Keep Android calls active independently of screen and UI
2026-09-30 19:12:04 +03:00
evgeny
b6af21fc01
Improve call buffering, CM handle lifecycle and radio PTT controls
2026-09-30 17:31:53 +03:00
evgeny
4fcb587e44
Prioritize supernodes in invites and update chat background and ringtone
2026-09-30 12:56:59 +03:00
evgeny
1be40b220d
Fix TCP proxy use-after-free during synchronous close
2026-09-30 10:43:02 +03:00
evgeny
324a0e4a7a
call: add SpeexDSP AEC (acoustic echo cancellation) for desktop + Android
2026-09-29 17:01:30 +03:00
evgeny
4c18dfc067
radio: Silero VAD + auto-PTT; chatgui/android: app icon and background
2026-09-29 16:19:25 +03:00
evgeny
634de00031
lwip/proxy: trace PCB lifetime in debug category, drop old noisy debug
2026-09-29 13:18:18 +03:00
evgeny
6517bbeb2d
Preserve proxy TCP streams across connect, backpressure and FIN
2026-09-29 04:00:34 +03:00
evgeny
3a8ef56b61
Isolate datagram proxy state and replies between instances and peers
2026-09-29 03:58:14 +03:00
evgeny
939276cf5d
Notify TCP writers when the final synchronous send drains
2026-09-29 03:57:15 +03:00
evgeny
14baf6389a
Fix UDP and ICMP packet construction at the TUN boundary
2026-09-29 03:56:55 +03:00
evgeny
0949dba6f0
Guard routing loops and reconcile blocked transit against current paths
...
Track visited nodes outside the signed body for all routed packet types. Recheck queued transit routes without losing FIFO priority, reject unknown-group transit, and suppress BGP announcements caused only by RTT jitter.
Document routing rules and wire format. Validate graph churn, REINIT, encrypted transit, malformed paths, loop drops and queue cleanup; full suite: 106 passed, 1 skipped, plus proxy integration and sanitizer checks.
2026-09-28 15:36:47 +03:00
evgeny
7c17dbd165
Prune unconfirmed BGP paths and restart stalled exchanges
2026-09-28 14:58:13 +03:00
evgeny
57be96e93f
Reconcile BGP paths and advertise selected routes per neighbor
2026-09-28 14:37:44 +03:00
evgeny
706e76452c
Fix WITHDRAW removing nodes with surviving paths
2026-09-28 14:20:55 +03:00
evgeny
c64d969c3a
diagnostics: explain and rate-limit rejected ETCP session data
2026-09-28 13:16:39 +03:00
evgeny
fa36a5e99a
fix: accept invite public keys with a leading zero byte
2026-09-28 12:26:13 +03:00
evgeny
73b4050638
Separate core, UTUN and chat lifecycles with owned asynchronous work
2026-09-28 11:39:08 +03:00
evgeny
68907c0565
Use shared group requests for config and chat connection planners
2026-09-28 11:07:25 +03:00
evgeny
923fd21444
Serialize group topology lazily through a cancellable backpressure sender
2026-09-28 02:45:00 +03:00
evgeny
c4ecc07e38
Negotiate group sessions and scope topology messages to peer epochs
2026-09-28 02:15:54 +03:00
evgeny
2f62d4d103
Own recovery attempts in group sessions and require restored routes
2026-09-27 23:06:48 +03:00
evgeny
4a61ff2c22
Track topology exchange readiness per group and peer
2026-09-27 22:14:03 +03:00
evgeny
8f7e92b584
Route UTUN configuration and group ownership through NCD
2026-09-27 21:59:32 +03:00
evgeny
7b9f5b281d
Define join contract and require committed CHAT membership for BGP
2026-09-27 20:34:24 +03:00
evgeny
b9e1a62c7f
Release group NCD ownership when destroying peers
2026-09-27 20:08:17 +03:00
evgeny
7c119d2c02
Apply fresh BGP addresses to shared NCD connections
2026-09-27 19:18:40 +03:00
evgeny
5f231ff626
Version signed node snapshots with persistent timestamps
2026-09-27 19:11:11 +03:00
evgeny
60108a8f11
Support 8 KiB member owner tags without signature or serialization truncation
2026-09-27 17:12:13 +03:00
evgeny
7380684199
Add bounded Merkle pull lifecycle and terminal error handoff
2026-09-27 16:17:04 +03:00
evgeny
01a49c7a4a
Refactor Merkle sync into bounded bidirectional rounds with atomic member updates
2026-09-27 14:44:39 +03:00
evgeny
8454c0835c
Restrict dynamic auto socket test to Linux
2026-09-27 12:48:40 +03:00
evgeny
0f35f3b996
Bound ETCP receive window and fix timestamp and allocator UB
2026-09-27 12:16:15 +03:00
evgeny
6fea8af2e5
Fix autosocket ownership and exercise interface churn under load
2026-09-27 11:57:29 +03:00
evgeny
10562224d7
Fix ETCP session recovery and router lifecycle; confirm chat invites before publishing
2026-09-27 02:51:47 +03:00
evgeny
ba431187d8
ll_queue: queue_waiter_cancel отменяет отложенный call_soon при internal==NULL (фикс UAF waiter_defer)
2026-09-26 18:58:27 +03:00
evgeny
b23402dafb
ll_queue: отложенный первый запуск автозабора (callback_defer) + тест
...
queue_set_callback_defer(q, 1) переносит первый запуск callback из
queue_data_put* в uasync_call_soon (очистка стека производителя).
Повторные запуски (queue_resume_callback) и так всегда deferred.
2026-09-26 16:42:46 +03:00
evgeny
cf169d0a6a
tun proxy: фикс TCP-суммы (нечётный pbuf), FIN до дренажа to_lwip, tcp_bind/rexmit_fast/active_pcbs_changed + нагрузочный burst-тест
2026-09-25 23:36:45 +03:00
evgeny
94ec8b6118
proxy/tun: добавить DEBUG-логи диагностики застревания keep-alive (lwIP IN/OUT/RECVED/RTO/PERSIST + per-conn DIAG)
2026-09-25 22:12:47 +03:00
evgeny
e6d2c774f3
route_connectivity: фикс UAF при удалении узла с влётными пробами; отмена TCP-пингов при teardown
...
- topo_nodeq_remove_node: единый хелпер удаления nq (cancel проб + free paths/subnets + remove + free), заменяет все free-сайты
- route_connectivity_cancel_all: итерация по всем группам + зануление ctx->nq + отмена standby-defer
- etcp_send_tcp_ping: out_cli — хендл stcp_client для досрочной отмены; conn_probe_ctx.tcp_cli
- conn_mgr: cand_tcp_pings[] — отмена влётных candidate TCP-пингов в conn_mgr_destroy
2026-09-25 16:01:19 +03:00
evgeny
3722e28660
chat: defer media auto-download to per-channel backfill after sync
...
- db_sync insert-cb gets initial_sync flag (SEND_DATA=1, PUSH/local=0)
- on_msg_inserted skips media download during initial sync
- new chat_media_autodownload_backfill_channel (newest-first) triggered
on SYNC_DONE per channel (2s debounce)
2026-09-21 02:07:24 +03:00
evgeny
6a7a02d6b8
tests: fix Windows build — SKIP fork-based e2e, cross-platform mkdtemp/setenv
2026-09-20 20:21:50 +03:00
evgeny
58f679c215
uasync: pass socket name to all add_socket call sites
2026-09-20 01:13:38 +03:00
evgeny
e38b2619cd
radio: дедупликация дублей в mesh + фикс OOB в hop_list
...
- radio_recv: кэш (src,stream,seq) с TTL 2с гасит кадры, пришедшие по второму пути (diamond/mesh)
- фикс записи за границу new_hops[hop_count] при hop_count==RADIO_MAX_HOPS
- счётчик c_dup_dropped + radio_dup_dropped() для диагностики
- тест test_radio_mesh (4 узла, diamond): C получает ровно N кадров, dup>0
2026-09-19 18:16:42 +03:00
evgeny
2ac04de295
radio: PTT-радио в каналах (src/radio + chatgui + chatgui-android)
...
Новый модуль src/radio (radio/radio_audio/radio_headless) — push-to-talk
радио поверх topo-групп, доставка аудио в канал, headless-режим и тесты.
Интеграция в chatgui (ptt_hotkey_manager, radio_audio_engine, радионастройки,
вызовы) и chatgui-android (RadioAudioEngine, RadioOverlayService, UI).
2026-09-19 17:09:00 +03:00
evgeny
a702c06305
conn_mgr: handle-based API (conn_mgr_open/close), фазы DIRECT/REVERSE/INDIRECT, тесты phases+handles
2026-09-19 09:31:08 +03:00
evgeny
af5c6af19f
topo: remember REQUEST_TABLE for not-yet-created groups, fulfill on create
...
При REQUEST_TABLE для ещё не созданной группы (CHAT-канал не загружен) пир
дропал запрос, и проситель навсегда не узнавал таблицу — односторонняя
видимость (звонок android→linux падал «peer offline»). Теперь запрос
запоминается в pending_table_reqs[32] и выполняется при создании группы
(topo_group_fulfill_table_reqs → handle_request_table).
Попутно: test_chat_join_e2e — критерий успеха через CHAT_EVT_CONNECT_RESULT
(JOIN_READY) вместо senders_list; doxygen-комментарии в etcp_api.h.
2026-09-18 23:36:45 +03:00
evgeny
47eba3892a
reality/stcp: fix OOB read in key_share parse, padding clamp, shbuf leak
...
- reality_parse_client_hello: bound shares_len by extension data length
(len-2) to prevent stack-buffer-overflow from malformed ClientHello
- stcp handshake: reject padding_size > STCP_HS_PADDING_MAX (512)
- reality_ch_body_cb: free shbuf on stcp_try_send error (leak)
- tests: fuzz key_share parse; raw-socket handshake control/clamp/garbage
Signed-off-by: uTun <dev@utun>
2026-09-18 17:20:19 +03:00
evgeny
8b081edeea
sock_match: классификация сокета по адресу, а не по type из конфига (fix Q8/Android→LAN)
...
ip_is_public() вынесен в lib/platform_compat (единый классификатор IPv4 с ntohl).
auto_socket_reconcile_config: тип сокета выставляется по фактическому адресу.
sock_collect_views: has_priv/has_inet/is_eim — по классификации адреса и NAT-детекции.
is_local_subnet упрощён до !ip_is_public(). Тест test_sock_match обновлён.
2026-09-16 20:26:55 +03:00
evgeny
c3faa7ed2c
call: единый голосовой стек (libutun_voice) + SoundTouch на Android
...
- voice_jitter (кодированные Opus-кадры + decode-on-pull + SoundTouch time-stretch)
вместо PCM-буфера audio_jitter; излишек держится до декодирования
- call_audio.c/.h — единая реализация для desktop/Android/headless (C-интерфейс)
- libutun_voice (voice_sources.cmake): SoundTouch + voice_jitter + call_audio + call_tones
- Android: pull-модель (nativeCallAudioPull), убран Kotlin FIFO, ANDROID_STL=c++_static
- headless audio-сокет: PCM-протокол (decode-only, без тактирования), daemon остаётся C-only
- CALL_STATS расширен dropped/underruns; удалены audio_jitter.cpp и libutun_lite/call_audio.c
- тест test_voice_jitter (ёмкость/догон/стационар), test_call_headless переведён на PCM
2026-09-16 20:26:55 +03:00