* feat(config): admit XHTTP as a stream transport
* feat(outbound): add H2 XHTTP transport for Trojan, VMess and VLESS
* fix(config): require canonical H2 ALPN at XHTTP admission
* fix(config): repin conformance fences after the XHTTP node reference
* test(core): cover the new XHTTP record rejection guards
* fix(outbound): complete stream-up shutdown at upload EOF
* fix(outbound): replace the Referer query with the generated padding
* fix(outbound): escape configured XHTTP paths like Xray
* test(outbound): drop the XHTTP direct-TLS setup test that pins no XHTTP behavior
* fix(outbound): publish draining prepared carriers at winner commit
* fix(outbound): defer XHTTP carrier commit for speculative VLESS H2 UDP
* fix(outbound): warm the H2 mux pool for XHTTP session requirements
* fix(outbound): release dead private carriers during XHTTP preparation
* fix(outbound): surface ready upload errors before stream-up shutdown completes
* docs(outbound): record XHTTP ownership and bounds
* fix(outbound): retain reset XHTTP streams until in-flight frames drain
* fix(outbound): flush VMess uploads only when input is drained
* fix(xhttp): batch packet uploads across flush calls
* fix(xhttp): drain unusable reserved upload carriers
* test(xhttp): consolidate path and refusal coverage
* test(session): remove mirrored carrier publication tests
* fix(session): publish excess detached winners drain-only
* test(outbound): streamline profile and capacity regressions
* fix(config): preserve legacy transport export options
* fix(config): accept XHTTP URI exporter metadata
* fix(config): parse v2rayN XHTTP mode and ALPN
* fix(config): honor XHTTP extra request fallbacks
* fix(config): admit escaped literal XHTTP paths
* fix(config): include XHTTP in transport diagnostics
* test(config): merge overlapping XHTTP admission cases
* refactor(config): normalize XHTTP ALPN in place
* fix(config): ignore VMess JSON certificate verification flags for XHTTP
* refactor(vless): share the boxed carrier start path
* refactor(xhttp): merge streaming upload modes
* fix(xhttp): confirm the first packet-up flush against its POST
* fix(xhttp): recheck flow errors before sending a paced batch
* fix(config): bound the XHTTP path length at admission
* docs(xhttp): list XHTTP in the Trojan and VMess node rows
* docs(agents): scope the eight-response packet-up bound to a flow
* test(tool): rederive the node ID before the XHTTP mux rejection case
* fix(xhttp): confirm the first datagram against its POST
* fix(xhttp): rebind replacement dials to the published owner
* refactor(xhttp): drop the pass-through upload constructors
* refactor(runtime): rebind pooled admission through the lifecycle traversal
* refactor(config): share the XHTTP ALPN list normalization
* test(config): repin the zh configuration conformance fences
* feat(vless): pad Vision uplink and switch it to Direct
* perf(relay): splice Vision carriers once both directions are Direct
* test(vless): run the official Vision interop case weekly
* docs(vless): document Vision uplink support
* fix(pr-304): refresh node documentation conformance ranges
* fix(pr-304): fall back when splice capability probes are denied
* docs(pr-304): clarify conditional Vision Direct transitions
* refactor(pr-304): stack-pin the shared copy futures
* refactor(pr-304): bound random Direct write buffers
* docs(pr-304): correct Vision and splice termination invariants
* test(pr-304): reserve matching bootstrap DNS listeners
* feat(config): define failure-preserving, redacted diagnostic and error data with legacy projections
* refactor(config): make standalone node flat-serde conversion diagnostic-aware
* refactor(config): thread diagnostic sinks through the json, yaml and toml loaders and the format fallback
* refactor(config): return parser and share-link warnings through data entrypoints
* feat(core): render startup and sighup diagnostic attempts exactly once
* fix(config): resolve tls-name and optional-flow claims before lossy assignment
* fix(config): resolve certificate-verification booleans and inverse aliases
* fix(config): resolve credential aliases and numeric feed scalars
* fix(config): normalize stream-transport claims without confusing packet capability
* fix(config): resolve packet-network and anytls udp-capability conflicts
* fix(config): normalize and validate vmess cipher aliases
* fix(config): validate tuic relay and hy2 obfuscation claims before dropping them
* fix(config): check duration arithmetic and normalize subsecond feed durations
* fix(config): share checked hopping-set decoding and reject repeated ports
* fix(config): enforce policy a at every canonical adapter completion
* fix(core): preserve original indexed outcomes through structured subscription normalization
* fix(core): preserve physical-line outcomes for uri and record subscriptions
* fix(core): enforce partial-body acceptance and last-valid-body persistence
* fix(core): admit canonical assembled config and registry collections before shortcuts
* fix(core): reject reload changes to startup-owned health inputs and tls mode
* fix(outbound): guard one-shot runtime creation and migrate production callers to fallible factories
* fix(config): reject unsafe traffic terms and omit whole invalid dns rules
* fix(config): retain explicit empty subgroup contributions through serde and refresh
* fix(config): share normalized dns ip-or-cidr conversion across admission and consumers
* fix(core): decode configured udp dns check targets once with default port 53
* fix(outbound): decode health and urltest http targets with correct authority boundaries
* fix(config): diagnose ineffective structured group options and unsafe custom api binds
* bench(core): give the reload benchmark valid nodes with canonical ids
* perf(core): admit a configuration equal to the active one without re-deriving identities
* fix(config): preserve diagnostics and bound subscription admission
---------
Co-authored-by: eries <coloredflowers@outlook.com>
The engine no longer shells out to `ip`/`nsenter`/`sysctl` binaries:
- New `src/netlink.rs`: a minimal hand-rolled synchronous rtnetlink
client (kernel ABI structs — the musl libc crate doesn't export all
of them) covering veth pair creation, link up/down/netns-move/delete,
v4/v6 address add/del, routes (incl. table 100 + RTN_LOCAL), fwmark
rules, and static neighbours. A netlink socket opened inside a scoped
setns operates on that namespace, so all daens-internal setup happens
in ONE `with_daens_netns` scope instead of ~20 nsenter spawns.
- FD-owned daens: a throwaway thread `unshare(CLONE_NEWNET)`s and hands
its `/proc/self/ns/net` FD back, pinned process-wide in a OnceLock —
no `ip netns add/delete`, no dependence on the iproute2 registry.
`/var/run/netns/daens` remains as a best-effort compat bind-mount for
external tooling (`ip netns exec`, debug shells); startup/shutdown
cleanup umounts it instead of `ip netns delete`.
- Interface reads: `getifaddrs` replaces `ip addr show` (honk-config
`interface_host_cidrs` — gains a `libc` dep; ebpf `iface_ipv4`), and
the default route comes from `/proc/net/route`.
- Deleted: `find_iproute2` (incl. the hardcoded Nix-store paths),
`ensure_veth_peer_name`, `parse_mac_from_ip_link`, all nsenter blocks.
All `std::process::Command` call sites for `ip`/`nsenter` are gone from
honk-core and honk-config; `set_sysctl` already wrote /proc/sys directly
(the `sysctl` binary remains only as a fallback).
Micro-benchmark (benches/ss_aead.rs, AES-NI host): RustCrypto aes-gcm
runs at 0.4–0.5 GB/s (its AES-NI path is not engaged in this build)
while BoringSSL's AeadCtx does 3.3–6.7 GB/s — a 7–18× gap that made
SS2022 single-core-bound at 5339 Mbps / 1.01 cores in the lab while
dae's Go AES-GCM assembly idled at 9396 Mbps / 0.49 cores.
AeadCipher's AES-128/256-GCM and ChaCha20-Poly1305 variants now wrap
boring::aead::AeadCtx (in-place seal/open, same signatures, errors mapped
to the existing RustCrypto-shaped error type). Only XChaCha20-Poly1305 —
which BoringSSL doesn't have — stays on RustCrypto.
Lab (iperf3 -R, median): ss2022 5339 → 9388 Mbps at 1.01 → 0.37 cores —
line rate, now ahead of dae on CPU (0.37 vs 0.49). SSR (TCP-only, same
AeadCipher) benefits identically. benches/ss_aead.rs added so the gap is
re-checkable.
- honk-core binary switches the global allocator to mimalloc: musl's
stock malloc showed up as ~8% malloc+lock time in perf and capped the
QUIC path — A/B on the same build: 5096 vs 3037 Mbps (hy2). Cost is
~40 MB of retained RSS (49-66 MB, parity with dae); noted in the docs.
- Benchmark docs rewritten for the host-passthrough lab CPU (AES-NI):
honk hy2 5239 / tuic 5351 Mbps (+75%/+36% vs dae kdae), trojan line
rate at 0.42 cores; ss2022 (5339 vs dae 9396) is now the documented
optimization target. anytls rows use -P8 (single-stream iperf3 is the
known lab artifact). dae rows are the kdae build; its direct path is
broken on the lab kernel (noted).
- Lab engine VM moved 10.10.10.50 -> 10.10.10.57 (docs + bench README).
The single owner of every outbound's session-layer resources:
ControlPlane → OutboundRuntimeRegistry → Node.id → NodeRuntime
(immutable node config, capabilities, protocol runtime slot). Groups
stay pure selection policies; ProxyRegistry stays stateless handlers.
- Validation: nil/duplicate Node UUIDs fail startup and abort reloads
(two-phase build → swap → old registry shutdown, matching the
existing generation pipeline).
- Node::default() now assigns a v4 UUID — the derive-Default nil UUID
silently poisoned every struct-literal construction (incl. the
built-in direct node) for the new registry.
- OutboundCapabilities (tcp/udp/multiplexed) derived from protocol +
node fields, the base for capability-based pooling in phase 5.
- ProtocolRuntime is None for now; AnyTLS ownership lands in 2B.
hop_soak_tcp / hop_soak_udp run against a real hysteria2 server
(HONK_HY2_SERVER, optional HONK_HY2_MPORT/MHOP): a rate-limited
300MB download with a per-read stall detector, and a UDP echo loop
counting losses across hops. Used to verify port hopping against a
live server behind nftables DNAT: 300MB across ~58 hops with zero
stalls, 592/592 UDP datagrams across ~24 hops.
Also syncs Cargo.lock with the honk-tool workspace entry.
- rand 0.10 restructured its traits: fill_bytes now lives on
rand_core::Rng (re-exported as rand::Rng), random_range on the new
RngExt, and RngCore became a marker trait no longer needed here.
Update imports in salamander/shadowsocks/ssr/shadowsocks_2022/vmess/
hysteria2 accordingly.
- aes 0.9 (cipher 0.5) renamed BlockEncrypt -> BlockCipherEncrypt
(quic_boring header protection).
- criterion deprecated criterion::black_box; use std::hint::black_box.
- Silence clippy::await_holding_lock on the four DNS/ECH discovery
tests that intentionally serialize on GLOBAL_TEST_LOCK.
cargo clippy --all --all-targets -- -D warnings clean; workspace tests
green (only the 3 pre-existing failures remain).
On a router, ~100 lines/min of per-connection INFO logs mean constant
journald writes and flash wear for zero operational value. The two
per-connection info! lines (normal TCP path and eBPF offload) are now
debug!; lifecycle/admin events stay at info.
The clash /logs broadcast layer is installed unfiltered by design, so
debug events remain available on demand via /logs?level=debug while the
default info view and journald stay quiet. Verified live on the
gateway: 0 'TCP connection:' lines in journald and in the default
/logs view, full stream intact at /logs?level=debug.