915 Commits
Author SHA1 Message Date
eries cb531a0f69 ci(release): add full, clash-api and native-api artifacts 2026-10-20 22:40:19 +08:00
eries 38368ed3a3 feat(ebpf): read OpenWrt's external BTF when sysfs vmlinux is absent 2026-10-20 19:50:31 +08:00
eries aebc0d78d5 refactor(core): split the native flow and flow observation test suites 2026-10-20 18:03:33 +08:00
eries 4df09e3d26 refactor(core): split the native API config and probe test suites 2026-10-20 18:03:33 +08:00
eries 8fa8daa562 refactor(outbound): move the selection test and split the mux suite 2026-10-20 18:03:33 +08:00
eries e86722619c refactor(config): move node tests out and split the diagnostics suite 2026-10-20 18:03:32 +08:00
eries b3312d492d test(config): re-anchor the conformance manifest to the current doc fences 2026-10-20 18:03:32 +08:00
M0re Co1ors b71b6b65d4 fix(datapath): follow-ups to the datapath fixes (#149)
* fix(ebpf): key the IPv6 new-flow budget by /64

* fix(ebpf): match IPv6 fragments on address and identification only

* fix(ebpf): record an expiry hint only after the ring accepts it

* refactor(core): size UDP commit batch buffers by request count

* test(core): drop tests that pass without their change and widen deadline margins

* docs(datapath): describe the /64 budget, IPv6 fragment keys and hint recording

* docs(agents): restore the ActivateDirect grace and dead-outbound health invariants

* docs(datapath): state the per-CPU ceiling of the new-flow budget

* fix(ebpf): keep the IPv6 new-flow budget per source address

* docs(datapath): per-address IPv6 budget, accurate map ceiling, hint cost and UDP health wording
2026-10-20 12:37:46 +08:00
M0re Co1orsandZakk 5b854151c4 fix(ebpf): datapath correctness, long-connection keepalive and commit latency (#148)
* fix(native-ui): embed doona beta.20

* fix(udp): preserve and share QUIC source associations

* refactor(udp): add multi-target transport contract for shared sources

* fix(udp): route shared-source protocols through one generic source arm

* fix(udp): share one SOCKS5 association per client source

* fix(udp): share one Shadowsocks association across destinations

* fix(udp): share one Juicity UDP stream per client source and return real peers

* fix(udp): share one Trojan UDP stream per client source

* fix(udp): share AnyTLS source over non-connect UoT

* test(udp): benchmark production UDP send and receive

* fix(udp): share VLESS UoT v2 and H2MUX over addressed framing

* fix(udp): keep foreign domain names off the per-packet wire

* perf(udp): keep Hy2 address buffer out of the send future

* refactor(udp): select shared sources through the protocol registry

* docs(udp): document shared-source full-cone behavior and correct node defaults

* test(udp): prove shared-source full-cone through the real kernel path

* test(udp): benchmark shared-source overhead against ordinary flows

* build(core): drop duplicate dev-dependencies

* perf(udp): admit source replies with one endpoint lookup

* perf(udp): skip the reply timeout when the client socket is writable

* perf(udp): keep one retirement waiter across source replies

* fix(udp): type native UDP size refusals as local rejections

* fix(config): follow group members to re-derived node ids

* test(udp): check benchmark replies against their destination

* fix(config): keep group members off ambiguous stored node ids

* fix(udp): type interrupted shared frames and split oversized UDP modules

* docs(udp): name the shared AnyTLS uot transport in the ownership map

* fix(subscription): report provider usage and expiry

* test(udp): cover cancelled frame writes on VLESS UoT v2 and H2MUX

* refactor(udp): share the dialed-domain reply rule across UDP transports

* refactor(udp): name the empty-first-datagram rule on SourceTransport

* fix(quic): evict the oldest pending reassembly when the table is full

* fix(udp): warn when a source's foreign reply sockets saturate

* test(ci): run the shared-source sing-box interop matrix weekly

* bench(core): gate the real-I/O bench harness behind udp-bench

* fix(udp): keep an H2MUX window stall before the first chunk packet-local

* fix(udp): admit a datagram when its poisoned frame write starts

* fix(udp): fail a shared source whose uplink admits nothing for 30 s

* fix(udp): fail a stalled source across quiet gaps, not per deadline run

* docs(udp): describe the send attempt every source carrier now holds

* test(config): resync node documentation corpus ranges

* fix(subscription): preserve Mihomo TUIC ALPN defaults

* fix(ebpf): bind flow ownership and fence retirement

* fix(ebpf): preserve stable flow values and live ownership

* fix(udp): preserve fresh route and admission authority

* fix(ebpf): keep retransmitted SYNs on their original request

* test(ebpf): drop ownership cases that repeat a covered branch

* fix(ebpf): count TCP ownership publication failures

* refactor(ebpf): share auxiliary publication and split conntrack by protocol

* refactor(core): own retirement and namespace plumbing in single modules

* test(core): bind kernel cases to functions over shared fixtures

* test(core): make token-zero retirement fixture ownership-sensitive

* fix(nfqueue): keep full error chains in fatal decision reports

* docs: list kernel options required by TCP request ownership

* docs(datapath): state the SYN-flood cost of disabled cookies

* docs(control): name the janitor health owner

* refactor(ebpf): drop the redundant UDP claim flag

* refactor(core): plan expiry hints through the conn planner

* refactor(core): validate socket identity storage through the layout checker

* test(core): share the singleton retirement fixture

* test(core): seed retirement flows through the publisher

* test(core): start pin-error epochs through the retirement fixture

* fix(ebpf): never deny host sockets on identity capture failure

* test(config): resync how-to-start documentation ranges

* fix(group): honor network pins in URLTest retries

* fix(anytls): share one silent-window failure episode

* fix(probes): limit graph caps to leaf expansion

* fix(dns): capture bootstrap TCP fallback transport

* perf(outbound): box resolver futures only for observation

* perf(anytls): compile out inert observation storage

* fix(lifecycle): quiesce NFQUEUE and UDP before detaching hooks

* fix(lifecycle): recheck NFQUEUE health before datapath admission

* fix(lifecycle): wait for the UI download owner past its stop deadline

* fix(core): roll back started owners when native startup fails

* fix(udp): never start a preparation after the plan is decided

* fix(tcp): close accepted socket before retiring redirect state

* fix(native): keep kernel route on pinned TCP DNS flows

* fix(native): record UDP DNS refusals independent of DNS log

* fix(reload): clear automatic pins on no-op activation

* fix(native-api): commit geodata settings off the runtime worker

* fix(native-api): mask listener secrets in DNS responses

* fix(native-api): honor wildcard Accept-Encoding for directory UI

* fix(native-api): count each eBPF object once in memory telemetry

* fix(config): sync the current directory for a bare export filename

* fix(native-api): keep dependency identity across an unchanged reload

* fix(native-api): charge provider JSON allocations to snapshot retention

* fix(download): admit selected Score work before a routed download runs

* fix(subscription): skip cache-off providers in the offline body lookup

* fix(download): resolve forced-group hosts with the request's strict resolver

* fix(download): race resolved addresses for direct downloads

* fix(state): skip disabled Clash-owner rows in the legacy cache import

* fix(ui): open the download archive inside the output directory

* perf(routing): hash-index shared IP matcher interning

* fix(config): keep explicit group option presence in structured loaders

* fix(config): skip entry-shaped children of braced subscription entries

* fix(relay): treat unreachable client errors as client-side

* docs(operations): back up legacy subscription bodies before rollout

* docs(api): document refusal request lines at INFO

* docs(api): condition geodata persistence on owner initialization

* docs(api): use the pinned doona commit epoch

* docs(configuration): qualify mode persistence for native-disabled

* docs(groups): sync zh exact-ID selector exception

* docs(rules): name the actual VM lifecycle coverage

* docs(rules): include native-ui in the release feature recipe

* refactor(alive): extract health runner from probe

* refactor(state): let the cache writer own its flush deadline

* refactor(routing): move domain matching into routing/domain.rs

* refactor(config): move experimental section reader into parser/experimental.rs

* refactor(control): split UDP candidate preparation from connection init

* refactor(control): split UDP reply delivery from endpoint driver

* refactor(native-api): move listener secret masking into its own module

* refactor(config): centralize listener secret value decoding

* refactor(native-api): split managed entries and candidate validation

* refactor(control): centralize TCP selection observation

* refactor(observe): own DNS history in the recorder

* refactor(native-api): split security integration tests

* refactor(native-api): separate event HTTP adapters

* refactor(control): split HTTP prober from probers

* refactor(control): extract reload DNS preparation

* refactor(ebpf): share the batch map snapshot traversal

* fix(download): continue Score work across subscription redirects

* perf(reload): skip unpinned groups when clearing automatic pins

* fix(ebpf): prove accepted TCP children from sock_ops

* test(ebpf): verify the sock_ops callback body in the helper audit

* fix(ebpf): prove a child whose publication TC already marked Closing

* docs(datapath): drop the miscounted SYN retry timetable

* fix(routing): share fact IDs between identical matchers

* refactor(core): report retirement outcomes per request

* fix(core): retire UDP endpoints whose kernel flow was reclaimed

* fix(ebpf): select UDP listeners consistently

* fix(ebpf): rate-limit new flows per LAN source

* fix(ebpf): drop fragments of redirected and blocked datagrams

* perf(nfqueue): run staged UDP commits off the async worker

* perf(nfqueue): activate armed direct UDP without a grace period

* perf(nfqueue): batch staged UDP commits

* feat(ebpf): count redirect and handoff occupancy

* fix(core): drive janitor cadence from auxiliary occupancy

* fix(core): resume janitor scans from a persistent cursor

* fix(core): reclaim unpinned TCP and stateless UDP redirects after 30 s

* perf(core): widen retirement batches

* fix(ebpf): suspend reverse UDP learning under conn pressure

* fix(ebpf): learn local UDP service replies at the socket probe

* fix(ebpf): stop publishing TCP state from reverse-direction SYNs

* fix(ebpf): renew owned expired UDP handoffs

* fix(ebpf): exempt TCP port 53 from WAN egress health drops

* fix(ebpf): gate established TCP only at admission

* fix(core): fail startup when dae0_ingress cannot attach

* fix(ebpf): renew UDP conn from proxied replies

* fix(ebpf): continue the TCX chain on pure pass-through

* refactor(core): stop creating clsact qdiscs

* perf(ebpf): collapse redundant locked conn lookups

* perf(ebpf): avoid duplicate WAN UDP failure snapshots

* perf(ebpf): rate-limit repeated expiry hints per flow

* perf(core): find duplicate retirement fences without a quadratic scan

* fix(core): keep the janitor running when a telemetry read fails

* fix(core): name the pressured map and keep retirement causes in janitor logs

* fix(ebpf): clear stale fragment drops on accepted ID reuse

* fix(ebpf): budget local UDP learning per LAN source

* test(ebpf): slim the regression tests added by this series

* docs(datapath): describe the datapath fixes

* fix(core): finish the kernel handoff of a terminal commit that a reload cancels

* fix(core): reject expired staged commits after releasing the backend lock

* fix(core): stop the commit pump under its task lock

* docs(datapath): scope the port-53 health exemption to LAN ingress and WAN egress

* refactor(ebpf): call the shared outbound health gate directly

---------

Co-authored-by: Zakk <zakk@gentoozh.org>
2026-10-20 09:34:35 +08:00
eries 237d1f5874 fix(ebpf): prove a child whose publication TC already marked Closing 2026-10-20 05:35:07 +11:00
eries ebb35d7306 test(ebpf): verify the sock_ops callback body in the helper audit 2026-10-20 05:35:07 +11:00
eries 17267f9d4a fix(ebpf): prove accepted TCP children from sock_ops 2026-10-20 05:35:07 +11:00
eries f7fdf940e4 perf(reload): skip unpinned groups when clearing automatic pins 2026-10-20 05:35:06 +11:00
eries 0c751e9607 fix(download): continue Score work across subscription redirects 2026-10-20 05:35:06 +11:00
eries 5c8663bad6 refactor(ebpf): share the batch map snapshot traversal 2026-10-20 05:35:06 +11:00
eries c67395ed09 refactor(control): extract reload DNS preparation 2026-10-20 05:35:06 +11:00
eries 39055312ae refactor(control): split HTTP prober from probers 2026-10-20 05:35:06 +11:00
eries d5b0311cf7 refactor(native-api): separate event HTTP adapters 2026-10-20 05:35:06 +11:00
eries 3d20dc454d refactor(native-api): split security integration tests 2026-10-20 05:35:06 +11:00
eries 16af6ce772 refactor(observe): own DNS history in the recorder 2026-10-20 05:35:06 +11:00
eries 62773ebb53 refactor(control): centralize TCP selection observation 2026-10-20 05:35:06 +11:00
eries f02725f3b8 refactor(native-api): split managed entries and candidate validation 2026-10-20 05:35:05 +11:00
eries f6cd493562 refactor(config): centralize listener secret value decoding 2026-10-20 05:35:05 +11:00
eries 6949ae35f0 refactor(native-api): move listener secret masking into its own module 2026-10-20 05:35:05 +11:00
eries 7aa392db68 refactor(control): split UDP reply delivery from endpoint driver 2026-10-20 05:35:05 +11:00
eries e25e3aa67f refactor(control): split UDP candidate preparation from connection init 2026-10-20 05:35:05 +11:00
eries 95d43ab03b refactor(config): move experimental section reader into parser/experimental.rs 2026-10-20 05:35:05 +11:00
eries 3b8c270f94 refactor(routing): move domain matching into routing/domain.rs 2026-10-20 05:35:05 +11:00
eries c275b5be8c refactor(state): let the cache writer own its flush deadline 2026-10-20 05:35:05 +11:00
eries 6a76212ad4 refactor(alive): extract health runner from probe 2026-10-20 05:35:04 +11:00
eries 8dc0944435 fix(relay): treat unreachable client errors as client-side 2026-10-20 05:35:03 +11:00
eries ff253d1854 fix(config): skip entry-shaped children of braced subscription entries 2026-10-20 05:35:03 +11:00
eries 6000ca09c5 fix(config): keep explicit group option presence in structured loaders 2026-10-20 05:35:03 +11:00
eries 7aa79f0768 perf(routing): hash-index shared IP matcher interning 2026-10-20 05:35:03 +11:00
eries c8142dde8b fix(ui): open the download archive inside the output directory 2026-10-20 05:35:03 +11:00
eries 5e29e43511 fix(state): skip disabled Clash-owner rows in the legacy cache import 2026-10-20 05:35:03 +11:00
eries 0fceb221b3 fix(download): race resolved addresses for direct downloads 2026-10-20 05:35:03 +11:00
eries 092415a842 fix(download): resolve forced-group hosts with the request's strict resolver 2026-10-20 05:35:03 +11:00
eries 1ef58805cf fix(subscription): skip cache-off providers in the offline body lookup 2026-10-20 05:35:02 +11:00
eries 5f05dab8ae fix(download): admit selected Score work before a routed download runs 2026-10-20 05:35:02 +11:00
eries 9ef23f63e1 fix(native-api): charge provider JSON allocations to snapshot retention 2026-10-20 05:35:02 +11:00
eries cd065120df fix(native-api): keep dependency identity across an unchanged reload 2026-10-20 05:35:02 +11:00
eries 90d783a3df fix(config): sync the current directory for a bare export filename 2026-10-20 05:35:02 +11:00
eries c32200ca95 fix(native-api): count each eBPF object once in memory telemetry 2026-10-20 05:35:02 +11:00
eries 509748ce08 fix(native-api): honor wildcard Accept-Encoding for directory UI 2026-10-20 05:35:02 +11:00
eries 80ef631a0f fix(native-api): mask listener secrets in DNS responses 2026-10-20 05:35:02 +11:00
eries bf480e6a5a fix(native-api): commit geodata settings off the runtime worker 2026-10-20 05:35:01 +11:00
eries adc1dbeb27 fix(reload): clear automatic pins on no-op activation 2026-10-20 05:35:01 +11:00
eries f1a7c59a35 fix(native): record UDP DNS refusals independent of DNS log 2026-10-20 05:35:01 +11:00
eries 8f169b3ea3 fix(native): keep kernel route on pinned TCP DNS flows 2026-10-20 05:35:01 +11:00